Hello All,
I am stumped. I have a range of cells in my sheet with some values. I want to use these value to set the column width of the column for that cell. I have the following code and cannot get it to work. Hoping someone can steer me in the right direction ...
I have tried various syntax and always get this message ...
Any help appreciated.
Thanks,
Steve
I am stumped. I have a range of cells in my sheet with some values. I want to use these value to set the column width of the column for that cell. I have the following code and cannot get it to work. Hoping someone can steer me in the right direction ...
VBA Code:
Private Sub worksheet_activate()
Dim c As Range
For Each c In Range("sht1_setcolwidths")
c.EntireColumn.ColumnWidth = c.Offset(1, 0).Value
Next c
End Sub
I have tried various syntax and always get this message ...
Any help appreciated.
Thanks,
Steve