Saving files. Please wait.

  • Thread starter Thread starter sungen99
  • Start date Start date
S

sungen99

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.
 
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"
message
news:[email protected]...
 
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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top