displaying column letter of active cell

T

Todd Huttenstine

Hey guys

How do you have show in a msgbox the current column letter
of the active cell?

Thanx
Todd Huttenstine
 
F

Frank Kabel

Hi Todd
one way:
msgbox left(activecell.address(,0),instr(activecell.address(,0),"$")-1)
 
T

Trevor Shuttleworth

Todd

one way:

Sub test()
MsgBox Left(ActiveCell.Address(, False), _
Application.WorksheetFunction.Find("$", ActiveCell.Address(, False)) -
1)
End Sub

Regards

Trevor
 
T

Todd Huttenstine

Thank you! Works great.

Todd
-----Original Message-----
Todd

one way:

Sub test()
MsgBox Left(ActiveCell.Address(, False), _
Application.WorksheetFunction.Find("$", ActiveCell.Address(, False)) -
1)
End Sub

Regards

Trevor





.
 
T

Todd Htutenstine

Thanks for teh help.

Todd
-----Original Message-----
Hi Todd
one way:
msgbox left(activecell.address(,0),instr (activecell.address(,0),"$")-1)

--
Regards
Frank Kabel
Frankfurt, Germany




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top