PC Review


Reply
Thread Tools Rate Thread

Chart Print Footer :: Excel 2007

 
 
QB
Guest
Posts: n/a
 
      16th Mar 2010
I create a chart using vba and I create it on it own worksheet
(ActiveChart.Location Where:=xlLocationAsNewSheet, Name:="UsageChart"). I
need to setup the page footer so that when it prints, the date/time appear in
the lower right-hand corner.

I have tried using the following command to set it up:

Worksheets("UsageChart").PageSetup.RightFooter = Format(Date, "yyyy-mmm-dd")

but it does not work, nothing appears. What am I doing wrong?

Thank you for your help,

QB
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      16th Mar 2010
Chart sheet is not a worksheet.

Sheets collection comprises worksheets and chartsheets.

This works for me.

Sheets("UsageChart").PageSetup.RightFooter = Format(Date, "yyyy-mmm-dd")


Gord Dibben MS Excel MVP

On Tue, 16 Mar 2010 12:08:01 -0700, QB <(E-Mail Removed)> wrote:

>I create a chart using vba and I create it on it own worksheet
>(ActiveChart.Location Where:=xlLocationAsNewSheet, Name:="UsageChart"). I
>need to setup the page footer so that when it prints, the date/time appear in
>the lower right-hand corner.
>
>I have tried using the following command to set it up:
>
>Worksheets("UsageChart").PageSetup.RightFooter = Format(Date, "yyyy-mmm-dd")
>
>but it does not work, nothing appears. What am I doing wrong?
>
>Thank you for your help,
>
>QB


 
Reply With Quote
 
Gary Brown
Guest
Posts: n/a
 
      16th Mar 2010
Excel looks at Charts that are on their own tab differently from 'worksheets'
so you need slightly different syntax...

Charts("UsageChart").PageSetup.LeftFooter = "&D"

The formatting for date can not be done here. The '&D' takes it's format
from the default Date format on your computer.

--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown



"QB" wrote:

> I create a chart using vba and I create it on it own worksheet
> (ActiveChart.Location Where:=xlLocationAsNewSheet, Name:="UsageChart"). I
> need to setup the page footer so that when it prints, the date/time appear in
> the lower right-hand corner.
>
> I have tried using the following command to set it up:
>
> Worksheets("UsageChart").PageSetup.RightFooter = Format(Date, "yyyy-mmm-dd")
>
> but it does not work, nothing appears. What am I doing wrong?
>
> Thank you for your help,
>
> QB

 
Reply With Quote
 
Gary Brown
Guest
Posts: n/a
 
      17th Mar 2010
QB,
I want to appologize for my incorrect answer yesterday. Thank you, Gord
Dibben!!!!
Sincerely,
Gary Brown



"QB" wrote:

> I create a chart using vba and I create it on it own worksheet
> (ActiveChart.Location Where:=xlLocationAsNewSheet, Name:="UsageChart"). I
> need to setup the page footer so that when it prints, the date/time appear in
> the lower right-hand corner.
>
> I have tried using the following command to set it up:
>
> Worksheets("UsageChart").PageSetup.RightFooter = Format(Date, "yyyy-mmm-dd")
>
> but it does not work, nothing appears. What am I doing wrong?
>
> Thank you for your help,
>
> QB

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print filters with Pivot Chart in Excel 2007 Alan J Microsoft Excel Misc 0 21st Dec 2009 12:40 AM
Excel chart does not print in Office 2007 =?Utf-8?B?TmdhbHU=?= Microsoft Excel Charting 6 16th Jun 2009 10:57 PM
Excel 2003/2007 print chart options CHKMSTrainer Microsoft Excel Charting 3 25th Oct 2008 07:04 AM
print chart on full page in Excel 2007 jsc bozeman Microsoft Excel Charting 1 3rd Jan 2008 05:48 PM
I cannot print an Excel 2007 chart =?Utf-8?B?TmlnZWwgQmFydG9u?= Microsoft Excel Charting 3 19th Oct 2006 04:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:38 PM.