![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I’ve developed my COM AddIn. (C++) I have the custom button on toolbar inside
of the Appointment form. When user clicks on this button then I have to execute some VB methods inside of my custom form. Could you advise please how to make it work? Thanks |
Ads |
#2
|
|||
|
|||
![]()
You mean that you want VBScript (not VB) code that is part of your custom form to run? Why not put the code in your addin?
If you really do want code on the form to run, you'll need to make an event on the form fire to run the code, e.g. change a property value to invoke the PropertyChange or CustomPropertyChange event. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "DP" wrote in message ... I’ve developed my COM AddIn. (C++) I have the custom button on toolbar inside of the Appointment form. When user clicks on this button then I have to execute some VB methods inside of my custom form. Could you advise please how to make it work? Thanks |
#3
|
|||
|
|||
![]()
This is very common scenario by my opinion.
You develop AddIn which introduces a button on Appointment form then You develop the custom Appointment tab (form) which has some routines on the script level in order to communicate with the back-end, retrieve the data and populate fields on the custom form. In order to run this VBA routine inside of the form (I'm confused since some sources call it VBSript and some VBA) user has to push on AddIn button and then I have to run the routine inside of the script. I could access the _UserForm object and then get access to all controls, but there is no such method as "Execute" to run the code inside of the script. "Sue Mosher [MVP-Outlook]" wrote: You mean that you want VBScript (not VB) code that is part of your custom form to run? Why not put the code in your addin? If you really do want code on the form to run, you'll need to make an event on the form fire to run the code, e.g. change a property value to invoke the PropertyChange or CustomPropertyChange event. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "DP" wrote in message ... I’ve developed my COM AddIn. (C++) I have the custom button on toolbar inside of the Appointment form. When user clicks on this button then I have to execute some VB methods inside of my custom form. Could you advise please how to make it work? Thanks |
#4
|
|||
|
|||
![]()
The scenario you describe is not, in fact, common at all. Most add-in applications put all the code in the add-in, rather than dividing it between a custom form and the add-in.
There should be no confusion on this point: Code behind an Outlook custom form is VBScript, always VBScript. It is all event-driven code. Therefore, to run any routine behind the form, you must cause the item to fire the appropriate event. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "DP" wrote in message ... This is very common scenario by my opinion. You develop AddIn which introduces a button on Appointment form then You develop the custom Appointment tab (form) which has some routines on the script level in order to communicate with the back-end, retrieve the data and populate fields on the custom form. In order to run this VBA routine inside of the form (I'm confused since some sources call it VBSript and some VBA) user has to push on AddIn button and then I have to run the routine inside of the script. I could access the _UserForm object and then get access to all controls, but there is no such method as "Execute" to run the code inside of the script. "Sue Mosher [MVP-Outlook]" wrote: You mean that you want VBScript (not VB) code that is part of your custom form to run? Why not put the code in your addin? If you really do want code on the form to run, you'll need to make an event on the form fire to run the code, e.g. change a property value to invoke the PropertyChange or CustomPropertyChange event. "DP" wrote in message ... I’ve developed my COM AddIn. (C++) I have the custom button on toolbar inside of the Appointment form. When user clicks on this button then I have to execute some VB methods inside of my custom form. Could you advise please how to make it work? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to access a custom control in an outlook form from my VBA code? | MeAgin | Outlook and VBA | 1 | January 23rd 07 05:39 AM |
Evault custom form & preview pane code | [email protected] | Outlook and VBA | 3 | August 31st 06 06:51 PM |
Create a custom appointment form | Theresa Smallwood | Outlook - Using Forms | 1 | April 27th 06 09:14 PM |
Code to set Flag Status to complete on custom form | ICT User | Outlook - Using Forms | 3 | March 27th 06 11:59 PM |
Need code for appointment form | Colin Coady | Outlook - Using Forms | 0 | January 18th 06 01:21 PM |