![]() |
| 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: checkbox, checked, then |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
hello,
in the 'general' page of contacts, i added a checkbox. by default, the checkbox is not checked. i would like to add code so that, when the checkbox is checked, the 'expertise' page i created next to the 'general' page is unhidden and data can be entered there. help is most appreciated. thanks, andy |
| Ads |
|
#2
|
|||
|
|||
|
The event that fires (and that you can write code for) depends on whether the check box is bound to an Outlook property or not. Tell us which, and in the meantime, see http://www.outlookcode.com/d/propsyntax.htm
The method you use to unhide a page is Inspector.ShowPage -- 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 "andy" wrote in message ... hello, in the 'general' page of contacts, i added a checkbox. by default, the checkbox is not checked. i would like to add code so that, when the checkbox is checked, the 'expertise' page i created next to the 'general' page is unhidden and data can be entered there. help is most appreciated. thanks, andy |
|
#3
|
|||
|
|||
|
Sue, hi,
thanks for the link. i already had a look at your site previously: full of interesting information. but for a newbee as me, it's difficult to see what can solve my problem... there's a large gap between using outlook and trying to customize it... hope my motto 'learning by doing' helps me on my way. your site contains a link to some code i adapted as follows: Sub CheckBox1_Click() Set myinspector = Item.GetInspector Set myPage1 = myInspector.ModifiedFormPages("General") Set myPage2 = myInspector.ModifiedFormPages("Expertise") Set Checkbox1 = myPage1.Controls("CheckBox1") myPage2.Visible = Checkbox1.Value End Sub i thought this would: - identify the General page as myPage1 - identify the Expertise page (i created) as myPage2 - identify that the Check box is on the myPage1 - identify that, when the Check box is checked, myPage2 is visible unfortunately, i get an error message 'Object required: myPage2'. nice try... but not a success. "Sue Mosher [MVP-Outlook]" wrote: The event that fires (and that you can write code for) depends on whether the check box is bound to an Outlook property or not. Tell us which, and in the meantime, see http://www.outlookcode.com/d/propsyntax.htm The method you use to unhide a page is Inspector.ShowPage -- 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 "andy" wrote in message ... hello, in the 'general' page of contacts, i added a checkbox. by default, the checkbox is not checked. i would like to add code so that, when the checkbox is checked, the 'expertise' page i created next to the 'general' page is unhidden and data can be entered there. help is most appreciated. thanks, andy |
|
#4
|
|||
|
|||
|
You're definitely on the right track, assuming that CheckBox1 is an unbound control, i.e. is not associated with an Outlook property.
But repeating what I said earlier, the method you use to unhide a page is Inspector.ShowPage, thus: myInspector.ShowPage "Expertise" -- 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 "andy" wrote in message ... Sue, hi, thanks for the link. i already had a look at your site previously: full of interesting information. but for a newbee as me, it's difficult to see what can solve my problem... there's a large gap between using outlook and trying to customize it... hope my motto 'learning by doing' helps me on my way. your site contains a link to some code i adapted as follows: Sub CheckBox1_Click() Set myinspector = Item.GetInspector Set myPage1 = myInspector.ModifiedFormPages("General") Set myPage2 = myInspector.ModifiedFormPages("Expertise") Set Checkbox1 = myPage1.Controls("CheckBox1") myPage2.Visible = Checkbox1.Value End Sub i thought this would: - identify the General page as myPage1 - identify the Expertise page (i created) as myPage2 - identify that the Check box is on the myPage1 - identify that, when the Check box is checked, myPage2 is visible unfortunately, i get an error message 'Object required: myPage2'. nice try... but not a success. "Sue Mosher [MVP-Outlook]" wrote: The event that fires (and that you can write code for) depends on whether the check box is bound to an Outlook property or not. Tell us which, and in the meantime, see http://www.outlookcode.com/d/propsyntax.htm The method you use to unhide a page is Inspector.ShowPage "andy" wrote in message ... hello, in the 'general' page of contacts, i added a checkbox. by default, the checkbox is not checked. i would like to add code so that, when the checkbox is checked, the 'expertise' page i created next to the 'general' page is unhidden and data can be entered there. help is most appreciated. thanks, andy |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using a Checkbox in Outlook Form Designer | Frank R | Outlook - Using Forms | 3 | March 29th 06 04:47 PM |
| HTML in mail body - no display with Word option checked | Sue Mosher [MVP-Outlook] | Outlook and VBA | 0 | February 1st 06 05:14 PM |
| Outlook 2000 pro opens for 2 users but not third. Virus checked a. | lospring | Outlook - Installation | 0 | January 30th 06 05:01 PM |
| 'always send to this recipient in Microsoft Outlook rich-text format' checked when created from a blackberry | lesperancer@natpro.com | Outlook - General Queries | 0 | January 28th 06 12:26 AM |
| Mail being checked even though Outlook is closed and exited. | Paul M | Outlook - General Queries | 1 | January 27th 06 07:11 AM |