#1
|
|||
|
|||
convert from word 2003 to 2007
Can anyone tell me if there is a difference in the code between 2003 and 2007 when doing the following
I have a word doc file that has vba code and it only runs the code. During the execution of the code the code opens a different document edits it and saves it. then it continues to execute the code until it has to open and edit another document . The code I have works for word 2003 and excution continues normally However in 2007 the code fails after editing and saving the document because it cannot find the original code so it fails to open the next vba form So what is the code to open, edit and save a file and continue the original code where it left off The references are as they should be in each of 2003 and 2007 Last edited by jonrpullen; 03-25-2011 at 07:03 AM. Reason: additional info |
#2
|
||||
|
||||
Hi jonrpullen,
It sounds to me like you're running the code somewhat differently in Word 2007 than you were in Word 2003. With vba, for code to run, the document/template containing the code must remain open; otherwise the code stops when its parent document closes. Thus, in Word 2003, the document/template containing the code would have remained open througout but in Word 2007 it seems you're running the code from a document/template that you're closing before you've finished.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to convert ms office 2010 to 2007 | viper5646 | Office | 2 | 12-07-2010 06:17 PM |
convert offce2007 t0 2003 | intent | Office | 2 | 12-01-2010 05:48 AM |
Word 2007 allows unwanted styles in Word 2003 protected documents | jhopppppp | Word | 0 | 08-09-2010 10:45 AM |
Converting issue 2003 word to 2007(new to 2007 office) | lbrown3 | Word | 0 | 01-30-2010 07:25 PM |
Merge Word 2003 AutoText to Word 2007 | damadhatter | Word | 0 | 10-15-2009 11:41 AM |