#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Printing dates

how can i print consecutive dates on multiple copies of the same worksheet?
"monday may 1st" tuesday may 2nd" and so on
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Printing dates

If you know VBA then you may adapt the solution given at
http://answers.yahoo.com/question/in...3010236AAS7xuE

"bpreilly" wrote:

how can i print consecutive dates on multiple copies of the same worksheet?
"monday may 1st" tuesday may 2nd" and so on

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Printing dates

You could provide a dedicated macro that adjusts the dates and does the
printing.

Option Explicit
Sub testme()
Dim StartDate As Date
Dim HowMany As Long
Dim dCtr As Long

StartDate = DateSerial(2008, 9, 25)
HowMany = 12

With Worksheets("sheet1")
For dCtr = StartDate To (StartDate + HowMany)
With .Range("A1")
.NumberFormat = "dddd mmmm dd, yyyy"
.Value = dCtr
.EntireColumn.AutoFit
End With
.PrintOut preview:=True
Next dCtr
End With

End Sub

If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

bpreilly wrote:

how can i print consecutive dates on multiple copies of the same worksheet?
"monday may 1st" tuesday may 2nd" and so on


--

Dave Peterson
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
printing same page with multiple dates dysart316 Excel Discussion (Misc queries) 2 October 12th 07 05:31 PM
Printing, VB - based on dates Danny Excel Worksheet Functions 4 August 14th 07 08:16 PM
Printing consecutive dates Bradford88 Excel Discussion (Misc queries) 1 January 22nd 07 07:33 PM
Printing dates on 1 spreadsheet Megan Excel Discussion (Misc queries) 0 March 13th 06 05:09 PM
Page #s and bottom corner dates have disappeared in printing. flowerpot Excel Discussion (Misc queries) 1 October 7th 05 08:07 PM


All times are GMT +1. The time now is 09:58 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"