#1
|
|||
|
|||
Word Basic 2003 to Word Basic 2007 Incompatibility
Hi,
I have a macro that was written in Word Basic 2003. Our company is switching to Word 2007 and when I run the macro there are several lines of code that are broken in Word 2007 that work perfectly in Word 2003. Here are two examples: BASICDIR$ = WordBasic.[FileNameInfo$](WordBasic.[MacroFileName$](), 5) In Word 2003 this returns the network path of the macro that I am using (\\servername\path\). In Word 2007 I get c:\documents and settings\username\temp\. I had to get the network address another way. WordBasic.InsertAutoText This just doesn't work at all in Word 2007. Is there a document that lists the commands that don't work anymore in Word 2007. How about one that shows a command in Word 2003 and its new Word 2007 command? Thanks, Mark |
#2
|
||||
|
||||
Hi Mark,
First off, there is no such thing as WordBasic 2003 or WordBasic 2007. WordBasic was discontinued when VBA for Word was introduced (with Word 97 IIRC - in 1996). The problems you're now having are perhaps a good demonstration of why one should by now have converted as much as possible of their old WordBasic code to vba. Eventually, MS is likely to stop supporting it altogether! For the Visual Basic Equivalents for WordBasic Commands, see: http://msdn.microsoft.com/en-us/libr...ffice.11).aspx
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word Visual Basic error - run time error 504 | crazymorton | Word | 11 | 01-13-2012 04:32 AM |
Basic help with word required !! | bobbybansal | Word | 1 | 04-20-2010 02:31 PM |
A little Visual Basic Help Please | leroytrolley | Excel | 4 | 08-22-2008 03:57 AM |
Office Basic 2007 Activation Problem | Dazza7 | Office | 0 | 07-30-2008 07:59 AM |
Need some basic help on Project | NewToProject | Project | 0 | 04-06-2008 07:03 AM |