hi, is there any tip or guideline to speed up a document bookmarks update
(from vb6 program) ..
we are trying both bookmark.range.text, both wdsetfields .. any other
suggestion ?
thak in advance
best regards

Signature
Enrico Sabbadin
MTS/COM+/VBCOM/.NET FAQ: http://www.sabbasoft.com
BLOG: http://www.sabbasoft.com/myblog
Jean-Guy Marcil - 05 Apr 2007 17:38 GMT
x was telling us:
x nous racontait que :
> hi, is there any tip or guideline to speed up a document bookmarks
> update (from vb6 program) ..
> we are trying both bookmark.range.text, both wdsetfields .. any other
> suggestion ?
I am sorry but I don't quite get what you are trying to do.
What is "bookmark update"?

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
old man - 08 Apr 2007 20:58 GMT
Hi,
Please post a code sample of what is running slowly. In general you want to
use range instead of selection objects and from VB you want to declare your
variables as specifally as possble so there is as little, if any, late
bindings going on.
Dont declare "dim x" or "dim x as variant" but use "dim x as bookmark." Try
using "with" statements in your code.
Word VBA performance does not degrade gradually - it goes along fine and
then, when there are too many of something (too large a document, more then x
number of sections....) it gets really slow. Where that happens depends on a
combination of the document size, complexity and the version of Word and the
code.
old man
> hi, is there any tip or guideline to speed up a document bookmarks update
> (from vb6 program) ..
[quoted text clipped - 3 lines]
> thak in advance
> best regards