Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Fleone
 
Posts: n/a
Default Application.ScreenUpdating function question

I would like to place Application.ScreenUpdating = False in a workbook in
such a way that it will have a global effect.
I have approximately 35 worksheets that are calculating variables dependant
on cell contents, applying formats, and several other things. When a set of
data is modified on one worksheet, that sheet "hangs" for a couple of seconds
and then flashes rapidly while the calcs are performed on each of the various
cell ranges.
I would love to avoid having to add the screenupdating variable to each
individual page by calling it from the "This Workbook" item in the Visual
Basic explorer.
1. Is this possible?
2. Can I just use Application.ScreenUpdating = False
Application.ScreenUpdating = True
with nothing in between them?

  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

The ScreenUpdating property is in effect from the time it is set
until control returns to Excel -- that is, all VBA code stops
running. It doesn't matter if the code following ScreenUpdating =
False is in one or more procedures.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Fleone" wrote in message
...
I would like to place Application.ScreenUpdating = False in a
workbook in
such a way that it will have a global effect.
I have approximately 35 worksheets that are calculating
variables dependant
on cell contents, applying formats, and several other things.
When a set of
data is modified on one worksheet, that sheet "hangs" for a
couple of seconds
and then flashes rapidly while the calcs are performed on each
of the various
cell ranges.
I would love to avoid having to add the screenupdating variable
to each
individual page by calling it from the "This Workbook" item in
the Visual
Basic explorer.
1. Is this possible?
2. Can I just use Application.ScreenUpdating = False
Application.ScreenUpdating = True
with nothing in between them?



  #3   Report Post  
Fleone
 
Posts: n/a
Default

Chip,
Thanks for the information, I think I understand what you are saying.
Just to clarify: If I place Application.ScreenUpdating = False in the first
sheet of my workbook and then Application.ScreenUpdating = True in the last
page of my workbook, all included pages should not show any of the actual
calculations that are occuring?

Thanks,
Frank

"Chip Pearson" wrote:

The ScreenUpdating property is in effect from the time it is set
until control returns to Excel -- that is, all VBA code stops
running. It doesn't matter if the code following ScreenUpdating =
False is in one or more procedures.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Fleone" wrote in message
...
I would like to place Application.ScreenUpdating = False in a
workbook in
such a way that it will have a global effect.
I have approximately 35 worksheets that are calculating
variables dependant
on cell contents, applying formats, and several other things.
When a set of
data is modified on one worksheet, that sheet "hangs" for a
couple of seconds
and then flashes rapidly while the calcs are performed on each
of the various
cell ranges.
I would love to avoid having to add the screenupdating variable
to each
individual page by calling it from the "This Workbook" item in
the Visual
Basic explorer.
1. Is this possible?
2. Can I just use Application.ScreenUpdating = False
Application.ScreenUpdating = True
with nothing in between them?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Dynamic Function Reference Question excel newbie Excel Discussion (Misc queries) 1 April 20th 05 08:09 PM
Function Related Question Sandeep Arora Excel Discussion (Misc queries) 1 February 2nd 05 07:36 PM
Grading Function Question... spooker4u Excel Worksheet Functions 2 November 2nd 04 01:45 PM
Grading Function Question... spooker4u Excel Worksheet Functions 1 November 1st 04 02:49 PM


All times are GMT +1. The time now is 07:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"