#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Print next date

Is there any way to have a field in Excel that will print a successive
date for each page? I have to print sign in sheets for each day of
the month with a date on them and I'd rather not type them in 365
times.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Print next date

This will print the activesheet once for each day of the current month, with the date in cell A1

Sub PrintCurrentMonthOut()
Dim myDate As Date
Dim myDate As Date
For myDate = DateSerial(Year(Date), Month(Date), 1) To _
DateSerial(Year(Date), Month(Date) + 1, 0)
Cells(1, 1).Value = myDate
ActiveSheet.PrintOut
Next myDate
End Sub

And this will print out next month:

Sub PrintNextMonthOut()
Dim myDate As Date
Dim myDate As Date
For myDate = DateSerial(Year(Date), Month(Date) +1, 1) To _
DateSerial(Year(Date), Month(Date) + 2, 0)
Cells(1, 1).Value = myDate
ActiveSheet.PrintOut
Next myDate
End Sub

HTH,
Bernie
MS Excel MVP


"RMTechie" wrote in message
...
Is there any way to have a field in Excel that will print a successive
date for each page? I have to print sign in sheets for each day of
the month with a date on them and I'd rather not type them in 365
times.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovering File Info Specifically Save Date or Print Date Gadgetgw Excel Discussion (Misc queries) 4 October 6th 08 08:43 PM
Print 12/1/1 in cell (Excel changes it to date or another # Say Goodnight, Gracie New Users to Excel 2 July 15th 08 07:59 PM
print spreadsheets only if date has been typed onto it. Brian Excel Discussion (Misc queries) 1 February 15th 08 07:47 PM
How do I print the last date a worksheet was updated in a footer? merlingirl Excel Discussion (Misc queries) 0 January 5th 06 04:25 PM
Print Footer with Last Print Date field name Ted Excel Discussion (Misc queries) 1 December 23rd 04 02:46 PM


All times are GMT +1. The time now is 11:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"