ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Column Headings (https://www.excelbanter.com/excel-programming/302173-re-column-headings.html)

Tom Ogilvy

Column Headings
 
i = 27
colLetter = Left(cells(1,i).address(0,0),1-(cells(1,i).Column26))

--
Regards,
Tom Ogilvy



"OkieViking" wrote in message
...
In VBA columns are denoted by numbers, but in Excel they are denoted by

letters (i.e. Column A, Column C). Is there a Column property that returns
the Letter instead of the number? Is there another way of getting to that?



OkieViking

Column Headings
 
Thanks again!

"Tom Ogilvy" wrote:

i = 27
colLetter = Left(cells(1,i).address(0,0),1-(cells(1,i).Column26))

--
Regards,
Tom Ogilvy



"OkieViking" wrote in message
...
In VBA columns are denoted by numbers, but in Excel they are denoted by

letters (i.e. Column A, Column C). Is there a Column property that returns
the Letter instead of the number? Is there another way of getting to that?





All times are GMT +1. The time now is 04:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com