programmatically deselect a selection?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

If I programmatically select a range of cells -- Range("A1:D5").Select --
how can I deselect the selection without selecting another cell? I vaguely
recall something about range("A1:D5").copypaste = false. But I don't see
that anywhere in the dropdown. Any suggestions appreciated.

Thanks,
Rich
 
Something has to be selected. There is no way around that... You can avoid
moving teh active cell by using range objects. That tends to be a much better
way to go. Then you macro leaves the sheets exactly the way it found them,
without moving the focus.
 
you have to select something else generally. You could select outside the
visible range.
 
Thanks for the reference. Thanks all for your inputs. I know that something
needs to be selected. I discovered sht.Cells.Clear or
sht.Cells.ClearContents without having to select an entire sheet. But now I
can take it to areas with Chip Peason's method.

Thanks
 

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