Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Diary Page Printing

Hi,

I would like to print my own diary, 7 days to a page.

Rather than creating 52 pages, I've created the one.

Can someone advise the code needed that would allow me to ...

1. print the first page, then
2. add 7 days to the date in cell A3, then
3. print this second page, then
4. add 7 days to the date in A3, then
repeat this process so as I get all 52 pages printed.

Any help would be appreciated.

Regards,
Ricky
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default Diary Page Printing

Hi Ricky,

Try this...

'--------------------------------------
Sub test()
Dim X As Date
Application.EnableEvents = False
With Sheet1 'Name of your sheet
X = .Range("A3").Value
For a = 1 To 52
.PrintOut
.Range("A3").Value = .Range("A3").Value + 7
Next
.Range("A3").Value = X
End With
Application.EnableEvents = True
End Sub
'--------------------------------------





"Ricky" a écrit dans le message de groupe de discussion :
...
Hi,

I would like to print my own diary, 7 days to a page.

Rather than creating 52 pages, I've created the one.

Can someone advise the code needed that would allow me to ...

1. print the first page, then
2. add 7 days to the date in cell A3, then
3. print this second page, then
4. add 7 days to the date in A3, then
repeat this process so as I get all 52 pages printed.

Any help would be appreciated.

Regards,
Ricky

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Diary Page Printing

Thanks MitchDenis, great!

MichDenis wrote:
Hi Ricky,

Try this...

'--------------------------------------
Sub test()
Dim X As Date
Application.EnableEvents = False
With Sheet1 'Name of your sheet
X = .Range("A3").Value
For a = 1 To 52
.PrintOut
.Range("A3").Value = .Range("A3").Value + 7
Next
.Range("A3").Value = X
End With
Application.EnableEvents = True
End Sub
'--------------------------------------





"Ricky" a écrit dans le message de groupe de discussion :
...
Hi,

I would like to print my own diary, 7 days to a page.

Rather than creating 52 pages, I've created the one.

Can someone advise the code needed that would allow me to ...

1. print the first page, then
2. add 7 days to the date in cell A3, then
3. print this second page, then
4. add 7 days to the date in A3, then
repeat this process so as I get all 52 pages printed.

Any help would be appreciated.

Regards,
Ricky

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 can I create a page by page yearly diary to record bookings alfiesoane Excel Worksheet Functions 1 September 13th 09 07:14 PM
Excel Printing --Borders are not printing on the same page as data Stup88 Excel Discussion (Misc queries) 1 August 7th 07 09:34 AM
Printing multiple page worksheets on 1 single page Hope Excel Discussion (Misc queries) 1 January 7th 07 03:56 AM
how can i design a 2 page a day diary / appointment book kevin Excel Worksheet Functions 2 July 10th 05 11:01 PM
Printing second page if data overruns, otherwise print first page playdohstu Excel Programming 1 February 12th 04 02:08 PM


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

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"