Range Select

  • Thread starter Thread starter Marco Rodas
  • Start date Start date
M

Marco Rodas

What is the code to have a macro select the active cell
and the adjacent two cells to the left, regardless of
where the active cell is? I have tried:


Range(ActiveCell.Select, ActiveCell.Offset (0, -2)).Select


with no luck.

Thanks.
 
Marco

The Select part of ActiveCell.Select is the problem. Just use ActiveCell,
the Select is on the whole range

Range(ActiveCell, ActiveCell.Offset(0,-2)).Select

or

ActiveCell.Offset(,-2).Resize(,3).Select

is another way.
 

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

Back
Top