Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Print Additive to file

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
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
my excel is converting all my print jobs to print to file why? Ginger Excel Discussion (Misc queries) 2 April 10th 07 12:28 PM
Lookup which returns multiple values which are additive ExcelMonkey Excel Worksheet Functions 1 January 3rd 07 08:52 PM
How to format the extension less file to print with Dos's Print Command Badshah Excel Discussion (Misc queries) 0 November 28th 06 12:44 PM
print and print preview not active in file drop down Bjorne Excel Discussion (Misc queries) 2 March 21st 06 06:36 AM
How do I print from a file created from sending a print to a file Ted Johnston Excel Discussion (Misc queries) 1 February 23rd 06 03:10 AM


All times are GMT +1. The time now is 11:25 AM.

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"