Hello. I've used the code below and it gives me an error sometimes. If I put the value at 1 it doesn't work, but if I put it at 3 it runs through. If I put it at 1 it says select method of range class failed. Isn't this supposed to select the 1st sheet if the value in h is 1?
Sub tst()
h = 3
Worksheets(h).Range("A1").Select
End Sub
Bookmarks