terry16202
New Member
- Joined
- Dec 11, 2007
- Messages
- 4
I am trying to get a second text box to pop-up when a specific visible text box is selected. To better explain, I have a table on sheet 1:
Sheet 1 also contains the 5 visible text boxs with the names in column A. If I select TextBox60, I would like TextBox61 to appear or become visible. The table of names will grow. I have tried messing with simplified code but can't get it to work:
Private Sub Worksheet_Selection(ByVal target As String)
selected_textbox = Selection.Name
If Left(selected_textbox, 4) = "Text" Then
Else
End If
End Sub
Any suggestions would be greatly appreciated.
Thanks,
Mike
Sheet 1 also contains the 5 visible text boxs with the names in column A. If I select TextBox60, I would like TextBox61 to appear or become visible. The table of names will grow. I have tried messing with simplified code but can't get it to work:
Private Sub Worksheet_Selection(ByVal target As String)
selected_textbox = Selection.Name
If Left(selected_textbox, 4) = "Text" Then
ActiveSheet.Shapes("TextBox 61").Visible = FalseElse
ActiveSheet.Shapes("TextBox 61").Visible = TrueEnd If
End Sub
Any suggestions would be greatly appreciated.
Thanks,
Mike