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 dynamic I have to calculate all kinds of ranges, merge cells, etc.
How can I convert values like this?
Cells(1,1) into A1 and vice versa
The Address property of a cell can get this for you:
returns
A1.The other way around can be done with the
RowandColumnproperty ofRange:returns
1,1.