Yeah

You can use Application.ScreenUpdating=False

But you can also:

1) avoid codes like ".Select" , ".Activate"

2) If you are formatting a sheet, Create a sheet which is already
formatted and keep it hidden. And then you can just copy the hidden
sheet and paste the format the new sheet.


It will save lot of time and the screen will not filcker much in case
you dont use "Application.ScreenUpdating=False" when you want the user
to be able to see whats happening when the macro is running.


As you said your macro is pretty long, you may also want to alow the
user to change sheets, scroll or minimise the window etc.. in that
case use the code "DoEvents" inside loops





On Sep 19, 3:04 am, "Daniel" <dcolarde...@free.fr> wrote:
> Hello.
> Add the following line at the beginning of your macro :
>
> Application.ScreenUpdating = False
>
> Optionally, restore at the end of the macro :
>
> Application.ScreenUpdating = False
>
> HTH
>
> Daniel
>
>
>
>
>
> > -----Original Message-----
> > From: excel-macros@googlegroups.com [mailto:excel-
> > mac...@googlegroups.com] On Behalf Of Tommy
> > Sent: vendredi 18 septembre 2009 04:11
> > To: MS EXCEL AND VBA MACROS
> > Subject: $$Excel-Macros$$ Screen fluttering during macro run time
>
> > I have a rather long macro, which when running causes distractful
> fluttering
> > of the screen, is there a way to either blank out or freeze the screen
> during
> > that time period?
> > Any help appreciated.
> > Tommy- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe
-~----------~----~----~----~------~----~------~--~---

Reply via email to