Conflict between commandbar and microsoft word |
Post Reply |
Author | |
unforgiven
Groupie Joined: 24 February 2010 Location: Neverland Status: Offline Points: 35 |
Post Options
Thanks(0)
Posted: 23 August 2012 at 3:27am |
Hi Folk I code vb6 and use commandbar to make menu and shortcut menu .it's work good ,but i need to add Microsoft word 10 reference to project for export data to Microsoft word. when i use this reference library vb6 generate compile error "Object Dose Not Source Automation Events" and it dose not run project . i did use this code to make shortcut: Public WithEvents KeyBindings As KeyBindings Set KeyBindings = CommandBars.KeyBindings when i remark this 3 line program works good. i use Commandbar Control 13.3.1 please guide me how can i solve this problem? thank's all |
|
mattwilkinson
Groupie Joined: 23 June 2011 Location: Stoke-on-Trent Status: Offline Points: 9 |
Post Options
Thanks(0)
|
There is a naming collision with the CommandBars object in the Office DLL, so just change this line:
Set KeyBindings = CommandBars.KeyBindings to this: Set KeyBindings = XtremeCommandBars.CommandBars.KeyBindings And it should work |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |