Re: how get column letter from range?
- From: Leith Ross <Leith.Ross.1zn9sy_1133916303.528@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 6 Dec 2005 18:40:57 -0600
Hello Ian,
Here is a function that doesn't care about the dollar signs.
Public Function ColumnLetter(ByRef Rng As Excel.Range)
Dim ColLtr1 As String
Dim ColLtr2 As String
Dim X
X = Rng.Address(False, False)
ColLtr1 = Left(X, 1)
ColLtr2 = Mid(X, 2, 1)
If Val(ColLtr2) = 0 Then ColLtr1 = ColLtr1 & ColLtr2
ColumnLetter = ColLtr1
End Function
Sincerely,
Leith Ross
--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=18465
View this thread: http://www.excelforum.com/showthread.php?threadid=491287
.
- References:
- Re: how get column letter from range?
- From: Bob Phillips
- Re: how get column letter from range?
- Prev by Date: Re: Undoing a macro
- Next by Date: Re: XP and string paths
- Previous by thread: Re: how get column letter from range?
- Next by thread: RE: Copy/Paste Loop
- Index(es):