kilroyscarnival
Registered User.
- Local time
- Today, 03:29
- Joined
- Mar 6, 2002
- Messages
- 76
Happy holidays, everyone!
I've written a simple macro to do some autoformatting of an Excel spreadsheet. When I reduce to 100% zoom, I want to widen every third column so the contents display fully.
Range("D,G:G,J:J,M:M,P,S:S,V:V,Y:Y").Select
Selection.ColumnWidth = 2.1
When I run the macro, EVERY column becomes 2.1 in width. Am I missing something obvious?
I have even tried isolating these two lines to make sure the error isn't elsewhere. Why would this command affect columns C, E, F, etc? I don't get it. Is there a reliable workaround?
Best regards,
Ann
I've written a simple macro to do some autoformatting of an Excel spreadsheet. When I reduce to 100% zoom, I want to widen every third column so the contents display fully.
Range("D,G:G,J:J,M:M,P,S:S,V:V,Y:Y").Select
Selection.ColumnWidth = 2.1
When I run the macro, EVERY column becomes 2.1 in width. Am I missing something obvious?
I have even tried isolating these two lines to make sure the error isn't elsewhere. Why would this command affect columns C, E, F, etc? I don't get it. Is there a reliable workaround?
Best regards,
Ann
Last edited: