A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to run the custom Appointment form code ?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 20th 07, 04:27 AM posted to microsoft.public.outlook.program_forms
DP
external usenet poster
 
Posts: 19
Default How to run the custom Appointment form code ?

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  
Old March 20th 07, 01:23 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to run the custom Appointment form code ?

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  
Old March 20th 07, 02:02 PM posted to microsoft.public.outlook.program_forms
DP
external usenet poster
 
Posts: 19
Default How to run the custom Appointment form code ?

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  
Old March 20th 07, 02:48 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to run the custom Appointment form code ?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 06:18 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-2025 Outlook Banter.
The comments are property of their posters.