LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Naming and referring to charts

I have a spreadsheet with a bunch of charts on it that I want to
manipulate in code.

1) What is the easiest way to find out what a chart is called? I've
had to resort to recording a macro, clicking on a chart, then reading
the code to find out what Excel has called it.

2) How do I give a chart a meaningful name, like "chart_income" instead
of Excel's default number?

3) One of the things I want to do includes duplicating a worksheet with
a complex scenario on it. The scenario has a whole heap of VBA
controls, charts and all kinds of stuff. When I duplicate the
worksheet I'd like it if the controls, which include various buttons
for modifying charts, I'd like it if my buttons, including the ones
which modify the charts, to still work. They don't work because the
charts rename themselves when I copy the worksheet.

I know with issue 3, one way around it would be to have the scenario
spreadsheet duplicated and all buttons recoded and "duplicate" the
projection by unhiding what is already there, and using a routine that
plugs the data from scenario 1 into scenario 2, but my main problems
with that are...
* if I make a change to scenario 1 I don't want to have to make the
same change to the other scenarios, especially since I modify scenarios
constantly.
* each scenario is huge, and a spreadsheet with just one scenario is
about 4 megabytes unzipped (though only 600K zipped). If I had
multiple scenarios, the spreadsheet would become enormous, which is a
particular problem since I have to email it to a lot of people
frequently.
* I may want more than just a couple of scenarios, maybe even dozens of
them, so I'd prefer to just be able to create duplicates on the fly.

Travis

 
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
Naming charts on own sheet BoRed79 Charts and Charting in Excel 3 July 2nd 07 01:05 PM
referring to workbook comparini3000 Excel Programming 0 June 21st 06 05:34 PM
Referring to a hyperlink [email protected] Excel Discussion (Misc queries) 2 March 1st 06 02:11 PM
naming charts Tim[_39_] Excel Programming 8 October 14th 05 04:58 PM
Syntax when referring to self Jack Schitt Excel Programming 3 September 2nd 04 02:04 AM


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