Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel bogs down when running my macros, what is causing it?

It doesn't happen in all workbooks. I have nearly identical workbooks and
some are slow to respond and process the macros, while others fly through in
a couple of seconds. I thought it was size related when I 1st encountered
the problem, but since I have had the problem on smaller workbooks. Setting
the calculation to manual seems to help, but does not eliminate the problem.
Looking for suggestions
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Excel bogs down when running my macros, what is causing it?

I would think that it would depend a lot on what your macro does--if it
inserts/deletes rows or columns, then...

(Saved from a previous post)

Do you see the dotted lines that you get after you do a print or print preview?

If you do
Tools|Options|view tab|uncheck display page breaks

does the run time go back to normal?

Since you're changing columnwidths, excel could be figuring out where those
dotted lines go.

You may want to do something like:

Option Explicit
Sub testme()

Dim CalcMode As Long
Dim ViewMode As Long

Application.ScreenUpdating = False

CalcMode = Application.Calculation
Application.Calculation = xlCalculationManual

ViewMode = ActiveWindow.View
ActiveWindow.View = xlNormalView

ActiveSheet.DisplayPageBreaks = False

'do the work

'put things back to what they were
Application.Calculation = CalcMode
ActiveWindow.View = ViewMode

End Sub

Being in View|PageBreak Preview mode can slow macros down, too.


Rakmup wrote:

It doesn't happen in all workbooks. I have nearly identical workbooks and
some are slow to respond and process the macros, while others fly through in
a couple of seconds. I thought it was size related when I 1st encountered
the problem, but since I have had the problem on smaller workbooks. Setting
the calculation to manual seems to help, but does not eliminate the problem.
Looking for suggestions


--

Dave Peterson
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 on ALL Excel tabs tbong Excel Worksheet Functions 1 June 7th 06 08:52 PM
Anyone have troubles running 2003 macros in 2000 version of Excel Jim Excel Discussion (Misc queries) 0 April 19th 06 02:15 PM
causing macros to run at insertion point Inobugs Excel Worksheet Functions 3 February 1st 06 06:19 AM
Running macros when Excel starts up Solly Excel Discussion (Misc queries) 1 July 13th 05 11:38 AM
Macros running slow in Excel 2003 ebeltran Excel Discussion (Misc queries) 0 March 8th 05 08:30 PM


All times are GMT +1. The time now is 04:26 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"