Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That would be the slowest way to do it. Enjoy.
-- Regards, Tom Ogilvy "Arturo" wrote in message ... Thank you. Dim arr As Variant arr = Split(ActiveCell.Address, "$") MsgBox arr(1) "Dave Peterson" wrote: One way: Option Explicit Function ColLetter(rng As Range) As String Dim myStr As String With rng.Parent myStr = .Cells(1, rng.Column).Address(0, 0) myStr = Left(myStr, Len(myStr) - 1) End With ColLetter = myStr End Function And I could test it with: Sub testme() MsgBox ColLetter(ActiveCell) End Sub Arturo wrote: x = ActiveCell.Column Returns 1 for column A How do I get x = A? Hmmm Arturo -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Column letter to index | Excel Discussion (Misc queries) | |||
Translate Column Index Num to Letter | Excel Discussion (Misc queries) | |||
How to replace column letter in refferences with a function using the old column letter? | Links and Linking in Excel | |||
How to replace column letter in refferences with a function using the old column letter? | Excel Worksheet Functions | |||
column header changed from letter to number, how return to letter | Excel Discussion (Misc queries) |