Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deselect cell in Excell 2

Status
Not open for further replies.

ChrisBurch

IS-IT--Management
Jul 3, 2001
184
AU
When my code completes, the last cell that was copied remains selected. How can I deselect this via code, as if I had pressed the ESC key? I've tried sendkeys "{ESC}", but nothing happens, and I error if I try Range("N2").selection = False.

Thanks, Chris

It worked yesterday.
It doesn't work today.
That's Windows!
 
Chris,

I believe this is what you are after...

Application.CutCopyMode = False

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
Thanks Dale,

Exactly what was needed. Chris

It worked yesterday.
It doesn't work today.
That's Windows!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top