Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Weird scenario leading to ResetColors crash

Hi All

If I reference Shapes on a chart sheet, then switch to a normal Worksheet
and Reset the default palette - Excel crashes, both XL97 and XL2000.

However no problem later to reset the palette if the same Chart sheet is
still active. Also, if I check the shapes on a chart object on a worksheet,
I can reset default palette while any type of sheet is active.

It's taken a very long time to track what appeared to be intermittent
crashes to these two innocuous lines, dispersed in a large project.

Not sure if anyone else will reproduce the same GPF, but is these some other
way I can reference shapes on a chart sheet and later be able to reset
palette on a normal worksheet.

Sub ChtShapes()
Dim n As Long, ob As Object
'run on a chart sheet

n = ActiveChart.Shapes.Count
'or
'Set ob = ActiveChart.Shapes

End Sub

Sub ColorsReset()
' **** posible crash - ensure no work loaded

'switch to a normal worksheet
ActiveWorkbook.ResetColors

End Sub

Thanks in advance,
Peter T


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
What if scenario Andrey Excel Discussion (Misc queries) 0 January 4th 07 03:38 PM
scenario/what if ?? MikeR-Oz New Users to Excel 2 November 24th 06 11:33 AM
IF Scenario will.00 Excel Worksheet Functions 1 June 15th 05 10:38 AM
Scenario ExcelMonkey[_51_] Excel Programming 0 January 30th 04 10:04 PM
ResetColors failed Sandy V Excel Programming 3 July 19th 03 01:25 AM


All times are GMT +1. The time now is 02:31 AM.

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"