I have some codes in my script of the Contact form I created that does some things. Is there a macro that I can create in Module that refers to the specific code in the script and runs it when I run the macro?
Or also, is there a code I put in the Outlook Session area that runs the script code in from a form of the Contact?
The script code in the contact is run in the contact by a commandbutton.....so do we have a macro that identifies the name of the commandbutton in a contact, I select the contact and not open it up, and the macro then effectively clicks that commandbutton?
According to your description, you want to refer to the script in a custom contact Form and run it in a module.
I don’t think you could refer to the script in a Form since the script code is encapsulated in the Form.
For the purpose of code reuse, I suggest you to put your code in a module and refer it from the contact Form.
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.