#1   Report Post  
braindead
 
Posts: n/a
Default Reports from rows

I need to send one row at a time (or multiple selected rows), on command via
a button, to a printed, one record per page, report. I can send the record
to another worksheet or a Word document. What is the best way to accomplish
this? I am limited to working in Excel 97.

Thanks in advance.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you're printing the report, maybe just applying data|filter autofilter and
going through each unique entry would be sufficient (then print).

Or just keep the headers(???), hide everything but the first data line, print,
hide everything but the second, print.
and so forth

then show everything to make it back to normal.

Option Explicit
Sub testme()

Dim LastRow As Long
Dim FirstRow As Long
Dim iRow As Long

With Worksheets("sheet1")
FirstRow = 2 'headers in 1
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row

For iRow = FirstRow To LastRow
.Range(.Rows(FirstRow), .Rows(LastRow)).Hidden = True
.Rows(iRow).Hidden = False
.PrintOut preview:=True
Next iRow

.Rows.Hidden = False

End With

End Sub


I used preview:=true to save some trees.

braindead wrote:

I need to send one row at a time (or multiple selected rows), on command via
a button, to a printed, one record per page, report. I can send the record
to another worksheet or a Word document. What is the best way to accomplish
this? I am limited to working in Excel 97.

Thanks in advance.


--

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
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM
Row selections by row # OR by even/odd rows in another spreadsheet Tom Excel Discussion (Misc queries) 0 February 9th 05 04:03 PM
Adding Rows to Master Sheet Excel Newbie New Users to Excel 1 December 23rd 04 10:56 PM
Copying Rows when hiding other rows Neutron1871 Excel Worksheet Functions 2 November 3rd 04 11:38 PM


All times are GMT +1. The time now is 05:35 PM.

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"