![]() |
Outlook custom form - VBS call VBA macro
I have created a custom OL form based on the Contact form. I want to save
data from some of the fields to a text file. I want to initiate the save using the WRITE event. I have written the SUB in VBA to save the data, but can't call the SUB from the form VBS. What is the solution or workaround? -- I ask, therefore I am. |
Outlook custom form - VBS call VBA macro
If the Sub is a public Sub in the built-in ThisOutlookSession module, it
should be possible to call it as Application.MySub or whatever its name is. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "JMat45" wrote in message ... I have created a custom OL form based on the Contact form. I want to save data from some of the fields to a text file. I want to initiate the save using the WRITE event. I have written the SUB in VBA to save the data, but can't call the SUB from the form VBS. What is the solution or workaround? -- I ask, therefore I am. |
Outlook custom form - VBS call VBA macro
Ok, I will give that a try. Thanks for the advice.
-- I ask, therefore I am. "Sue Mosher [MVP]" wrote: If the Sub is a public Sub in the built-in ThisOutlookSession module, it should be possible to call it as Application.MySub or whatever its name is. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "JMat45" wrote in message ... I have created a custom OL form based on the Contact form. I want to save data from some of the fields to a text file. I want to initiate the save using the WRITE event. I have written the SUB in VBA to save the data, but can't call the SUB from the form VBS. What is the solution or workaround? -- I ask, therefore I am. . |
Outlook custom form - VBS call VBA macro
Sue, worked great. I'm back in business. Thanks very much.
-- I ask, therefore I am. "JMat45" wrote: Ok, I will give that a try. Thanks for the advice. -- I ask, therefore I am. "Sue Mosher [MVP]" wrote: If the Sub is a public Sub in the built-in ThisOutlookSession module, it should be possible to call it as Application.MySub or whatever its name is. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "JMat45" wrote in message ... I have created a custom OL form based on the Contact form. I want to save data from some of the fields to a text file. I want to initiate the save using the WRITE event. I have written the SUB in VBA to save the data, but can't call the SUB from the form VBS. What is the solution or workaround? -- I ask, therefore I am. . |
All times are GMT +1. The time now is 06:37 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com