Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default How to NOT show other screens flashing by when macro runs

i have a macro that navigates to other worksheets and back and forth carrying out some designated macros and steps.

Is it possible to say when viewing SHEET1, that the macro does it's work, WITHOUT actually being able to see the screens flashing by in the progress?


Corey....
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,073
Default How to NOT show other screens flashing by when macro runs

Hi Corey,
Add...

Application.ScreenUpdating = False


to the beginning of your code.

Ken Johnson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default How to NOT show other screens flashing by when macro runs

Hi Corey,

Go ahead early in your VBA code with :

Application.DisplayAlerts = False

and don't forget at the end of your code to reverse the instruction
with :

Application.DisplayAlerts = True


HTH

Cheers
Carim

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to NOT show other screens flashing by when macro runs


Insert:
Application.ScreenUpdating = False
at the beginning of the macro and
Application.ScreenUpdating = True
at the end.
Usually it solves the problem.


--
raypayette


------------------------------------------------------------------------
raypayette's Profile: http://www.excelforum.com/member.php...o&userid=29569
View this thread: http://www.excelforum.com/showthread...hreadid=571119

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default How to NOT show other screens flashing by when macro runs

Sorry Corey,

I meant ScreenUpdating instead of DisplayAlerts ...

Carim



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,073
Default How to NOT show other screens flashing by when macro runs

Carim wrote:
Sorry Corey,

I meant ScreenUpdating instead of DisplayAlerts ...

Carim


Plus no need to reset back to TRUE. This happens automatically after
code has finished.
However, it does have to be TRUE if you are wanting to throw up an
InputBox.

Ken Johnson

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default How to NOT show other screens flashing by when macro runs

thanks guys.

I still get the popup calendar, but now if i click the X it closes and i
still get the macro to run to completion.

Corey....
"raypayette" wrote
in message ...

Insert:
Application.ScreenUpdating = False
at the beginning of the macro and
Application.ScreenUpdating = True
at the end.
Usually it solves the problem.


--
raypayette


------------------------------------------------------------------------
raypayette's Profile:
http://www.excelforum.com/member.php...o&userid=29569
View this thread: http://www.excelforum.com/showthread...hreadid=571119



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default How to NOT show other screens flashing by when macro runs

raypayette wrote:

Application.ScreenUpdating = True
at the end.


This is not necessary. It automatically resets to True after the macros
finish.

Don <www.donwiss.com (e-mail link at home page bottom).
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
VBA macro runs fine, but freezes if I try to do ANYTHING else whileit runs Rruffpaw Setting up and Configuration of Excel 1 September 17th 11 01:25 PM
How to show Excel Worksheets in two screens? Bannie Excel Worksheet Functions 1 March 31st 09 10:47 AM
How can I make my data show as flashing in Excel? Julia Excel Discussion (Misc queries) 12 March 5th 08 02:44 PM
how can I show a flashing symbol in an Excel sheet? GBB2006 Excel Discussion (Misc queries) 2 August 14th 07 12:40 AM
One macro runs then it auto runs another macro PG Excel Discussion (Misc queries) 2 September 1st 06 09:30 PM


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

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"