Word Application Optimization

  • Thread starter Harsh Vardhan Singh
  • Start date
H

Harsh Vardhan Singh

hi,

i hv a code which opens a large number of word documents, makes some minor
changes and then saves and closes them. I create a single instance of Word
and then open documents one after the other. All this is done in the
background. The thing is that this process takes a lot of time. I wud like
to know if there is any way to speed up this process (like disabling some
Word functionalities which are not being used) .

thanx in advance
harsh.
 
J

Jezebel

Hard to say without knowing what your code is doing. Most obvious things are
a) run the code with Word invisible, and b) work entirely with Range
objects, never the Selection. If your code is in VB, you also get
performance improvements using With ... End With constructions (minimize the
dots).

But from your description, most of the time will be taken up with Opening,
Saving, and Closing. Speed of that is determined by your system and there's
not a lot you can do about it.
 
H

Harsh Vardhan Singh

yes, u r right.. most of the time is taken up while opening and closing a
word document... and this is what i want to know.. are there any word
features which can be disabled so that this opening and closing of documents
can be done faster? i tried to disable most of the features but they result
is very minor time savings... im using C# .NET for this..

thanx in advance
harsh.
 
J

Jezebel

Opening and closing files is a file system task, so nothing you do with Word
will make much difference.
 

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