Hi,
How could I make the following code to activate the sheet that a user types on Cell G5.
Suppose if the user types "Mail" in cell G5 I want the sheet Mail to be activated. If the user types "Mysheet" I want the referenced sheet to activated.
Any help on this would be kindly appreciated.
Thanks in advance.
How could I make the following code to activate the sheet that a user types on Cell G5.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("G5").Value = "FALSE" Then
Worksheets("Mail").Activate
End If
End Sub
Suppose if the user types "Mail" in cell G5 I want the sheet Mail to be activated. If the user types "Mysheet" I want the referenced sheet to activated.
Any help on this would be kindly appreciated.
Thanks in advance.