Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jeff H.
 
Posts: n/a
Default Print a sheet for everday of the year

I need to print a sheet in Excel for every day of the year.
How can I add the date automatically and print the sheet?
Thanks, Jeff
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default Print a sheet for everday of the year

Hi Jeff

Enter the first day of the year in A1 and run this macro to print
Note it not print sunday

Change PrintPreview to PrintOut if it is working

Sub PrintCopies_ActiveSheet()
'this example not print sunday
Dim mr As Integer
mr = Year(Range("a1").Value)
Do While Year(Range("a1").Value) = mr
If Application.WorksheetFunction. _
Weekday(Range("a1").Value) < 1 Then
ActiveSheet.PrintPreview
End If
Range("a1").Value = Range("a1").Value + 1
Loop
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Jeff H." <Jeff wrote in message ...
I need to print a sheet in Excel for every day of the year.
How can I add the date automatically and print the sheet?
Thanks, Jeff



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
print only selected cell contents without loosing spread sheet for Anna Tozier Excel Discussion (Misc queries) 1 September 16th 05 05:22 PM
spread sheet template for monthly business for a year lkeller Excel Discussion (Misc queries) 0 August 30th 05 03:00 AM
print different row titles in one sheet w/ many pages Carman Law Excel Worksheet Functions 2 May 24th 05 12:08 PM
Objects On Sheet Shift after Print Cory Blythe Excel Discussion (Misc queries) 3 March 22nd 05 10:46 PM
I want to print out the sheet tabs (sheet names) Sundus Excel Worksheet Functions 3 February 23rd 05 08:34 PM


All times are GMT +1. The time now is 08:33 AM.

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

About Us

"It's about Microsoft Excel"