ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copying in VBA (https://www.excelbanter.com/excel-programming/328119-copying-vba.html)

[email protected]

Copying in VBA
 
I have a question and I would appreciate any tips. I have coded a
command button that allows for copying some data from one worksheet to
another. But when I go back to the worksheet copied from the range is
still selected for copying. How can I make sure my user doesn't see
this?

Thanks!
Julia


Bob Phillips[_6_]

Copying in VBA
 

Application.CutCopyMode = False

--

HTH

RP
(remove nothere from the email address if mailing direct)


wrote in message
oups.com...
I have a question and I would appreciate any tips. I have coded a
command button that allows for copying some data from one worksheet to
another. But when I go back to the worksheet copied from the range is
still selected for copying. How can I make sure my user doesn't see
this?

Thanks!
Julia




Jan Karel Pieterse

Copying in VBA
 
But when I go back to the worksheet copied from the range is
still selected for copying. How can I make sure my user doesn't see
this?


Add

Application.CutCopyMode=False

after the paste is done.

Regards,

Jan Karel Pieterse
Excel MVP
http://www.jkp-ads.com



All times are GMT +1. The time now is 01:31 PM.

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