I am working on an worksheet generator in Excel 2007. I have a certain layout I have to follow and I often have to format cells based on input. Since the generator is dynami
The Address property of a cell can get this for you:
MsgBox Cells(1, 1).Address(RowAbsolute:=False, ColumnAbsolute:=False)
returns A1.
A1
The other way around can be done with the Row and Column property of Range:
Row
Column
Range
MsgBox Range("A1").Row & ", " & Range("A1").Column
returns 1,1.
1,1