Holding a constant page while the macro runs in the background

J

Joe Mac

Hello all...

I've got a macro the performs multiple file open steps and copies range data
back and forth between pages on alternating workbooks... the macro works
fine... what I'm looking to do is to hold a constant page while the macro
steps operate in the background and when all steps are completed, then to pop
a message box indicating that the file has been updated... any help would be
appreciated
 
F

FSt1

hi
add two lines of code.
at the beginning...
application.screenupdating = false
then at the end...
application.screenupdating = false
msgbox "updated"
end sub

regards
FSt1
 
O

Office_Novice

Try...
at the start of your procedure place
Application.Screenupdating = False

& just above "End Sub"
Application.Screenupdating = True
msgbox "Completed Update"
 
R

RyanH

This should do it for you.

Sub YourMacro()

Application.ScreenUpdating = False

'your code

MsgBox "The file has been updated."

Application.ScreenUpdating = True

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

Top