How to Customize Outlook Calender 2003....

S

Sue Mosher [MVP-Outlook]

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.
 
M

masani paresh

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.
 
S

Sue Mosher [MVP-Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top