If you want to skip the first sheet, change the loop as shown below. Worksheets(i + 1) will give you errors if there are only 40 sheets in your book;)
Use this
Sub MobileTCalculation() Dim i As Integer For i = 2 To 40 Worksheets(i).Range("A20").Select Next i End Sub
Also two things.
1) Using On Error Resume Next is evil;) Use it only when necessary.
2) Do not use .SELECT It slows down your code. Instead, do the action directly. for instance
Sub MobileTCalculation() Dim i As Integer For i = 2 To 40 With Worksheets(i).Range("A20") Debug.Print .Value End With Next i End Sub
NTN
Sid
source share