Problem with ScreenUpdating on Worksheet Open Event

gms

Board Regular
Joined
Jun 17, 2010
Messages
51
I have stopped screen updating by using a Worksheet Open Event but it doesn't stop the screen updating. It seems simple:

Private Sub Workbook_Open()

Application.DisplayAlerts = False
Application.ScreenUpdating = False

End Sub

Why doesn't it stop the flickering?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,286
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
What is happeing to cause it to flicker ??
Are you running another macro as well ??
The worksheet_open event you have doesn't really do anything.
If you want flickering to stop in other macros in the workbook, you will need to insert the lines of code in them
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,913
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I have stopped screen updating by using a Worksheet Open Event but it doesn't stop the screen updating. It seems simple:

Private Sub Workbook_Open()

Application.DisplayAlerts = False
Application.ScreenUpdating = False

End Sub

Why doesn't it stop the flickering?
This only precludes screen updating while the workbook open code is actually running.
 

gms

Board Regular
Joined
Jun 17, 2010
Messages
51
That's my problem. I don't understand why it doesn't do anything. I thought that everytime the Workbook opened I would stop the flicker with the ScreenUpdating = False code.

Why doens't it do anything? After the workbook open, yes there is a lot more code. There is nothing that sets ScreenUpdating = True.

??

gms
 

gms

Board Regular
Joined
Jun 17, 2010
Messages
51

ADVERTISEMENT

Thanks JoMoe. That is unexpected. I was hoping it would turn off the flicker until I reset it with my Workbook Close event. Live and learn.

Thanks
gms
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,286
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
OK, as I stated in my earlier post, you will need to put the
Application.ScreenUpdating = False
Application.ScreenUpdating = True

in each of the relevant macros.

Also, keep in mind that by turning off
Application.DisplayAlerts = False
you stand the risk of having important windows Pop up warnings turned off.
Also ensure that these are reversed at the end of each macro, to put the system "back to normal"
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,523
Messages
5,837,848
Members
430,519
Latest member
abtg1

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
Top