Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
I am a new VBA programmer so please forgive this simple question.
I am trying to change the Title of a chart to the text in a cell on a worksheet. This code successfully sets the title of the chart to "Stupidity": Private Sub Chart_Activate() Dim strChartName As String strChartName = "stupidity" Chart1.HasTitle = True Chart1.ChartTitle.Text = strChartName End Sub I would like to replace "Stupidity" with reference to cell Sheet1!$N$1 but cannot seem to get it to work without running into syntax errors I do not understand. Any help gratefully appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using part of a cell in a chart title | Charts and Charting in Excel | |||
Chart Axis Title via cell ref. | Charts and Charting in Excel | |||
Chart title = cell contects | Charts and Charting in Excel | |||
Pasting Objects into Chart title and Axis title | Charts and Charting in Excel | |||
how to cell reference a Chart title | Charts and Charting in Excel |