PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Check Boxes

Reply

Check Boxes

 
Thread Tools Rate Thread
Old 25-09-2003, 09:38 PM   #1
Wanda
Guest
 
Posts: n/a
Default Check Boxes


Figured it out. Used unbound check box and did the
following code:

Sub chkCal_Click()
Dim chkCal
Set chkCal = Item.GetInspector.ModifiedFormPages("Video
Conference Rooms").chkCal
If chkCal.Value = vbChecked Then
msgbox "False"
Else
msgbox "This means it was checked."
End If
End Sub

Wanda
>-----Original Message-----
>I am missing something here and not sure what. I want a
>bound check box to do something if True and another thing
>if False. If I had coding as below, what am I missing?
>Thanks. Wanda
>*****************
>
>Sub Item_CustomPropertyChange(ByVal Name)
>Dim chkTest
>Set chkTest = Item.GetInspector.ModifiedFormPages
>("P.2").chkTest
>
>Select Case Name
> Case "chkTest"
> Set chkTest = Item.GetInspector.ModifiedFormPages
>("P.2").chkTest
> If chkTest.Value = True Then
> msgbox "Hi there"
> End If
> End Select
>End Sub
>
>.
>

  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off