Macro works on toolbar but not in Word - TechRepublic
General discussion
May 30, 2001 at 04:35 AM
hurdk

Macro works on toolbar but not in Word

by hurdk . Updated 25 years ago

I have a Word document
I have a working macro on the toolbar
I have a Visual Basic command button on the Word document
I copy the code from the tool bar to the command button
I click on the command button and get error
“User-defined type not defined”
This error relates to the code:
Dim oOutlookApp As New Outlook.Application
Thank you.

This discussion is locked

All Comments