A
Art
I am using the following VBA macro that I saw in online.
It is great, but have 2 questions.
Operating system is Windows XP and 2000, Excel version is
currently 97
Sub workbook_beforeprint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter =
ActiveWorkbook.FullName
ActiveSheet.PageSetup.RightFooter = " Printed on " &
Format(Date, "mm-dd-yyyy") & " " & Format
(Time, "hh:mm AMPM")
End Sub
Question 1: What do I need do to have the date and time
on a separate line from the path and filename? Sometimes
the path and filename have been long and run into the
date & time.
I would like:
Path\filename on one line, and
Date and Time on another line
Question 2: How can I set the font for this VBA footer? I
know this should be easy but I have tried and cannot find
the solution.
Thank You
Art
It is great, but have 2 questions.
Operating system is Windows XP and 2000, Excel version is
currently 97
Sub workbook_beforeprint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter =
ActiveWorkbook.FullName
ActiveSheet.PageSetup.RightFooter = " Printed on " &
Format(Date, "mm-dd-yyyy") & " " & Format
(Time, "hh:mm AMPM")
End Sub
Question 1: What do I need do to have the date and time
on a separate line from the path and filename? Sometimes
the path and filename have been long and run into the
date & time.
I would like:
Path\filename on one line, and
Date and Time on another line
Question 2: How can I set the font for this VBA footer? I
know this should be easy but I have tried and cannot find
the solution.
Thank You
Art