I have the following code and I want it to loop through all sheets in the workbook except a sheet called "Summary".
Here is the code:
Sub DragSort()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
lastrow = Range("A3").End(xlDown).Row
Range("H3:I3").AutoFill Destination:=Range(Range("H3"), Range("I" & lastrow))
ActiveSheet.Name = ActiveSheet.Range("I3") & "." & Range("H3")
Next ws
End Sub
Here is the code:
Sub DragSort()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
lastrow = Range("A3").End(xlDown).Row
Range("H3:I3").AutoFill Destination:=Range(Range("H3"), Range("I" & lastrow))
ActiveSheet.Name = ActiveSheet.Range("I3") & "." & Range("H3")
Next ws
End Sub