View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Gary Keramidas Gary Keramidas is offline
external usenet poster
 
Posts: 2,494
Default change label on multipage

i just use the label name. thi label is on the 2nd page and depending on if the
checkbox next to it is checked, it dispaly as value

If Worksheets("work").Range("u2").Value = True Then
Me.CheckBox2 = True

With Me.Label2
.Caption = "Click to disable Menu load on startup."
.Height = 20
.Width = 80
.Left = 75
End With

GoTo Fin:

Else

Me.CheckBox2 = False
With Me.Label2
.Caption = "Click to load Menu on startup."
.Height = 20
.Width = 80
.Left = 75
End With
End If
Fin:

--


Gary


wrote in message
oups.com...
I have a Userform with a Multipage on it. On the first page of the
Multipage I have a combobox. What I would like to do is based upon the
value of the combobox on the 1st page change the text of a label on
Page 2.

Is this possible, and if so how, I have tried to Code below but it does
not work.

If MultiPage1.Pages(0).cboTestType.Value = "Groove Weld" then
MultiPage1.Pages(1).lblWeldType.Caption = "Groove Weld"
else
MultiPage1.Pages(1).lblWeldType.Caption = "Fillet Weld"
End if

Regards
Martin