Excel Macro question

Jdo300
03-21-2003, 11:24 PM
I'm just curious. Is there any kind of property of a spreadsheet that you can set to stop it from updating formatting changes? I have macros that Run lengthy formatting operations, and although I used Range objects to manipulate the cells the program can run slow because it always wants to refresh after every single change... So can I temporarily stop it from doing this while my macro is running?

Wamphyri
03-22-2003, 07:45 AM
I'm just curious. Is there any kind of property of a spreadsheet that you can set to stop it from updating formatting changes? I have macros that Run lengthy formatting operations, and although I used Range objects to manipulate the cells the program can run slow because it always wants to refresh after every single change... So can I temporarily stop it from doing this while my macro is running?
Use Application.ScreenUpdating=False at the beginning of your macro
And Application.ScreenUpdating=True at the end of your macro.
You'll notice an increase in speed. Typically, during testing I don't use the ScreenUpdating property just so I can see exactly what is happening.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum