+ Reply to Thread
Results 1 to 2 of 2

Chart Series Names in VBA

  1. #1
    Registered User
    Join Date
    11-25-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Chart Series Names in VBA

    Hi,
    I need to combine two names, range Y1 and Y2 to be the series name in a chart. The code works for Y1 and Y2 separately, but not for the combined version. The bug is the objSeries.Name line. The names are defined as ranges. The cells are merged cells, but the addressing is correct. Below some lines of the VBA code:

    Please Login or Register  to view this content.
    I'd appreciate the help! Thank you
    Last edited by pike; 11-25-2011 at 06:33 AM. Reason: add code tags for newbie

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

    Re: Chart Series Names in VBA

    If you try to do this manually you will see the error.

    The name must be either a single cell, row or column.

    Your range is multiple rows and columns.
    Cheers
    Andy
    www.andypope.info

+ 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