ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Returning Column of active cell (https://www.excelbanter.com/excel-programming/328438-returning-column-active-cell.html)

Marek

Returning Column of active cell
 
Hi,

Does anyone know how to return the column of the active cell - not as a
column number but the column letter. So, if cell C1 is selected, return
column C.

The Column propert seems only to return the number 3
--
Many thanks in advance for any assistance

Tom Ogilvy

Returning Column of active cell
 
colLetter = Left(ActiveCell.Address(0,0),1 - (ActiveCell.column 26))

Although, there is no need to do this if trying to reference a location.

--
Regards,
Tom Ogilvy

"Marek" wrote in message
...
Hi,

Does anyone know how to return the column of the active cell - not as a
column number but the column letter. So, if cell C1 is selected, return
column C.

The Column propert seems only to return the number 3
--
Many thanks in advance for any assistance





All times are GMT +1. The time now is 11:56 PM.

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