Brainfreeze - I've forgotten how to reference multiple columns by number. I need to be able to set the width of, say, columns 2, 3, and 4 on a worksheet object using something like:
I know I could do it one at a time with:
What's the correct syntax?
VBAjedi![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)
Code:
MyWorksheetObject.Columns(2:4).Width = "14.75"
Code:
MyWorksheetObject.Columns(2).Width = "14.75"
VBAjedi
![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)