Word2000 VBA vs. Word97 VBA 
Author Message
 Word2000 VBA vs. Word97 VBA

Hi,
I'm writing VBA code in Access97 to automate Word. I am using Word2000
on my PC and the code works fine, but a user with Word97 is having
problems and was wondering if this might result from some code that will
work in Word2000 but not in Word97. Is there a reference on the internet
that lists the differences (or added features, I guess) of one vs. the
other? Or is my best bet to simply install both versions on my PC.
Also, the specific code that works in Word2000 but not Word97 is:
 wordApp.ActiveWindow.ActivePane.View.type = wdPrintView
Is this because the wdPrintView constant does not exist in Word97?
Thanks!
-Josh



Wed, 13 Aug 2003 06:38:29 GMT  
 Word2000 VBA vs. Word97 VBA
Hi Josh,

| Also, the specific code that works in Word2000 but not Word97 is:
|  wordApp.ActiveWindow.ActivePane.View.type = wdPrintView
| Is this because the wdPrintView constant does not exist in Word97?

Yes that is why it's not working, try :
    ActiveWindow.ActivePane.View.type  =wdPageView
instead.

| Is there a reference on the internet
| that lists the differences (or added features, I guess) of one vs. the
| other? Or is my best bet to simply install both versions on my PC.

There was but I can't find it anymore. I didn't think it was so detailed
btw. It's best  IMO if you need to develop an application that needs to run
on both versions, is to develop in the oldest version.

Hope this helps,
regards,
Astrid

So that all can benefit from the discussion, please post all follow-ups to
the newsgroup.
Visit the MVP Word FAQ site at http://www.mvps.org/word/



Wed, 13 Aug 2003 07:33:58 GMT  
 Word2000 VBA vs. Word97 VBA
Hi Josh

As Astrid sys the list isn't complete (and doesn't include changes of
constant names, unfortunately!), but go into Word VBA Help and look up the
article: "What's New for Microsoft Office Developers". But as she also says,
you're much safer to develop in 97.

Regards

Dave


|
| Hi,
| I'm writing VBA code in Access97 to automate Word. I am using Word2000
| on my PC and the code works fine, but a user with Word97 is having
| problems and was wondering if this might result from some code that will
| work in Word2000 but not in Word97. Is there a reference on the internet
| that lists the differences (or added features, I guess) of one vs. the
| other? Or is my best bet to simply install both versions on my PC.
| Also, the specific code that works in Word2000 but not Word97 is:
|  wordApp.ActiveWindow.ActivePane.View.type = wdPrintView
| Is this because the wdPrintView constant does not exist in Word97?
| Thanks!
| -Josh
|



Fri, 15 Aug 2003 07:22:42 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Question from VBA novice re True and False values in VBA code for Word97

2. Word97 VS Word2000

3. vba access vs vba excel (alguien sabe?)

4. Access97 vba VS Access2000 vba

5. VBA 5 vs VBA 4

6. Excel 97 VBA vs Excel 2000 VBA

7. Interpretive VBA vs. Compiled VBA extensions to Project

8. Proj 98 VBA vs Proj 2000 VBA

9. Word VBA vs Excel VBA

10. VBA 97 vs VBA 2000

11. Newbie confused: VB6 vs VB.Net vs VBScript vs VBA

12. Newbie confused: VB6 vs VB.Net vs VBscript vs VBA

 

 
Powered by phpBB® Forum Software