Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Assigning object names to charts

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    Have 2 queries regarding this matter:
    (Am using Excel 97)
    1. Is it possible to assign charts a name(ie instead of bing called "Chart1" in VB, i'd like to call it something else.) I have noticed that an individual chart does not have any properties. It seems that only a chart sheet, or a work sheet has properties. is that becasue charts are not stored as objects in excel??

    2. I have a worksheet with 36 charts in it. i would like to be able to select any combination of these charts and print them, without having to click on them individually. is this at all possible, as i have noticed that performing a "ctrl + select" does not select the individual chart.

    Your help would me most appreciated!

    Thanx in advance!

    ABASU

  2. #2
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi abasu


    Charts on Worksheets are still Objects, they are embedded in the sheet and as such become a member of the holding sheet. So to change the name via code use:

    Sheet1.ChartObjects(1).Name = "MyChart"

    Or to do so manually the easiest way is to Display the "Drawing Toolbar" select the "Select Objects" arrow and select the chart. Now just type a new name in the "Name box, left of the "Formula bar".

    To print chosen charts use:

    Sheet1.ChartObjects("MyChart").Chart.PrintOut

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •