+ Reply to Thread
Results 1 to 2 of 2

Thread: Change name on chart

  1. #1
    Registered User
    Join Date
    02-10-2010
    Location
    Sacramento, Ca, USA
    MS-Off Ver
    Excel 2003
    Posts
    23

    Red face Change name on chart

    Hi
    can anyone help me with this? I have used this code in Excel2003/Windows2000 and it did work
    Sub ChangeChartnumber()
    '
    'Changing number on chart
    '
    Dim strNamn As String
    Dim strNamn1 As String
    
    
    strNamn = InputBox("Change from?")
    strNamn1 = InputBox("Change to")
    
        ActiveSheet.ChartObjects(strNamn).Name = strNamn1
       
       
    End Sub
    Now when I try it I get Cannot find property ChartObjects for Worksheet class. I have tried to change to Worksheet("2") and Worksheets("2") still the same. What I have noticed is that in the other sheet I have a reference library Microsoft ActiveX Data Objects 6.0 Library that is missing in the one I am working with. But, the msado15.dll is pointing to 2.8 Library. If that is the reason, where can I find the correct .dll?

    Gunilla
    Last edited by Gunilla; 07-26-2010 at 01:43 AM.

  2. #2
    Registered User
    Join Date
    02-10-2010
    Location
    Sacramento, Ca, USA
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Change name on chart

    Hi everybody
    I have solved my problem. By activating the chart and
    use
    activechart.parent.name=strNamn
    Gunilla

+ 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.2.0