Great to join this forum & hoping for helps.
I'm trying to arrange 2 VBA code to show and hide the Text Boxes and using 2 auto shapes to executed the macros. Are there any simple VBA code or shorter than below code to doing this? Thanks for advance..
Code:
I'm trying to arrange 2 VBA code to show and hide the Text Boxes and using 2 auto shapes to executed the macros. Are there any simple VBA code or shorter than below code to doing this? Thanks for advance..
Code:
Sub Show_Box()
' Show cell value in the textbox
Sheets(1).Shapes("TextBox" & 1).Visible = True
Sheets(1).Shapes("TextBox" & 2).Visible = True
Sheets(1).Shapes("TextBox" & 3).Visible = True
Sheets(1).Shapes("TextBox" & 2).Visible = True
Sheets(1).Shapes("TextBox" & 3).Visible = True
End Sub
Sub Hide_Box()
' Show cell value in the textbox
Sheets(1).Shapes("TextBox" & 1).Visible = False
Sheets(1).Shapes("TextBox" & 2).Visible = False
Sheets(1).Shapes("TextBox" & 3).Visible = False
Sheets(1).Shapes("TextBox" & 2).Visible = False
Sheets(1).Shapes("TextBox" & 3).Visible = False
End Sub