+ Reply to Thread
Results 1 to 2 of 2

Thread: Chart Naming

  1. #1
    Registered User
    Join Date
    06-02-2008
    Posts
    1

    Chart Naming

    I am looking to have a chart name update as a function in VBA...

    Code:
     Private Sub Chart_Activate()
        
        TempName = Worksheets(1).Cells(8, 15).Value
    
        With ActiveChart
                .HasTitle = True
                .ChartTitle.Characters.Text = TempName
        End With
    
    End Sub
    This above code works if a specified cell reference value is assigned to TempName. However, I am using a validation drop down list that will sort the sheet, given the a list criteria. Is there any way to extract the value of the sorted criteria from that drop down list and use that as the TempName value? Any help is greatly appreciated.
    Last edited by Andy Pope; 06-03-2008 at 05:52 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    10,943
    Please use CODE tags rather than Italic.

    You need to supply more information about how you would know where the title was. Once you can explain that we should be able to code for it.
    Cheers
    Andy
    www.andypope.info

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