ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Do you wish to clear clipboard memory? (https://www.excelbanter.com/excel-programming/322386-do-you-wish-clear-clipboard-memory.html)

WendyUK

Do you wish to clear clipboard memory?
 
I have a macro that is accessing multiple spreadsheets and extracting data
and pasteing to a summary spreadsheet.

This is working fine, except when it closes each sheet, I get the message
"You have data in your clipboard do you wish to save or clear memory" - how
can I skip this or switch it off?

Any help would be gratefully received, its driving me nuts - whats the point
of having a macro if I have to sit there and press return after each
update!!!

Thank you,

Wendy
Telford



Tom Ogilvy

Do you wish to clear clipboard memory?
 
after each paste and before closing

application.CutCopyMode = False

or around the closing command

Application.DisplayAlerts = False
' closing code
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy

"WendyUK" wrote in message
...
I have a macro that is accessing multiple spreadsheets and extracting data
and pasteing to a summary spreadsheet.

This is working fine, except when it closes each sheet, I get the message
"You have data in your clipboard do you wish to save or clear memory" -

how
can I skip this or switch it off?

Any help would be gratefully received, its driving me nuts - whats the

point
of having a macro if I have to sit there and press return after each
update!!!

Thank you,

Wendy
Telford





WendyUK

Do you wish to clear clipboard memory?
 
You are a wonderful person, and have saved my sanity - thank you so much.

Wendy x

"Tom Ogilvy" wrote:

after each paste and before closing

application.CutCopyMode = False

or around the closing command

Application.DisplayAlerts = False
' closing code
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy

"WendyUK" wrote in message
...
I have a macro that is accessing multiple spreadsheets and extracting data
and pasteing to a summary spreadsheet.

This is working fine, except when it closes each sheet, I get the message
"You have data in your clipboard do you wish to save or clear memory" -

how
can I skip this or switch it off?

Any help would be gratefully received, its driving me nuts - whats the

point
of having a macro if I have to sit there and press return after each
update!!!

Thank you,

Wendy
Telford







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

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