Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default unselect selection

Hi,
I am coping and pasting cells via a macro. When it is done the last cells
copied are still selected, the dashed lines around the cell indicating a copy
function. How do I get it to stop selecting the last copied cells. Kind of
like hitting escape on the keyboard?
Thanks,
Ivano
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 791
Default unselect selection

Application.CutCopyMode = False
Place this at the end of your macro
--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Ivano" wrote:

Hi,
I am coping and pasting cells via a macro. When it is done the last cells
copied are still selected, the dashed lines around the cell indicating a copy
function. How do I get it to stop selecting the last copied cells. Kind of
like hitting escape on the keyboard?
Thanks,
Ivano

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default unselect selection

worked like a charm... thanks


"Michael" wrote:

Application.CutCopyMode = False
Place this at the end of your macro
--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Ivano" wrote:

Hi,
I am coping and pasting cells via a macro. When it is done the last cells
copied are still selected, the dashed lines around the cell indicating a copy
function. How do I get it to stop selecting the last copied cells. Kind of
like hitting escape on the keyboard?
Thanks,
Ivano

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unselect? Deselect? jayklmno Excel Programming 1 February 21st 07 10:30 PM
now trying to unselect a sheet Eric Excel Programming 1 September 26th 06 05:25 PM
How to unselect? Kou Vang[_2_] Excel Programming 3 January 26th 06 02:54 PM
Unselect Option Box Jon Excel Discussion (Misc queries) 1 May 18th 05 01:02 AM
Unselect Filtre .... sal21[_12_] Excel Programming 1 February 23rd 04 01:54 PM


All times are GMT +1. The time now is 07:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"