Hello,
I created userform and added Application Goto reference in a code. The code is, when I add sheet name to the textbox5 then application goto reference goes to that sheet. But if that sheet doesn't exist, which code do I need to get msgbox that "sheet doesn't exist"? Please see below my code:
Thanks in advance
I created userform and added Application Goto reference in a code. The code is, when I add sheet name to the textbox5 then application goto reference goes to that sheet. But if that sheet doesn't exist, which code do I need to get msgbox that "sheet doesn't exist"? Please see below my code:
Code:
Private Sub CommandButton1_Click()
Application.Goto Reference:=(TextBox5) & "!R1C1"
End Sub
Thanks in advance