![]() |
| 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. |
|
|||||||
| Tags: 2003, calender, customize, outlook |
|
|
Thread Tools | Display Modes |
|
#21
|
|||
|
|||
|
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 Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "masani paresh" wrote in message ... See i have made the form to meet my requirements at location Tools - forms - Design Forms - appointments -- P.2 and rename it to "Find Conference Room". I am having code also ready for the buttons and checkboxes present there. but i dont know how to add code for this form? mean to say "Find Now" button is there on clicking that button it fetches the data from public folder and displaying into List box in the same form. Could you please tell me just how to add code for this form? |
| Ads |
|
#22
|
|||
|
|||
|
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. "Sue Mosher [MVP-Outlook]" wrote: 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 Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "masani paresh" wrote in message ... See i have made the form to meet my requirements at location Tools - forms - Design Forms - appointments -- P.2 and rename it to "Find Conference Room". I am having code also ready for the buttons and checkboxes present there. but i dont know how to add code for this form? mean to say "Find Now" button is there on clicking that button it fetches the data from public folder and displaying into List box in the same form. Could you please tell me just how to add code for this form? |
|
#23
|
|||
|
|||
|
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 "masani paresh" wrote in message ... 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. "Sue Mosher [MVP-Outlook]" wrote: 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. "masani paresh" wrote in message ... See i have made the form to meet my requirements at location Tools - forms - Design Forms - appointments -- P.2 and rename it to "Find Conference Room". I am having code also ready for the buttons and checkboxes present there. but i dont know how to add code for this form? mean to say "Find Now" button is there on clicking that button it fetches the data from public folder and displaying into List box in the same form. Could you please tell me just how to add code for this form? |
|
#24
|
|||
|
|||
|
Thanks a lot Sue.... you helped me a lot thorugh out a my project.....
"Sue Mosher [MVP-Outlook]" wrote: 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 Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "masani paresh" wrote in message ... See i have made the form to meet my requirements at location Tools - forms - Design Forms - appointments -- P.2 and rename it to "Find Conference Room". I am having code also ready for the buttons and checkboxes present there. but i dont know how to add code for this form? mean to say "Find Now" button is there on clicking that button it fetches the data from public folder and displaying into List box in the same form. Could you please tell me just how to add code for this form? |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can I Customize Outlook 2003 Map Link? | sscharf | Outlook - General Queries | 2 | August 16th 07 02:35 PM |
| Can I Customize Outlook 2003 Map Link? | sscharf | Outlook - Using Contacts | 2 | August 16th 07 01:08 AM |
| Customize Toolbar Outlook 2003 | Jack Clift | Outlook - Installation | 3 | December 5th 06 06:44 AM |
| Customize context menu for reminders in outlook 2003 | none | Outlook - Calandaring | 1 | September 21st 06 05:34 AM |
| customize address cards in outlook 2003 | andy | Outlook - Using Contacts | 1 | February 8th 06 03:50 PM |