Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
soundgarden
 
Posts: n/a
Default printing while updating date...


We have an employee sign-in roster which we print out everday.
Everytime I have to go in and update to todays date and print it. I
want to know if I can just set up a macro to print out about 60 sheets
for the next 60 days while updating the date at the same time. Don't
worry about considering weekends/holidays....we are open 7 days.

-Thanks Guys!


--
soundgarden
------------------------------------------------------------------------
soundgarden's Profile: http://www.excelforum.com/member.php...o&userid=28479
View this thread: http://www.excelforum.com/showthread...hreadid=480866

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default printing while updating date...

You could use a macro kind of like:

Option Explicit
Sub testme02()

Dim wks As Worksheet
Dim iCtr As Long
Dim StartDate As Date
Dim LastDate As Date

StartDate = DateSerial(2005, 11, 1)
LastDate = DateSerial(2006, 12, 31)

Set wks = Worksheets("sheet1")

With wks
For iCtr = StartDate To LastDate
.Range("a1").Value = iCtr
.PrintOut preview:=True
Next iCtr
End With

End Sub

Give it the start date and finish date. Change that cell to be the one with the
date and remove the preview:=true (when you're done testing).

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

soundgarden wrote:

We have an employee sign-in roster which we print out everday.
Everytime I have to go in and update to todays date and print it. I
want to know if I can just set up a macro to print out about 60 sheets
for the next 60 days while updating the date at the same time. Don't
worry about considering weekends/holidays....we are open 7 days.

-Thanks Guys!

--
soundgarden
------------------------------------------------------------------------
soundgarden's Profile: http://www.excelforum.com/member.php...o&userid=28479
View this thread: http://www.excelforum.com/showthread...hreadid=480866


--

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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
search for latest date Sue Excel Worksheet Functions 2 August 2nd 05 11:09 PM
How do I turn off the updating of the date on an excel invioce Isoking555 New Users to Excel 1 February 11th 05 05:35 PM
How do I stop today() from updating date on saved spreadsheets? lionmark Excel Discussion (Misc queries) 2 January 4th 05 01:03 AM


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