LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default 2 processors

chris jamieson presented the following explanation :
I too have been experiencing this problem and am keen to try the Sub
SpeedUpMacro you've included, but I have probably 30 vba codes. Would I need
to add this Sub SpeedUpMacro to all of those 30 or just one, and if just one,
how do I know which one?

Chris


Not sure where this SpeedUpMacro code came from but looks like
something I posted here some time ago in this reusable sub:

Public Sub EnableFastCode(Optional SetFast As Boolean = True)
With Application
If SetFast Then
.ScreenUpdating = False
.Calculation = xlCalculationManual
Else
.ScreenUpdating = True
.Calculation = xlCalculationAutomatic
.Calculate '//update changes
End If
End With
End Sub

To use it in any procedu

Sub SomeSub()
'dim your vars and do other stuff before running main process

'before you run main process, turn it on
EnableFastCode
'code to do lengthy stuff or lots of recalcs goes here

'at end of main process, turn it off and recalc
EnableFastCode False

'cleanup code goes here
End Sub

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


 
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
Text Item Processor littleredhairedgirl Excel Worksheet Functions 1 October 24th 09 01:05 PM
Calculate:Calculating Processor(s) Amit Patel Excel Discussion (Misc queries) 0 October 3rd 09 06:08 AM
Calculating: (1 Processor(s)): 25% MESSAGE ON STATUS BAR RM Excel Discussion (Misc queries) 2 February 9th 08 12:30 AM
how do i take somthing off the word processor and put it in a fil 1 Excel Worksheet Functions 5 December 13th 07 08:53 PM
Programming a processor macrolad Excel Programming 1 October 1st 03 05:15 PM


All times are GMT +1. The time now is 06:52 AM.

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"