The code executes the following straightforward macro in the same sheet, thus I must repeat it for each sheet. How do I change the code?
Sub Macro1()
'
' Macro1 Macro
'
Dim ws As Worksheet
For Each ws In Worksheets
With ws
Application.Goto Reference:="R1C1"
Cells.Select
Selection.UnMerge
Columns("D:D").Select
Selection.Delete Shift:=xlToLeft
Columns("E:E").Select
Selection.Delete Shift:=xlToLeft
Application.Goto Reference:="R10C9"
Range("J10").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.EntireColumn.Delete
End With
Next ws
End Sub