Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Mar 2005
    Location
    Kent, England
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Obtaining Name of Chart Object (Excel 2003)

    Can anyone help? This seems such a simple thing to do but for some reason I am getting no where fast !!

    My code reads:

    For lngCount = 1 To wrkWorkbook.Sheets(2).ChartsObjects.Count
    Debug.Print wrkWorkbook.Sheets(2).ChartsObjects(lngCount).Name
    Next lngCount

    I can identify 10 ChartObjects but am finding that the code trips when it is trying to get the name of the chart.

    Any help greatly appreciated.

    Thanks
    Jack

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Obtaining Name of Chart Object (Excel 2003)

    Try using ChartObjects instead of ChartsObjects.

  3. #3
    2 Star Lounger
    Join Date
    Mar 2005
    Location
    Kent, England
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Obtaining Name of Chart Object (Excel 2003)

    Thanks Hans ... apologies for being thick !!!

Posting Permissions

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