+ Reply to Thread
Results 1 to 3 of 3

I have code that worked in excel 2003, but errors in 2007

  1. #1
    Registered User
    Join Date
    04-24-2014
    Location
    Albany, NY
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    2

    I have code that worked in excel 2003, but errors in 2007

    I am creating several charts and adding labels to them. The charts on one page of a work book and the data and labels are on another

    With NewChart.TextBoxes.Add(1, 1, 234, 15)
    End With
    NewChart.DrawingObjects ("Text 1").HorizontalAlighnment = xlCenter
    New Chart.DrawingObjects ("Text1). Formula ="'[" & StandardXLC.Name & "]" & StdData.Name & "'!$A$" & Std row


    the error says that the item with the specified name wasn't found. Text 1 is defined as a text box

    the code worked fine in the older version of excel, but when I try to run it in 2007 I get the error.

    I am not a programmer, just trying to maintain code written by someone else

    thanks for help

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: I have code that worked in excel 2003, but errors in 2007

    Are you sure the name of the textbox is 'Text 1'?

    Does this work?
    Please Login or Register  to view this content.
    PS Can you add code tags when posting code?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    04-24-2014
    Location
    Albany, NY
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    2

    Re: I have code that worked in excel 2003, but errors in 2007

    That did work, thank you. It then generated a new error : "Unable to set Formula Property of the textbox class"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Vbscript problem when using excel 2007 - Worked with 2003
    By Simey2222 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2014, 10:34 AM
  2. Replies: 0
    Last Post: 06-15-2011, 04:38 AM
  3. PlotOrder worked in 2003 but not in 2007
    By kuhusl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2010, 08:27 AM
  4. VBA errors in Excel 2007 and 2003
    By BruHawk in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-02-2010, 09:12 AM
  5. Charting Macro worked in 2003 but not in 2007
    By paulabrozek in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-01-2009, 02:28 PM

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