Use of Tab key in a range

G

Guest

When using Excel I have selected a range of cells. I can then use the Tab key
to keep the selection but move the active cell to the next cell in the row.
when the last cell on the row has bee selected, the active cell becomes the
next cell on the next row all within the selected range. How is this achieved
in VBA
 
G

Guest

There is rarely any reason to select a cell in VBA

for each cell in Range("A1:F10")
msbox cell.Address
Next

if you want to loop through the user's selection

for each cell in selection
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top