![]() |
|
#16
|
|||
|
|||
|
Quote:
However, if I run the code a second time, just to see if I get the same results, that's when I get Run-Time Error '462': The remote server machine does not exist or is unavailable. When I get this error, this part of the line is highlighted in yellow: If bBulletA = False Then Call AddBulletStyle("BulletA", ChrW(61623), InchesToPoints(0), InchesToPoints(0.5), True) I also suspected another instance of Word running, but I am a novice in Word VBA and wasn't sure how to handle it. Anyway, I placed "wrdApp.Quit" right before setting wrdDoc and WrdApp to Nothing in my code but the error persisted. Also, when you say "start the Session independently of all the looping that opens the documents, then kill it once all the processing has been done," I don't think I start wrdApp or wrdDoc in a loop in my code above, so I am unsure what to do. So sorry to bother you this much but I am not that experienced in word vba. I have an idea ... how about a code to check and close any open/orphaned Word session(s) before a new one is open each time the code runs? Thanks! Jay |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calendar Creation | sjvjoe | Publisher | 1 | 07-14-2016 06:32 PM |
Document Creation
|
Privateer | Word | 3 | 06-20-2013 08:15 PM |
| Help with Complex Table Creation | saquib | Word | 0 | 02-12-2013 06:28 AM |
Label Creation
|
speloquin | Word | 1 | 05-27-2011 03:08 PM |
| Report creation. | Igtech | Excel | 1 | 04-02-2010 03:33 PM |