How to Customize Outlook Calender 2003....

  • Thread starter Thread starter Guest
  • Start date Start date
In design mode, click the View Code button on the toolbar. The code language is VBScript. In addition to the Item-level events offered in the Script | Event Handler dialog, you can also write code for the Click event of a command button and some other unbound controls.
 
Sue,
so i have to write code in VBScript? i already written in VB. ok then how
would i can write the action event in VBScript for button which is in P.2
location? bcz there is no direct connection between script and tht button so
that i can refer it.
 
Yes, code behind a form is always VBScript. As I indicated in my last response, a command button control has a Click event:

Sub CommandButton1_Click()
' your VBScript code goes here
End Sub

If "already written in VB" means you're building an add-in, then you would need to instantiate the control object WithEvents so you can write code for its Click event. See http://www.outlookcode.com/article.aspx?ID=38 for details on the syntax for accessing Outlook form controls.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
Back
Top