+ Reply to Thread
Results 1 to 3 of 3

Error when adding title to chart via VBA

  1. #1
    Registered User
    Join Date
    06-25-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    34

    Question Error when adding title to chart via VBA

    This thread is also posted at: http://www.mrexcel.com/forum/showthread.php?t=482127

    I am creating several charts and I get an error when I try to add a title to some graphs.

    Please Login or Register  to view this content.
    The first 4 graphs are executed perfectly, but when I got to the fifth, I get an error:

    "This object has no title"

    Does anyone know why this happens on that particular graph (and all others after it). I used the same line in previous charts and it worked just fine.

    Thanks!!
    Last edited by nbuk; 07-21-2010 at 12:50 PM. Reason: Added thread to cross post after discussing with user.

  2. #2
    Registered User
    Join Date
    06-25-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Error when adding title to chart via VBA

    I have fixed the original problem I had yesterday, but today it seems to stop working again.

    Here is the code:

    Please Login or Register  to view this content.
    Get an error at the ".chart.ChartTitle.Characters.Text...." line:

    "Could not find specified object"

    Any ideas on why this is happening? I have the exact code in different user forms and it runs just fine.

  3. #3
    Forum Contributor vikas.bhandari's Avatar
    Join Date
    04-07-2006
    Location
    Delhi, India
    MS-Off Ver
    Office 2007 and 2010
    Posts
    303

    Re: Error when adding title to chart via VBA

    There is some problem with either *** Me("Quarter").Value ** or ****Me("year").Value****

    The error suggests that you dont have a control by the name off Quarter or year in your user form. If it is there, then please post the spreadsheet here.

    Thanks,
    Vikas

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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