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

Tags: , ,

if checkbox is checked then...





 
 
Thread Tools Display Modes
  #1  
Old April 5th 06, 02:35 PM posted to microsoft.public.outlook.program_forms
andy
external usenet poster
 
Posts: 76
Default if checkbox is checked then...

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  
Old April 5th 06, 02:51 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default if checkbox is checked then...

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  
Old April 5th 06, 10:17 PM posted to microsoft.public.outlook.program_forms
andy
external usenet poster
 
Posts: 76
Default if checkbox is checked then...

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  
Old April 5th 06, 10:45 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default if checkbox is checked then...

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

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


All times are GMT +1. The time now is 07:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Credit Card - Mortgages - Debt Management - Home Loan - Per Insurance