ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Working with Charts (https://www.excelbanter.com/excel-programming/319467-re-working-charts.html)

George Raft

Working with Charts
 
I replied to my own post, but somehow it doesn't show up, so I'm doing a
second post.

Shortly after my original post I discovered my (many) errors and confusions.
My immediate problem is solved. For the record, the problem with my
original code, which was symmetrical between the two cases of the If, arose
because I used ActiveSheet.Name as the destination in the case of an
embedded chart (xlLocationAsNewSheet, Name:= ActiveSheet.Name). That gave a
critical error that crashed the entire app. Trying to resolve it set me on
a completely wrong path. Assigning sheetname earlier in the sub works fine.

tk



Jon Peltier[_9_]

Working with Charts
 
George -

I posted a more detailed solution than this, please have another look in the newsgroup.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

George Raft wrote:

I replied to my own post, but somehow it doesn't show up, so I'm doing a
second post.

Shortly after my original post I discovered my (many) errors and confusions.
My immediate problem is solved. For the record, the problem with my
original code, which was symmetrical between the two cases of the If, arose
because I used ActiveSheet.Name as the destination in the case of an
embedded chart (xlLocationAsNewSheet, Name:= ActiveSheet.Name). That gave a
critical error that crashed the entire app. Trying to resolve it set me on
a completely wrong path. Assigning sheetname earlier in the sub works fine.

tk





All times are GMT +1. The time now is 12:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com