PDA

View Full Version : Range Address Variables



em07189
12-28-2022, 12:28 PM
Hello everyone,

instead of write A, which is the column in a excel sheet in the
Range("A" & i)expression ,is it possible to put a variable in the place of the "A" letter that identifies the column?

Thanks.

rollis13
12-28-2022, 05:08 PM
Use instead:

Cells(i, x)

where x is the variable for the column (in numbers).

Aflatoon
01-03-2023, 06:27 AM
Or letters. Either work with Cells().