Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable msg box when closing a workbook.

Status
Not open for further replies.

dfarland

Technical User
May 9, 2003
16
US
I am trying to close a workbook from a macro. I get the message that there is data on the clipboard and do you want to keep it.

I know there is a way of stopping that message, but I can't remember what it is.

thanks
 
Hi dfarland,

Try ..

[blue][tt] Application.DisplayAlerts = False[/tt][/blue]

.. or, possibly, ..

[blue][tt] Application.CutCopyMode = False[/tt][/blue]



Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at [url=http://www.vbaexpress.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top