Re: Createobject gives slow interaction with document

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi =?Utf-8?B?UGVsbGU=?=,

> I have an application that start word by either
> CreateObject("word.application") or Getobject("word.application") if word is
> already started. Then I add a document based on a template and fills it with
> data.
>
> The problem is that if Word is started by CreateObject it waits for almost
> an infinite time (about 1 minute), almost as if word waited for something, or
> not signalling that it is upp and running.
>
> Starting Word the normal way (not by automation) is very fast.
>
> Is this a known problem? Where do I search for the problem?
>
What about using the NEW keyword instead of CreateObject
Set wdApp = New Word.Application

Is that any faster?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

.



Relevant Pages

  • Re: Outlook Templates
    ... For Word template, you may refer to the below KB article: ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... When opening a new thread via the web interface, we recommend you check the ...
    (microsoft.public.windows.server.sbs)
  • Re: saving all documents at once
    ... >General Info on moving from Word Perfect to Word: ... >this new document as a Word template. ... >Microsoft's Legal Users' Guide) ... >This message is posted to a newsgroup. ...
    (microsoft.public.word.newusers)
  • Re: Word 97 Freezes on opening.
    ... it would appear that your Normal.dot may be corrupt. ... template or document (for more, see "WD: How Word for Windows Uses Temporary ... please post all follow-ups to the newsgroup so ... >>Microsoft MVP ...
    (microsoft.public.word.application.errors)
  • Re: How to share macros on a network?
    ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ... > We have a similar situation but I put the template, ... >> Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ...
    (microsoft.public.word.vba.general)
  • Re: saving all documents at once
    ... Word and Word Perfect work very differently from one another. ... To use a template within Word, use File => New and pick your template. ... Word New User FAQ & Web Directory: http://addbalance.com/word Intermediate User's Guide to Microsoft Word http://addbalance.com/usersguide See also the MVP FAQ: http://www.mvps.org/word which is awesome! ... Please post replies and questions to the newsgroup so that others can learn from my ignorance and your wisdom. ...
    (microsoft.public.word.newusers)