Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » General

Post new topic   Reply to topic
Creating a Word AddIn using VB6.0
View previous topic :: View next topic  
Author Message
CThompson
Newbie


Joined: 23 Dec 2003
Posts: 2

PostPosted: Dec 30th, 2003 07:55 PM    Post subject: Creating a Word AddIn using VB6.0 Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Dec 30th, 2003 08:20 PM    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
CThompson
Newbie


Joined: 23 Dec 2003
Posts: 2

PostPosted: Dec 30th, 2003 10:11 PM    Post subject: Reply with quote

Office2000
_________________
There are 10 kinds of people in the world, those that understand binary and those that don't.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic