Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function in VBA or Excel to Convert AA column to ##

Status
Not open for further replies.

dmwhite

Technical User
Mar 18, 2001
5
CA
Does anyone know if there is a function in Excel that converts a "text" column reference (ie. AA or EB) to a proper column number reference that can be used in a cell(row, col) reference.

Thanks.
 
I think this is what you are trying to accomplish:
Code:
Set c = Range("AA1").Column
Set r = Range("AA1").Row
Cells(r, c)
This is, of course, assuming the row you want to use is row 1.



Dan.
 
Thanks Dan!

Your answer is obvious and simple.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top