speed up bookmark update

G

Guest

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
 
J

Jean-Guy Marcil

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"?

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
O

old man

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top