Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Printing date range in excel2000

Hi all I hope you can help
I have a work sheet in cell A-1 I have a date, what I want to do is print
this sheet at the begining of ech month and have it print one sheet for each
day excluding sunday, so I will end up with 24 or so printed pages with
diffrent days on them.
Thank you for your time



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Printing date range in excel2000

Try this macro

Enter the first day of the month in A1 before you run the macro
If it is working correct change PrintPreview to PrintOut

Sub PrintCopies_ActiveSheet()
Dim mr As Integer
mr = Month(Range("a1").Value)
Do While Month(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


wrote in message ...
Hi all I hope you can help
I have a work sheet in cell A-1 I have a date, what I want to do is print
this sheet at the begining of ech month and have it print one sheet for each
day excluding sunday, so I will end up with 24 or so printed pages with
diffrent days on them.
Thank you for your time





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
Excel2000:How to link Print Area with a named range Arvi Laanemets Excel Discussion (Misc queries) 5 April 8th 08 02:35 PM
Excel2000:How to link Print Area with a named range Arvi Laanemets Excel Worksheet Functions 5 April 8th 08 02:35 PM
Printing in Excel2000? PaulM Excel Worksheet Functions 2 November 4th 05 12:38 AM
Excel2000: Reading Named Range value from VBA Arvi Laanemets Excel Programming 2 July 9th 04 09:01 AM
Excel2000: finding last row of used range Arvi Laanemets Excel Programming 2 May 10th 04 08:54 AM


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