+ Reply to Thread
Results 1 to 6 of 6

selecting chart

  1. #1
    Registered User
    Join Date
    01-14-2008
    Posts
    30

    selecting chart

    I am somewhat experienced with VBA but rather new to making it work with charts, so now i have a code which i basickly want to copy a chart spreadsheet and insert a new one with same format, problem is my code stops and tells me i cant


    Please Login or Register  to view this content.
    the problem is: The item with the specified name wasnt found

    and the debugger says the problem is

    Please Login or Register  to view this content.
    So how do i work around this ?

    Thanks guys

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: selecting chart

    Rather than using a name you could use a numeric index.

    Please Login or Register  to view this content.
    If there are more than 1 chart object then this will get the latest one.
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    01-14-2008
    Posts
    30

    Re: selecting chart

    I cant quite get it working for me, i tried the following:


    Please Login or Register  to view this content.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: selecting chart

    does it report the same error?

    can you post example workbook

  5. #5
    Registered User
    Join Date
    01-14-2008
    Posts
    30

    Re: selecting chart

    I have attached the file, basically i need to create graphs like the one in the workbook for all sets of PF and BM in the workbooks list.

    Thx
    Attached Files Attached Files

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: selecting chart

    this will go through the lines 2 at a time.

    Please Login or Register  to view this content.
    But looking at your data you will need to alter the code to handle multiple series.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1