hide a page on a multipage control

S

Spencer Hutton

is their a way to hide a certain page on a multi page, given a certain
condition. say the Cell A1 contains the word "Yes" hide page 4, else do not
hide page 4. TIA
 
B

Bob Phillips

Hi Spencer,

Try

With Me.MultiPage1.Pages("Page1")
If Range("C4") = "Yes" Then
.Visible = False
Else
.Visible = True
End If
End With


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Top