ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   unselect selection (https://www.excelbanter.com/excel-programming/408851-unselect-selection.html)

Ivano

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

Michael

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


Ivano

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



All times are GMT +1. The time now is 06:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com