Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Slow Excel Navigation with Up / Down Arrow and slow scrolling | Excel Discussion (Misc queries) | |||
outline | Excel Worksheet Functions | |||
Outline.ShowLevels | Excel Programming | |||
Outline.ShowLevels | Excel Programming | |||
Outline.ShowLevels | Excel Programming |