J
J.W. Aldridge
how to perform macro on each sheet in workbook.
(except first worksheet = "master data")
I've tried the subs below but only worked on one sheet.
Public Sub DoToAll()
Dim ws As Worksheet
For Each ws In Worksheets
Application.Run "filldown"
Next
End Sub
Sub loopthroughanddo()
x = Sheets("master data").Index
For Each sh In ThisWorkbook.Sheets
If sh.Index > x Then
Application.Run "filldown"
End If
Next
End Sub
(except first worksheet = "master data")
I've tried the subs below but only worked on one sheet.
Public Sub DoToAll()
Dim ws As Worksheet
For Each ws In Worksheets
Application.Run "filldown"
Next
End Sub
Sub loopthroughanddo()
x = Sheets("master data").Index
For Each sh In ThisWorkbook.Sheets
If sh.Index > x Then
Application.Run "filldown"
End If
Next
End Sub