+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Henry Boyd
    Guest

    Dynamically titling Excel charts

    I am creating a spreadsheet tool that will be distributed as a template.
    The output will be a chart that will graphically show the performance of a
    particular quote. I would like the title of the chart to be driven by the
    contents of one of spreadsheet cells. Is that possible?

    TIA

    Henry Boyd

  2. #2
    Tushar Mehta
    Guest

    Re: Dynamically titling Excel charts

    In article <Xns96AF736AA4A59lhboydlhbcocom@130.81.64.196>,
    purchasing@lhbco.com says...
    > I am creating a spreadsheet tool that will be distributed as a template.
    > The output will be a chart that will graphically show the performance of a
    > particular quote. I would like the title of the chart to be driven by the
    > contents of one of spreadsheet cells. Is that possible?
    >
    > TIA
    >
    > Henry Boyd
    >

    See Dynamic Chart Title
    http://www.tushar-
    mehta.com/excel/newsgroups/dynamic_chart_title/index.html

    --
    Regards,

    Tushar Mehta
    www.tushar-mehta.com
    Excel, PowerPoint, and VBA add-ins, tutorials
    Custom MS Office productivity solutions

  3. #3
    Andy Pope
    Guest

    Re: Dynamically titling Excel charts

    Hi,

    Maybe something like this VBA code.

    Sub DynamicChartTitle()
    Dim rngTitleText As Range

    Set rngTitleText = ActiveSheet.Range("D7")
    With ActiveChart
    .HasTitle = True
    .ChartTitle.Text = "='" & rngTitleText.Parent.Name & "'!" & _
    rngTitleText.Address(ReferenceStyle:=xlR1C1)
    End With
    End Sub

    Cheers
    Andy

    Henry Boyd wrote:
    > I am creating a spreadsheet tool that will be distributed as a template.
    > The output will be a chart that will graphically show the performance of a
    > particular quote. I would like the title of the chart to be driven by the
    > contents of one of spreadsheet cells. Is that possible?
    >
    > TIA
    >
    > Henry Boyd


    --

    Andy Pope, Microsoft MVP - Excel
    http://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