ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,832
- Office Version
- 2007
- Platform
- Windows
I have a code shown below where the user enters a row number & is then taken to it.
Somethimes the user will click on Cancel ot the red cross to exit BUT the Type mismatch message is shown.
What do i need to add to the code so in future if the message is not shwon.
Thanks
Somethimes the user will click on Cancel ot the red cross to exit BUT the Type mismatch message is shown.
What do i need to add to the code so in future if the message is not shwon.
Thanks
VBA Code:
Private Sub GoToRow_Click()
Dim lnRow As Long
lnRow = InputBox("ENTER ROW NUMBER.", "GO TO ROW NUMBER")
Cells(lnRow, 1).Select
End Sub