Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Closing Wookbook with items in clipboard

I was trying to close a workbook the other day after copying some cells
from it. I kept getting a message

"There is a large amount of info in the clipboard, do you want to keep
it to be used by another program"

I always had to click "Yes" before the macro would proceed. Is there a
method to add to the .CLOSE command so that VBA knows to save the info
in the clipboard and doesn't have to ask me?

Lance

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Closing Wookbook with items in clipboard

Application.CutCopyMode = False
will clear the clipboard so you don't get the prompt.

--
Regards,
Tom Ogilvy

wrote in message
...
I was trying to close a workbook the other day after copying some cells
from it. I kept getting a message

"There is a large amount of info in the clipboard, do you want to keep
it to be used by another program"

I always had to click "Yes" before the macro would proceed. Is there a
method to add to the .CLOSE command so that VBA knows to save the info
in the clipboard and doesn't have to ask me?

Lance



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Closing Wookbook with items in clipboard


"Tom Ogilvy" wrote in message
...
Application.CutCopyMode = False
will clear the clipboard so you don't get the prompt.

--
Regards,
Tom Ogilvy


Hi, I think that the OP probably wants to keep the stuff on the clipboard.

Application.DisplayAlerts = False

This should turn off the alerts when you save files, and so on. I have never
tried it with a full clipboard. Does it disable the query there as well? If
so, is the effect to keep the stuff on the clipboard?

Just a thought.

Geoff




wrote in message
...
I was trying to close a workbook the other day after copying some cells
from it. I kept getting a message

"There is a large amount of info in the clipboard, do you want to keep
it to be used by another program"

I always had to click "Yes" before the macro would proceed. Is there a
method to add to the .CLOSE command so that VBA knows to save the info
in the clipboard and doesn't have to ask me?

Lance





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Closing Wookbook with items in clipboard

Your correct that is appears the OP does want to retain the data in the
clipboard.

I would assume application.DisplayAlerts will cause that to happen - I have
never had occasion to want to retain what is in the clipboard.

Depending on what is in there, the OP may be best advised to finish with the
clipboard before closing and then clearing the clipboard would be
appropriate.



--
Regards,
Tom Ogilvy


GB wrote in message
...

"Tom Ogilvy" wrote in message
...
Application.CutCopyMode = False
will clear the clipboard so you don't get the prompt.

--
Regards,
Tom Ogilvy


Hi, I think that the OP probably wants to keep the stuff on the clipboard.

Application.DisplayAlerts = False

This should turn off the alerts when you save files, and so on. I have

never
tried it with a full clipboard. Does it disable the query there as well?

If
so, is the effect to keep the stuff on the clipboard?

Just a thought.

Geoff




wrote in message
...
I was trying to close a workbook the other day after copying some

cells
from it. I kept getting a message

"There is a large amount of info in the clipboard, do you want to keep
it to be used by another program"

I always had to click "Yes" before the macro would proceed. Is there

a
method to add to the .CLOSE command so that VBA knows to save the info
in the clipboard and doesn't have to ask me?

Lance







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
clipboard hold how much items raspberrytruck3 Excel Worksheet Functions 1 April 3rd 09 02:20 PM
Clipboard Not Collecting Items!!! PlayingToAudienceOfOne Excel Discussion (Misc queries) 1 May 11th 07 10:56 AM
macro help - closing without saving & empty clipboard Bry Excel Discussion (Misc queries) 3 November 23rd 06 02:45 PM
cannot add items to clipboard miamya Excel Discussion (Misc queries) 0 November 21st 06 05:14 PM
Saving clipboard Items Bill Toothaker Setting up and Configuration of Excel 6 July 13th 05 09:10 PM


All times are GMT +1. The time now is 02:09 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"