PC Review


Reply
Thread Tools Rate Thread

checkbox hideing frame

 
 
=?Utf-8?B?RmVsaXBl?=
Guest
Posts: n/a
 
      17th Nov 2005
I’m trying to make a frame Disappears, but I keep making the same mistake.
Everytime I try to put in a code the same message appears. The code I’m
writing is this one.
Function Item_Open()
Set objPage = Item.GetInspector.ModifiedFormPages("message")
Set objControl_CB1 = objPage.Controls("Checkbox1")
Set objControl_LB1 = objPage.Controls("frame3")
If objControl_CB1 = True Then
objControl_LB1.Visible = True
ElseIf objControl_CB1 = False then
objControl_LB1.Visible = True
Else
End If
End Function

The message I get is that I need the obeject= objpage and the vba depurator
highlight the following line “Set objControl_CB1 =
objPage.Controls("Checkbox1")”
Please help me.

 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      17th Nov 2005
You didn't say what kind of form this is. Does is actually have a page named -- exactly -- "message"?

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


"Felipe" <(E-Mail Removed)> wrote in message news:CC43D4D4-1BF8-430D-93AF-(E-Mail Removed)...
> I’m trying to make a frame Disappears, but I keep making the same mistake.
> Everytime I try to put in a code the same message appears. The code I’m
> writing is this one.
> Function Item_Open()
> Set objPage = Item.GetInspector.ModifiedFormPages("message")
> Set objControl_CB1 = objPage.Controls("Checkbox1")
> Set objControl_LB1 = objPage.Controls("frame3")
> If objControl_CB1 = True Then
> objControl_LB1.Visible = True
> ElseIf objControl_CB1 = False then
> objControl_LB1.Visible = True
> Else
> End If
> End Function
>
> The message I get is that I need the obeject= objpage and the vba depurator
> highlight the following line “Set objControl_CB1 =
> objPage.Controls("Checkbox1")”
> Please help me.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CheckBox within a frame ArneGolf Microsoft Access Reports 5 16th Feb 2010 03:03 AM
reference frame caption associated with a checkbox novice973 Microsoft Excel Programming 2 9th Apr 2008 12:53 AM
add checkbox to an option frame Mark J Kubicki Microsoft Access Forms 1 6th Nov 2006 07:53 AM
Adding checkbox within a frame =?Utf-8?B?QWppdA==?= Microsoft Excel Programming 1 22nd Dec 2004 06:44 PM
Chart sizes with window frame checkbox frozen in "ON' state =?Utf-8?B?RnJhbmsgVmF1Z2hu?= Microsoft Excel Crashes 0 22nd Sep 2004 01:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:36 PM.