ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy highlighter (https://www.excelbanter.com/excel-programming/340940-copy-highlighter.html)

donbowyer

Copy highlighter
 
When I do copy/paste in code, the highlighter around the data to be copied
remains on after the paste action and code execution. What simple code
instruction will remove this. (Esc will of course does it manually)
--
donwb

Chip Pearson

Copy highlighter
 
Use

Application.CutCopyMode = False


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"donbowyer" wrote in
message
...
When I do copy/paste in code, the highlighter around the data
to be copied
remains on after the paste action and code execution. What
simple code
instruction will remove this. (Esc will of course does it
manually)
--
donwb




Norman Jones

Copy highlighter
 
Hi Don,

After the paste line insert:

Application.CutCopyMode = False


---
Regards,
Norman



"donbowyer" wrote in message
...
When I do copy/paste in code, the highlighter around the data to be
copied
remains on after the paste action and code execution. What simple code
instruction will remove this. (Esc will of course does it manually)
--
donwb




donbowyer

Copy highlighter
 
Thanks Chip & Norman
--
donwb


"Norman Jones" wrote:

Hi Don,

After the paste line insert:

Application.CutCopyMode = False


---
Regards,
Norman



"donbowyer" wrote in message
...
When I do copy/paste in code, the highlighter around the data to be
copied
remains on after the paste action and code execution. What simple code
instruction will remove this. (Esc will of course does it manually)
--
donwb






All times are GMT +1. The time now is 12:36 PM.

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