Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You couldn't divert the print to an xls file - you could just copy the page
from the Statements sheet to another workbook The code in macro looks like: For i = 1 To 100 Worksheets("Statements").Cells(4, 2).Value = Worksheets ("Details").Cells(i, 1).Value worksheets("Statements").Range("A1:J20").copy Destination:=_ Workbooks("Record.xls").Worksheets(1).cells(1,1) _ .offset(i-1*20,0) Worksheets("Statements").PrintOut Next i -- Regards, Tom Ogilvy "Jean" wrote in message ... Hi all, I have a macro in Excel that print for each member (row) in "Details" sheet the "Statements" sheet. Printing to printer no problem. Since "PrintOut" command runs for each row, how can I divert the output to a specific file (print additive to the bottom of a file) preferably XLS type file. The code in macro looks like: For i = 1 To 100 Worksheets("Statements").Cells(4, 2).Value = Worksheets ("Details").Cells(i, 1).Value Worksheets("Statements").PrintOut Next i |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
my excel is converting all my print jobs to print to file why? | Excel Discussion (Misc queries) | |||
Lookup which returns multiple values which are additive | Excel Worksheet Functions | |||
How to format the extension less file to print with Dos's Print Command | Excel Discussion (Misc queries) | |||
print and print preview not active in file drop down | Excel Discussion (Misc queries) | |||
How do I print from a file created from sending a print to a file | Excel Discussion (Misc queries) |