+ Reply to Thread
Results 1 to 14 of 14

Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

  1. #1
    Registered User
    Join Date
    10-05-2012
    Location
    Liverpool England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    Hi All

    I have recently moved from Excel 2003 to 2007, when trying to use one of my 2003 spreadsheets (which i have converted) I keep getting 'Run-Time Error: '-2147024809 (80070057)'.

    This spreadsheet is used to automatically produce graphs based on school performance. However, when I press the button to run the macro I get the above error saying 'Object has no title'. the code it below:

    Please Login or Register  to view this content.
    The area being highlighted the last line of code before the 'end with'.

    Any help would be greatly appreciated

    Thanks

    Ste

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

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    You need to apply the title first.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-05-2012
    Location
    Liverpool England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    Hi Andy

    I have tried this as shown in the code below. However, i am still getting the same error:

    Please Login or Register  to view this content.
    The strange thing is i have a number of other spreadsheets running the same code, without the 'HasTitle', and when i have tested them they have been fine showing no errors.

    thanks

    Ste

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

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    In fact if I had looked more closely at your code I would have seen you already had it.

    Can you post an example workbook that demonstrates the error as my test does not have a problem.

  5. #5
    Registered User
    Join Date
    10-05-2012
    Location
    Liverpool England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    Yup just realised that myself

    Attached is a copy of the file which i have had to delete the school names.

    thanks

    Ste
    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
    19,915

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    I just ran all 7 routines without error.
    Did the workbook still have the error for you after you removed confidential information?

  7. #7
    Registered User
    Join Date
    10-05-2012
    Location
    Liverpool England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    Something strange going on as I have just ran the file and still get the error when it trys to produce the first graph.

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

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    Is your excel up to date in terms of service packs?

    Office button > Excel options > Resources > About.

  9. #9
    Registered User
    Join Date
    10-05-2012
    Location
    Liverpool England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    My service is: 5.1.2600 Service Pack 3 Build 2600

    as i say its only this file my other ones that run the same code work fine its very odd.

  10. #10
    Registered User
    Join Date
    10-05-2012
    Location
    Liverpool England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    Hi Andy

    this is the code from the another spreadsheet that works

    Please Login or Register  to view this content.
    as you can see there is very difference

    Ste

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

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    You could try these variations on setting the text

    Please Login or Register  to view this content.
    SP3 (12.0.6662.5000)
    FYI: My version is

  12. #12
    Registered User
    Join Date
    10-05-2012
    Location
    Liverpool England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    Hi Andy

    i have tried all 3 of these, none of them work all getting the same error. its very odd.

    my sp3 = 12.0.642.1000

    Thanks

    Ste

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

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    I assume you can manually apply the chart title once the code trips up?

    I out of ideas as to why the code will not work for you.

  14. #14
    Registered User
    Join Date
    10-05-2012
    Location
    Liverpool England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...

    cheers mate

    thanks for your help think i will just have to start again and rebuild the spreadsheet as it starts to highlight other things that as far as i am concerned are correct.

    Ste

+ 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