Column reference

  • Thread starter Thread starter Glen Mettler
  • Start date Start date
G

Glen Mettler

I need to capture the alpha address of a column. For example, I know that
column 5 is "E" but how can I do that programmatically?
Suppose I have column 37 - how can I capture the alpha address?

Glen
 
Disregard. I got it from www.dicks-blog .com

ColLetter = Left(Cells(1, ColNumber).Address(False, False), _
1 - (ColNumber > 26))
neat!!

Glen
 
strColumn = Split(Columns(lngColumn).Address(, False), ":")(1)

where lngColumn is the column number.
 

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

Back
Top