VB ScreenUpdate = False

HotNumbers2001

Board Regular
Joined
Apr 21, 2002
Messages
139
How Can I make the Macro Run without showing all the steps on screen while it is profoerming the Macro.

I used the following code in the begining of the Macro but doesn't seem to work. Does Anyone have any ideas?


Application.ScreenUpdating = False

o_O
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Ans = MsgBox("Convert SubLedger?", vbYesNo + vbQuestion, "SAP SubLedger Macro")
If Ans = vbYes Then
Application.ScreenUpdating = False

...more code
...more code
...more code

Beep
Beep
Else
Exit Sub
End If



End Sub
 
Upvote 0
WOW what a trip. I logged on to ask a very simular question on how to "visualy" hide the work of my macros. My boss keeps trying to inturupt procedures because he's to impatient to wait 30 seconds and thinks he needs to click everything on the screen. :x
 
Upvote 0
You *should* always code something like

Application.ScreenUpdating = False

'Your code here

Application.ScreenUpdating = True

you didn't say what version are you using...
 
Upvote 0
For added measure, in case what you're doing can create dialogue boxes (Save, Close, etc.), I also add Application.DisplayAlerts = False/True.

Smitty
 
Upvote 0
IZZY:
because he's to impatient to wait 30 seconds and thinks he needs to click everything on the screen.
Have you thought of putting in a progress indicator or a "Disable dummies" workaround? You can use some text in a UserForm that's called with the macro that says "Hey Boss, chill out you %^&$*# pinhead...I'll be done in a minute...Mess with this again and I'll melt down your hard drive if you don't give me a raise". :devilish: It will stay on screen until the macro is done. Or pop up a fake tic-tac-toe game... :LOL:

I'd be happy to post the code for that for you, but e-mailing it might be easier, so you don't have to build the associated form.

HTH,

Smitty
 
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,360
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top