Controllling Display Updating

G

GoFigure

I have a short macro that performs a columns.autofit for a range of
columns. When it executes, the window "blinks" as Excel selects the
columns, resizes and returns to the active cell before the procedure
executed.

I've tried surrounding the autofit code with both
Application.ScreenUpdating (false then true) and
Application.Calculation (.xlCalculationManual then
..xlCalculationAutomatic). Neither does the trick. Is there another
way?

Thanks,

- Al
 
G

Guest

Just a guess but are you toggling screen updating on and off multiple times
in the same thread of execution. What I mean is Your main procedure turns
screen updating off and on, but it calls a sub that also turns it off and on.
Each time it is turned on there will be a blink. The only place you want to
turn it off and on is in your main calling procedure.
 
G

GoFigure

I exited Excel and reopened it and Application.ScreenUpdating works jus
fine.

- A
 
G

GoFigure

Thanks for your reply, Jim.

I am only toggling the screen updating in one module. So, given my
previous reply, I must have done something to cause he screen updating
not to work.

- Al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top