View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_3_] Bob Phillips[_3_] is offline
external usenet poster
 
Posts: 2,420
Default Making Frames Visible (or not)

This simple code works

Private Sub CommandButton1_Click()
With Me

.Frame1.Visible = True
.Frame2.Visible = False
.Frame3.Visible = False
.Frame4.Visible = False
End With
End Sub
Private Sub CommandButton2_Click()
With Me

.Frame1.Visible = False
.Frame2.Visible = True
.Frame3.Visible = False
.Frame4.Visible = False
End With
End Sub



--
__________________________________
HTH

Bob

"dunnerca" wrote in message
...
I am working on an application and thought that it would be easy to create
a
number of forms on a dialog box with a menu on the top of the dialog box.
Depending on which button was clicked on, a frame would be made ".visible"
and all the other frames would be set to ".visible=false". Once I make
the
first frame visible, I don't seem to be able to get that frame to become
invisible and another frame visible. Is there something obvious I'm
missing?