View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Reference a Column by Number

Assuming if I did Insert=Name=Define, I would see a named range with the
name DateCreated_lbl, then

Range("DateCreated_lbl").EntireColumn.ColumnWidth = 16

--
Regards,
Tom Ogilvy

"John Michl" wrote in message
oups.com...
I have a single cell named range called DateCreated_lbl. I'd like to
apply formatting to the entire column but can't seem to figure out the
proper syntax.

The following did not work:

Range(DateCreated_lbl).Column.ColumnWidth = 16

Columns.Range(DateCreated_lbl).ColumnWidth = 16

Is there a simple way?

Thanks

- John