Word Add-in

Hewlett-packard / Ml115
June 2, 2009 at 04:05:40
Specs: Windows Vista

In the past i have created many Add-ins in Excel, and have configured them to Create a toolbar when installed.

This code works for Excel:
Private Sub Workbook_AddinInstall()

Blah Blah Blah 'code to create a new toolbar

End Sub

I now need to perform the same function in word, but am unsure what the install sub needs to be called so it is automatically executed.
Does anyone know what the equivalent code is for Word VBA.

See More: Word Add-in

Report •

June 2, 2009 at 06:17:23
Try this link...


My first hit had links for creating Word add-ins, loading add-ins on start-up and running code when an add-in is loaded.

Good luck!

Report •

June 2, 2009 at 07:15:12
Thanks for the prompt response.

I have looked on the MSDN website, but they are for slightly different scenario's.

usiong the Autoexec() event will trigger the code to run everytime Word is opened with the add-in attached.

I'm looking for an event that only triggers when the add-in is first installed. As mentioned in my first post, workbook_Addininstall() does the trick for any excel add-in. I cannot find an equivalent for MS Word.

Thanks though.

Report •

Related Solutions

Ask Question