ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   optimization question (https://www.excelbanter.com/excel-programming/350039-optimization-question.html)

ybazizi

optimization question
 
I saw some code once that turned off screen refreshes in a workbook until a
macro complete running. I can't remember how that was done. Does anyone
have any ideas?

Thanks

AA2e72E

optimization question
 
At the start of the macro set:

application.ScreenUpdating=False

At the end (or in your eeeor trap) set:

application.ScreenUpdating=true

"ybazizi" wrote:

I saw some code once that turned off screen refreshes in a workbook until a
macro complete running. I can't remember how that was done. Does anyone
have any ideas?

Thanks


ybazizi

optimization question
 
Thanks! That did the trick.

"AA2e72E" wrote:

At the start of the macro set:

application.ScreenUpdating=False

At the end (or in your eeeor trap) set:

application.ScreenUpdating=true

"ybazizi" wrote:

I saw some code once that turned off screen refreshes in a workbook until a
macro complete running. I can't remember how that was done. Does anyone
have any ideas?

Thanks



All times are GMT +1. The time now is 03:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com