Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What do I need to do to combine the

Status
Not open for further replies.

Chattin

Technical User
Aug 18, 2002
184
GB
What do I need to do to combine these two bits of code so that the chart title is directly referenced to the cell rather than being created then changed? Ta!

With chtChart
.Chart.ChartTitle.Text = "Title"
End With

ActiveChart.ChartTitle.Select
Selection.Text = "='Data Entry Sheet'!R79C1"
 
Something like :
Code:
Set chtChart = Sheets("Sheet1").ChartObjects("Chart 1").Chart
    With chtChart
        .HasTitle = True
        .ChartTitle.Text = "='Data Entry Sheet'!R79C1"
    End With
should work.

A.C.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top