| View previous topic :: View next topic |
| Author |
Message |
CThompson Newbie
Joined: 23 Dec 2003 Posts: 2
|
Posted: Dec 30th, 2003 07:55 PM Post subject: Creating a Word AddIn using VB6.0 |
|
|
I have written the main module of a program, and am wanting to make it a
Word AddIn using VB6.
Before starting I thought I would play with creating an AddIn to get a feel
for how it works.
My steps are as follows:
Open VB6 and choose 'new' project
choose 'AddIn'
On the designer (connect.dsr) choose application = "word"
Initial Load behaviour = "startup"
Create the .dll
Start Word
An error message pops up saying "Type Mismatch"
I have isolated the error down to the line reading "Set VBInstance = application"
And have tested, the application reads "Microsoft Word"
'****snippet****
Public VBInstance As VBIDE.VBE
Private Sub AddinInstance_OnConnection(ByVal Application As Object, ByVal
ConnectMode As AddInDesignerObjects.ext_ConnectMode, ByVal AddInInst As
Object, custom() As Variant)
'save the vb instance
Set VBInstance = Application
'***/snippet***
Any help, pointers would be appreciated. _________________ There are 10 kinds of people in the world, those that understand binary and those that don't. |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Dec 30th, 2003 08:20 PM Post subject: |
|
|
What version of office do you have? _________________ No one is completely useless. They can at least be an example of what to avoid. |
|
| Back to top |
|
CThompson Newbie
Joined: 23 Dec 2003 Posts: 2
|
Posted: Dec 30th, 2003 10:11 PM Post subject: |
|
|
Office2000 _________________ There are 10 kinds of people in the world, those that understand binary and those that don't. |
|
| Back to top |
|
|