Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Don't show sheet switches when running macro

Hi,
Is there some code that will enable me to run a macro without excel
switching between the various sheets that are used.
Essentially I want to be able to click the button for the macro and the
sheet to update without all the others being displayed as the macro runs.
Thanks for any help
Ben
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Don't show sheet switches when running macro

Ben

You can use Application.ScreenUpdating = False, setting it back to True at
the end of the macro.

You can also write your code in such a way that other sheets aren't
activated, as described here
http://www.dicks-blog.com/archives/2...-and-activate/

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

Ben wrote:
Hi,
Is there some code that will enable me to run a macro without excel
switching between the various sheets that are used.
Essentially I want to be able to click the button for the macro and
the sheet to update without all the others being displayed as the
macro runs. Thanks for any help
Ben



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default Don't show sheet switches when running macro

Application.ScreenUpdating = False
Your code
Application.screenUpdating=true
will do it

Alok Joshi
"Ben" wrote:

Hi,
Is there some code that will enable me to run a macro without excel
switching between the various sheets that are used.
Essentially I want to be able to click the button for the macro and the
sheet to update without all the others being displayed as the macro runs.
Thanks for any help
Ben

  #4   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Don't show sheet switches when running macro

Solved this now!!
I used "Application.ScreenUpdating = False"
If anyones interested!!

"Ben" wrote:

Hi,
Is there some code that will enable me to run a macro without excel
switching between the various sheets that are used.
Essentially I want to be able to click the button for the macro and the
sheet to update without all the others being displayed as the macro runs.
Thanks for any help
Ben

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Don't show sheet switches when running macro

A much better way is to do what Dick advised!!!!! Rewrite you code so it
doesn't do the selecting and activating!!!!!

If your interested!!!!!!

--
Regards,
Tom Ogilvy



"Ben" wrote in message
...
Solved this now!!
I used "Application.ScreenUpdating = False"
If anyones interested!!

"Ben" wrote:

Hi,
Is there some code that will enable me to run a macro without excel
switching between the various sheets that are used.
Essentially I want to be able to click the button for the macro and the
sheet to update without all the others being displayed as the macro

runs.
Thanks for any help
Ben





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
How to Show Macro is Running roadkill Excel Discussion (Misc queries) 4 April 12th 06 10:19 PM
Macro for Filter Switches ... Maybe??? Ken Excel Discussion (Misc queries) 4 February 25th 05 05:30 PM
Filter Switches vs Sheet Protection? Ken Excel Discussion (Misc queries) 3 February 23rd 05 09:38 PM
show messagen when running a macro? Markus Scheible[_2_] Excel Programming 7 February 2nd 05 12:00 PM
Printing switches focus off proper sheet Abi Excel Worksheet Functions 1 January 26th 05 07:42 PM


All times are GMT +1. The time now is 03:52 PM.

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

About Us

"It's about Microsoft Excel"