Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-29-2010, 03:22 PM
Mark1110 Mark1110 is offline Word Basic 2003 to Word Basic 2007 Incompatibility Windows XP Word Basic 2003 to Word Basic 2007 Incompatibility Office 2007
Novice
Word Basic 2003 to Word Basic 2007 Incompatibility
 
Join Date: Dec 2010
Posts: 1
Mark1110 is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 12-29-2010, 11:04 PM
macropod's Avatar
macropod macropod is offline Word Basic 2003 to Word Basic 2007 Incompatibility Windows 7 32bit Word Basic 2003 to Word Basic 2007 Incompatibility Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,224
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

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

Thread Tools
Display Modes


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
Word Basic 2003 to Word Basic 2007 Incompatibility Basic help with word required !! bobbybansal Word 1 04-20-2010 02:31 PM
Word Basic 2003 to Word Basic 2007 Incompatibility 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

Other Forums: Access Forums

All times are GMT -7. The time now is 02:49 PM.


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