#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Pop Msg Box

I have a macro that closes a file while having something copy.

There is a pop up box asking if I want to keep something on the
clipboard.

How do I send a "YES" message through the macro so the user won't be
asked for this prompt?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Pop Msg Box

Before you close that workbook, add a line:

application.cutcopymode = false



Nimish wrote:

I have a macro that closes a file while having something copy.

There is a pop up box asking if I want to keep something on the
clipboard.

How do I send a "YES" message through the macro so the user won't be
asked for this prompt?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default Pop Msg Box

Sub Yes()
Sheets("TempoNonBloquante").Shapes("MyShape").Visi ble = True
TheEnd = Timer + 10
Do While Timer < TheEnd
DoEvents
Loop
Sheets("TempoNonBloquante").Shapes("MyShape").Visi ble = False
End Sub

http://cjoint.com/?lrvoypVOY3

Cordialy JB


Nimish a écrit :

I have a macro that closes a file while having something copy.

There is a pop up box asking if I want to keep something on the
clipboard.

How do I send a "YES" message through the macro so the user won't be
asked for this prompt?


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



All times are GMT +1. The time now is 05:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"