Why does this work with Word 97 but not Word 2000

Why does this work with Word 97 but not Word 2000

Post by hans » Wed, 13 Sep 2000 17:45:18



In one of my applications I use the addin template methode and than have the
toolbar available from that template. The line .CommandBars("MyBar").Enabled
= True is the code that doesn't work with word 2000. The .Commandbars.count
is always 107 regardless if I add other templates using the Addin methode.
This works in Word 97 however in Word 2000 it does not work and I get the
invalide procedure error message. This is the code in question:

Constant MYTEMPLATE = "C:\mytemplate.dot"

Set appWD = GetObject("", "Word.Application")
With appWD
' Add MyTemplate to Word
.AddIns.Add MYTEMPLATE, Install:=True
.CommandBars("MyBar").Enabled = True
End With

 
 
 

1. Linking in Word 95, Opening with Word 97

Greetings all,

    We have implemented a document container in our application.  Everything
seems to work fine, until someone links to a Word95 doc.  When a user in
Word97 tries to "Activate" this document, it says "Linked object's source
class has changed."  This is the only time this happens.  If the document is
embedded there are no problems.

    What am I missing?  Some applications handle this correctly(Word,
Visio), but ours and a test app(MFC App wizard with container support)
don't.  Any help is greatly appreciated.

Thanks,

Casey Schmit

2. edmac.idx: 297 entries rejected

3. Word 97-2000 & 6.0/95 - RTF converter hangs

4. FA : Boxed (Mint) TI-59 & Printer

5. About printing of Word (97/2000) documents

6. Unshrinking an 800K disk w/o an 800K drive.

7. Help: Differentiating between Word 2000 and 97?

8. Unable to install ASP Extensions in FP98 (release)...

9. Word 97 Denies in-place activation on Insert, why?

10. How to include an Access 97 Control in a Word 97 template

11. Word 97 RTF documents not valid for Help Compiler 4??

12. Word 8 and OLE link problems of Word 6 / Word 7 docs

13. Delete and Cut fails when programming MS Word if Word not visible