blindlemonray
Technical User
Hi,
I am trying to run a bit of code on all worksheets in a work book but can only seem to get it to run on the work sheet that I am on. I thought that something like
would work but it just keeps looping through the code on this current worksheet.
Is there anyway to run code across all worksheets?
Thanks in advance
I am trying to run a bit of code on all worksheets in a work book but can only seem to get it to run on the work sheet that I am on. I thought that something like
Code:
For Each ws In ActiveWorkbook.Worksheets
If Range("A58").Value = "Auditor :" Then
Rows("58:95").Select
Selection.Insert Shift:=xlDown
End If
Next ws
End Sub
Is there anyway to run code across all worksheets?
Thanks in advance