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.