clearing a selection

J

John in Surrey

Hi team
after my macro has run and copied some cells to the next sheet
Range("C5:E29").Select
Selection.Copy
I'm left with the dotted lines around the cells copies, how do I clear
this selection.
thanks

john
john
Images of home (NZ)
http:\\www.myplace.co.nz/home
What we are up to in the UK
http:\\www.myplace.co.nz
 
P

Peter Rooney

Hi, John,

application.cutcopymode = false

empties the Windows clipboard and thus removes the dotted lines.

Regards

Pete
 
J

Jim May

Add this line (just before your End Sub line):
Application.CutCopyMode = False
HTH
 

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