ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   add date to a chart title? (https://www.excelbanter.com/excel-programming/301973-add-date-chart-title.html)

neowok[_65_]

add date to a chart title?
 
I have a chart on a sheet which is printed via a button and a macro s
tha only the chart is printed and not the entire sheet (but the char
has to be ON a sheet because it goes with a table).

What I need to do is add the current date to the end of the chart titl
after the text "Date: " which comes at the end of the title, an
overwrite any existing date there. This way it will update the date o
the title every day without user intervention.

Thank

--
Message posted from http://www.ExcelForum.com


TroyW[_2_]

add date to a chart title?
 
A solution using only worksheet formulas is possible. For example in cell A1
on the first worksheet create a formula as follows:

A1: ="This is my chart title Date: "&TEXT(NOW(),"yyyy-mm-dd")

Then click on the chart and select the chart title to make it the active
selection. In the formula bar type: =Sheet1!A1 and hit enter (change
Sheet1 to whatever your sheet's name is). The title should change to value
in cell A1. Each time the worksheet is recalculated the value in cell A1
(and the chart) will be updated.

Troy


"neowok " wrote in message
...
I have a chart on a sheet which is printed via a button and a macro so
tha only the chart is printed and not the entire sheet (but the chart
has to be ON a sheet because it goes with a table).

What I need to do is add the current date to the end of the chart title
after the text "Date: " which comes at the end of the title, and
overwrite any existing date there. This way it will update the date on
the title every day without user intervention.

Thanks


---
Message posted from http://www.ExcelForum.com/




neowok[_66_]

add date to a chart title?
 
ok thanks. that worked fine

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 09:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com