Stretchwickster
Programmer
I'm new to VBA so can anyone tell me how I can loop through all non-hidden worksheets that are open and select a certain cell within each worksheet. I've had a go but keep getting errors. Below is my attempt (but it produces a range error):
Clive ![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)
Code:
If Sheets.count > 0 Then
Sheets(1).Select
For Counter = 1 To Sheets.count
Range("A1").Select
If Counter = Sheets.count Then
End
End If
ActiveSheet.Next.Select
Next Counter
End If
![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)