Print/ Print preview setup help with chart object

IglooBass

New Member
Joined
Jun 3, 2011
Messages
10
Greetings,

I need some help with print / print preview. I have 2 seperate print buttons setup in my application on 1 sheet. I have a data area that is set to print / print preview. I use the following code to put a special date in the footer. On the same page I also have a chart that is setup to print / print preview. I need to set the footer again to this special date - I'm assuming the chart object needs to be referenced instead of the workbook ...

Any help would be greatly appreciated.

Code is this :

Sub Saved_Date_Footer()

Set wkbktodo = ActiveWorkbook
For Each ws In wkbktodo.Worksheets
ws.PageSetup.LeftFooter = Range("date_capture").Value
Next

End Sub


Thanx,

Ed.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi,

I've figured out an answer to this - I thought I'd post it for those searching for something like this.

ActiveSheet.PageSetup.LeftFooter = "&""Ariel""&10" & Format(Sheets("Value").Range("Date_Capture").Value, "mmmm dd, yyyy")

Thanx,

Ed.
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,314
Members
452,905
Latest member
deadwings

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top