Hello, as the title states I want to run a macro through all worksheets in a workbook.
Here is my code:
But it does only apply to the active worksheet. Can anyone see what's wrong with it?
Thank you in advance!
Cheers!
Here is my code:
Code:
Sub test1()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
Columns("M:M").ColumnWidth = 11.5
Next ws
End Sub
But it does only apply to the active worksheet. Can anyone see what's wrong with it?
Thank you in advance!
Cheers!