How do I edit the programming below to perform same process for different worksheets by using one macro?
Sub Format_report()
'
' Format_report Macro
'
ActiveWorkbook.RefreshAll
ActiveSheet.AutoFilter.ApplyFilter
Dim c As Range
For Each c In Range("U1:AD1").Cells
If c.Value = "Hide" Then
c.EntireColumn.Hidden = True
End If
Next c
Dim cell As Range
For Each cell In Range("c7:c532")
If cell <> "" Then
If cell = 0 Then cell.EntireRow.Hidden = True
End If
Next cell
Sheets("Sheet1").Select
Range("C1").Select
MsgBox "Formatting Completed! Report Ready!"
End Sub
Sub Format_report()
'
' Format_report Macro
'
ActiveWorkbook.RefreshAll
ActiveSheet.AutoFilter.ApplyFilter
Dim c As Range
For Each c In Range("U1:AD1").Cells
If c.Value = "Hide" Then
c.EntireColumn.Hidden = True
End If
Next c
Dim cell As Range
For Each cell In Range("c7:c532")
If cell <> "" Then
If cell = 0 Then cell.EntireRow.Hidden = True
End If
Next cell
Sheets("Sheet1").Select
Range("C1").Select
MsgBox "Formatting Completed! Report Ready!"
End Sub