Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default printing question

I am not sure I grasp the intent of your question, but I will take a stab at
it. The code below will print four pages with one row on each page for rows
5 thru 8.

Sub printRows()
For i = 5 To 8
Rows(i).PrintOut
Next
End Sub


"mwam423" wrote:

I have a print macro question. I have a cell that says for example "Print Row"

Print Row = 1 (call this cell A2)

Rows:
1 (A5)
2 (A6)
3 (A7)
4 (A8)
blank after A8

How do I get the cell where Print Row = 1, to change to 2 then 3 then 4 and
then back to 1 once it hits the blank row?

Hope this makes sense, I'm trying to get my print macro to cycle through to
only populated rows, then stop.

I have my template formula based, so all I want it to do, is to start with
1, print the report tab, then go to 2, print the report tab, go to 3, print
the report tab, go to 4, print the report tab then there are no more records
so it should stop and reset itself to 1 so when you hit the button again, it
would cycle back through.

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 to PDF question Brad Excel Programming 0 August 5th 08 03:08 PM
Printing Question WLMPilot Excel Discussion (Misc queries) 4 August 16th 06 02:08 PM
Printing Question John M Excel Programming 1 September 12th 05 06:42 PM
Printing Question spartanmba Excel Discussion (Misc queries) 1 January 27th 05 09:57 PM
Printing question (VBA) Wilbo Excel Programming 1 October 15th 04 01:32 PM


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