Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2011, 07:01 AM
jonrpullen jonrpullen is offline convert from word 2003 to 2007 Windows 7 64bit convert from word 2003 to 2007 Office 2007
Novice
convert from word 2003 to 2007
 
Join Date: Mar 2011
Posts: 1
jonrpullen is on a distinguished road
Unhappy 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
Reply With Quote
  #2  
Old 03-25-2011, 02:39 PM
macropod's Avatar
macropod macropod is offline convert from word 2003 to 2007 Windows 7 32bit convert from word 2003 to 2007 Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply



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 from word 2003 to 2007 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

Other Forums: Access Forums

All times are GMT -7. The time now is 10:19 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft