ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to set equivalent of Visual Basic "redraw = false" (https://www.excelbanter.com/excel-programming/287966-how-set-equivalent-visual-basic-redraw-%3D-false.html)

GrantS

How to set equivalent of Visual Basic "redraw = false"
 
Hi
I am wanting to stop the flickering of a work sheet while looping
through the rows and fields to perform some formatting and calculation
funtions.

Is there an option similar to Visual Basic's "Redraw=False" to
maintain the screen (WorkSheet) while the operations are performed?

I have hunted the Excel Object model but not found anything that seems
to do the trick.

Thanks in anticipation.

Grant

Robin Hammond[_2_]

How to set equivalent of Visual Basic "redraw = false"
 
Try this.

APPLICATION.ScreenUpdating =FALSE

set it back to true when you have finished.

Robin Hammond
www.enhanceddatasystems.com


"GrantS" wrote in message
om...
Hi
I am wanting to stop the flickering of a work sheet while looping
through the rows and fields to perform some formatting and calculation
funtions.

Is there an option similar to Visual Basic's "Redraw=False" to
maintain the screen (WorkSheet) while the operations are performed?

I have hunted the Excel Object model but not found anything that seems
to do the trick.

Thanks in anticipation.

Grant




Doug Glancy

How to set equivalent of Visual Basic "redraw = false"
 
Grant,

Application.ScreenUpdating = False

hth,

Doug

"GrantS" wrote in message
om...
Hi
I am wanting to stop the flickering of a work sheet while looping
through the rows and fields to perform some formatting and calculation
funtions.

Is there an option similar to Visual Basic's "Redraw=False" to
maintain the screen (WorkSheet) while the operations are performed?

I have hunted the Excel Object model but not found anything that seems
to do the trick.

Thanks in anticipation.

Grant




Dave Peterson[_3_]

How to set equivalent of Visual Basic "redraw = false"
 
application.screenupdating = false
'lots of code
application.screenupdating = true

GrantS wrote:

Hi
I am wanting to stop the flickering of a work sheet while looping
through the rows and fields to perform some formatting and calculation
funtions.

Is there an option similar to Visual Basic's "Redraw=False" to
maintain the screen (WorkSheet) while the operations are performed?

I have hunted the Excel Object model but not found anything that seems
to do the trick.

Thanks in anticipation.

Grant


--

Dave Peterson


GrantS

How to set equivalent of Visual Basic "redraw = false"
 
Thanks for the help folks. These work.
Cheers

Grant


All times are GMT +1. The time now is 05:26 AM.

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