Diane Poremsky
Senior Member
- OS Version(s)
- MacOS
- Windows
- iOS
- Android
- Outlook version
- Outlook 2016 32 bit
- Email Account
- Office 365 Exchange
if you are just calling that macro alone, not anything else, you'll use
sub callmymacro()
Load ["Personal Forms Library"].Forms("Contact Form 1")
With Forms("Contact Form 1")
' this wouldn't be command button - it would be whatever the command is that holds the selection value
.[Command Button].Value = Selection
.CommandButton4_Click
End With
Forms("Contact Form 1").Unload
end sub
I've never called a macro in a form without actually using the form, so I'm not really sure how it works.
sub callmymacro()
Load ["Personal Forms Library"].Forms("Contact Form 1")
With Forms("Contact Form 1")
' this wouldn't be command button - it would be whatever the command is that holds the selection value
.[Command Button].Value = Selection
.CommandButton4_Click
End With
Forms("Contact Form 1").Unload
end sub
I've never called a macro in a form without actually using the form, so I'm not really sure how it works.