Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving files. Please wait.


A little help again please. I need a macro that will

Display a message box saying “Please wait saving files…..”

Save the active file (I know how to do this)

Close the message box.

End macro.



Thanks very much.


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=511057

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Saving files. Please wait.

You can't have a popup display while the file is saving.because
MsgBox and WshShell.Popup are both modal; that is, they halt code
execution until they are replied to. You could create a UserForm,
display it modelessly , save the file then kill the form. This
will work in XL2000 and higher.

MyForm.Show vbModeless
ActiveWorkbook.Save
Unload MyForm


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com






"sungen99"
wrote in
message
...

A little help again please. I need a macro that will

Display a message box saying "Please wait saving files..."

Save the active file (I know how to do this)

Close the message box.

End macro.



Thanks very much.


--
sungen99
------------------------------------------------------------------------
sungen99's Profile:
http://www.excelforum.com/member.php...fo&userid=9144
View this thread:
http://www.excelforum.com/showthread...hreadid=511057



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving files. Please wait.


Ok, I thought I created a userform that just said.

“Please wait… Saving files”

When the macro runs I get the popup userform… but it does not show the
words “Please wait… Saving files” its just a big white box.

Am I just totally stupid? I looked at other examples of userforms and I
see nothing that is different.


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=511057

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Saving files. Please wait.

Try repainting the form.

UserForm1.Repaint


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"sungen99"
wrote in
message
...

Ok, I thought I created a userform that just said.

"Please wait. Saving files"

When the macro runs I get the popup userform. but it does not
show the
words "Please wait. Saving files" its just a big white box.

Am I just totally stupid? I looked at other examples of
userforms and I
see nothing that is different.


--
sungen99
------------------------------------------------------------------------
sungen99's Profile:
http://www.excelforum.com/member.php...fo&userid=9144
View this thread:
http://www.excelforum.com/showthread...hreadid=511057



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving files. Please wait.


Yep. that worked!

Who come it did not work before? I would like to understand. this is my
code



Sub TEST()

UserForm1.Show vbModeless
UserForm1.Repaint
ActiveWorkbook.Save
Unload UserForm1

End Sub


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=511057



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
Saving files clzob Excel Discussion (Misc queries) 1 September 18th 09 03:35 AM
sendkeys(keys,wait) how do I use wait MM Excel Discussion (Misc queries) 1 February 11th 09 03:47 PM
Closing files and saving files dan Excel Worksheet Functions 0 August 15th 06 04:07 AM
saving files Marlis Excel Discussion (Misc queries) 0 August 17th 05 05:56 AM
Saving files Cindy Excel Programming 2 August 18th 04 12:47 PM


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