checkbox hideing frame

G

Guest

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

Sue Mosher [MVP-Outlook]

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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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