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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel: How to turn off the macro process steps

Status
Not open for further replies.

azzi2000

MIS
Jan 28, 2004
145
US
I have a long macro that keeps on shifting between one sheet select copy.....to another sheet.
I need the process to be invisble to the user and instead place a message msgbox "Please Wait - Processing" until the pocess is done.
Please advice,
Thank you.
Dré
 
launch a message box at the beginning and then at the beginning of you macro use
Code:
application.screenupdating = false
and at the end
Code:
application.screenupdating = true

It'll run a lot faster to!
 
Dre,

One caveat if you are displaying a dialog with ScreenUpdating set to False: If the user clicks and drags the dialog around, they will see multiple images of the dialog, since the underlying screen isn't being redrawn. If your macro is primarily copying from one sheet, switching to another, then pasting, you might want to try something like the following, which doesn't switch worksheets, instead of setting ScreenUpdating=False:
Code:
Worksheets("Sheet1").Range("A1").Copy Destination:=Worksheets("Sheet2").Range("B1")

Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top