Hello all -
I am trying to run a module from a command button that will allow a user to email a file. Below is what I have so far:
When I try and execute from a command button I get a Compile Error: User-defined type not defined on the Sub SendMessage (highlighted in yellow) and the next line Dim objOutlook As Outlook.Application.
I am very new to VBA and cannot figure this out. I copied this code from an example I found online but can't get it to run for me.
I have attached the file I am working with, if anyone could assist it would be greatly appreciated!
Bookmarks