here is the problem:
I'm formatting an excel sheet depending on the quantity of records that are going to be (automatically) inserted. The quantity can change. So I have to count the number of records and use this number in order to select the right cells to be formatted. There is no problem for the rows because they are named with numbers, so I can refer to them with variables:
.Rows("4:" & RecordQuantity).VerticalAlignment = 2
will align the rows number 4 to row number "recordquantity" that is a variable with the number of record.
I would like to do the same with columns but how can I refer to them if their names are letters "A", "B"...
Any ideas?
I'm formatting an excel sheet depending on the quantity of records that are going to be (automatically) inserted. The quantity can change. So I have to count the number of records and use this number in order to select the right cells to be formatted. There is no problem for the rows because they are named with numbers, so I can refer to them with variables:
.Rows("4:" & RecordQuantity).VerticalAlignment = 2
will align the rows number 4 to row number "recordquantity" that is a variable with the number of record.
I would like to do the same with columns but how can I refer to them if their names are letters "A", "B"...
Any ideas?