Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Screen flash while running macros

I have a macro set up to run when you enter a worksheet. This macro
serarches out blank cells & hides the row that they are in. Is there a way
to prevent the screen from flashing while this macro is running?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Screen flash while running macros

Sub demo()
Application.ScreenUpdating = False
' your code goes here
Application.ScreenUpdating = True
End Sub

--
Gary''s Student - gsnu200759


"Jay" wrote:

I have a macro set up to run when you enter a worksheet. This macro
serarches out blank cells & hides the row that they are in. Is there a way
to prevent the screen from flashing while this macro is running?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 229
Default Screen flash while running macros

At the beginning of your macro, insert this line:

Application.ScreenUpdating = False

At the end of your macro (or in your error_exit, if you have error
handling), insert this line:

Application.ScreenUpdating = True

If your macro ever crashes and the screen stops updating, use this
line and paste it in the Immediate window (Ctrl+G to open window, Ctrl
+V to paste, then press Enter to execute):

Application.ScreenUpdating = True


On Dec 3, 4:12 pm, Jay wrote:
I have a macro set up to run when you enter a worksheet. This macro
serarches out blank cells & hides the row that they are in. Is there a way
to prevent the screen from flashing while this macro is running?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Macros Links and Linking in Excel 3 July 13th 06 11:30 PM
Running Macros Excel Discussion (Misc queries) 1 July 6th 06 04:21 PM
Running Macros Excel Worksheet Functions 0 July 6th 06 03:42 PM
running macros from IF CJ Excel Worksheet Functions 2 April 30th 06 05:03 PM
running macros Jay Excel Discussion (Misc queries) 2 April 29th 05 12:56 AM


All times are GMT +1. The time now is 07:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"