Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
it is possible to link a chart title to a cell via vba macro: Sub Makro2() ActiveSheet.ChartObjects("Diagramm 1").Activate ActiveChart.ChartTitle.Select Selection.Text = "=Tabelle1!R1C3" End Sub How do I do this in c#? Just puting this code string newTitle = "=Tabelle1!R1C3" chart.ChartTitle.Text = newTitle.ToString() ; ....gets only the content of existing cell and puts ot to chart title. The formula is not getting. Thanks Frank |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello Frank, Change your code to the following... Sub Makro2() ActiveSheet.ChartObjects("Diagramm 1").Activate ActiveChart.ChartTitle.Text = Evaluate("=Tabelle1!R1C3") End Sub Sincerely, Leith Ros -- Leith Ros ----------------------------------------------------------------------- Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846 View this thread: http://www.excelforum.com/showthread.php?threadid=54648 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Leith,
your solution does work as makro. I need c# solution. How does your function will be written in c# ? Thanks Frank "Leith Ross" schrieb im Newsbeitrag ... Hello Frank, Change your code to the following... Sub Makro2() ActiveSheet.ChartObjects("Diagramm 1").Activate ActiveChart.ChartTitle.Text = Evaluate("=Tabelle1!R1C3") End Sub Sincerely, Leith Ross -- Leith Ross ------------------------------------------------------------------------ Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465 View this thread: http://www.excelforum.com/showthread...hreadid=546485 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Chart Title Link to Data Table | Charts and Charting in Excel | |||
link chart title? | Charts and Charting in Excel | |||
adding link to chart title using VB | Excel Programming | |||
Chart Title as a Cell in a worksheet | Excel Programming | |||
VBA: Link Chart Title to Drop Down Menu | Excel Programming |