Is it possible to have excel dynamic select cells? I'd love to know how to make a macro that does that. I want it to select certain cells based on the value of other cells. For example, ik want to select A1 to A20. And ik want to do that by simply typing 1 in a cell and 20 in another.
I tried this code in vba
Dim example as range Set example = range ("A1:A20")
Example. Select.
It works, but i want the A1 and A20 to be changeable so i can select different ranges
Is that possible? And if not, what is the closest thing to it? Many thanks!
Name Box
which displays the address of the currently selected cell. If you typeA1:A20
in there it will select those cells, similarly if you have a named range and enter the name in that box it will select that range of cells. – Darren Bartrup-Cook