Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Outline.ShowLevels rowlevels:=1 is slow

Hi All,

I've created a spreadsheet with a plan-board. The plan-board is filled from
a sql server-based planning system.
The planboard has two outline levels. There are ± 300 row groups.

At the end of the code for refreshing the plan-board is this line of code:
objWS.Outline.ShowLevels rowlevels:=1
Executing this codeline takes 4 seconds. Is there a way to make this faster?

Thanks,

Jan Vente
The Netherlands


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Outline.ShowLevels rowlevels:=1 is slow

Jan,

All I can do is guess, but give this a try...
(assumes objXL is the variable holding the reference to Excel)

objXL.ScreenUpdating = False
objWS.DisplayPageBreaks = False
objWS.Outline.ShowLevels 1 ' omit argument name
objWS.DisplayPageBreaks = True
objXL.ScreenUpdating = True

Regards,
Jim Cone
San Francisco, USA


"Jan Vente" wrote in message
...
Hi All,

I've created a spreadsheet with a plan-board. The plan-board is filled from
a sql server-based planning system.
The planboard has two outline levels. There are ± 300 row groups.

At the end of the code for refreshing the plan-board is this line of code:
objWS.Outline.ShowLevels rowlevels:=1
Executing this codeline takes 4 seconds. Is there a way to make this faster?

Thanks,
Jan Vente
The Netherlands


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Outline.ShowLevels rowlevels:=1 is slow

Jim,

I've already done that in my code. See listing. The statement <Showlevels 1
is still slow. Thanks for the suggestion.

Jan

With ObjXL
.ScreenUpdating = False
.Calculation = xlCalculationManual
.EnableEvents = False
End With
objWS.DisplayPageBreaks = false
<other code
objWS.Outline.ShowLevels 1
With ObjXL
.ScreenUpdating = True
.Calculation = xlCalculationAutomatic
.EnableEvents = True
End With



"Jim Cone" schreef in bericht
...
Jan,

All I can do is guess, but give this a try...
(assumes objXL is the variable holding the reference to Excel)

objXL.ScreenUpdating = False
objWS.DisplayPageBreaks = False
objWS.Outline.ShowLevels 1 ' omit argument name
objWS.DisplayPageBreaks = True
objXL.ScreenUpdating = True

Regards,
Jim Cone
San Francisco, USA


"Jan Vente" wrote in message
...
Hi All,

I've created a spreadsheet with a plan-board. The plan-board is filled
from
a sql server-based planning system.
The planboard has two outline levels. There are ± 300 row groups.

At the end of the code for refreshing the plan-board is this line of
code:
objWS.Outline.ShowLevels rowlevels:=1
Executing this codeline takes 4 seconds. Is there a way to make this
faster?

Thanks,
Jan Vente
The Netherlands




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
Slow Excel Navigation with Up / Down Arrow and slow scrolling deddog Excel Discussion (Misc queries) 0 August 14th 07 09:56 PM
outline Vinaya Excel Worksheet Functions 2 June 22nd 06 08:01 PM
Outline.ShowLevels Kevin McCartney Excel Programming 1 April 21st 05 12:09 PM
Outline.ShowLevels Kevin McCartney Excel Programming 2 April 20th 05 05:13 PM
Outline.ShowLevels KaiRich Excel Programming 2 June 25th 04 01:48 AM


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