Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Problem while printing a sheet

Hi,

I have Statement workbook with Statement sheet, for bank statements.
For every customer read from the Master sheet in the Main Workbook, I
am opening the statement sheet and adding all the relevant lines
(rows). As per the data I have, the maximum no. of pages a customer's
statement can have is 3. So I have set the print area to 3 pages.

I have coded the following:
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
ActiveWorkbook.SaveAs Filename:="Statement For " & Master.UniqueID & "
" & Date
ActiveWindow.Close

Everytime 3 pages are printed even if details are of 1 page. Also the
second line of code (To Save) is not working. I want to save the
statement, for this customer, for future reference but with a
different name as I have to open the Statement sheet again for the
next customer. The statement sheet has company logo and some other
stuff in it.

I hope I have explained the problem properly. Can someone help me.

Thanks in advance
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
Excel 2003 printing problem--printing 1 document on 2 pages Bons Excel Discussion (Misc queries) 0 December 24th 09 04:15 PM
Printing problem vrftb New Users to Excel 0 October 19th 08 01:22 AM
printing problem - kim Excel Discussion (Misc queries) 1 March 13th 08 05:30 PM
Multiple Sheet printing problem fiona nelson Excel Discussion (Misc queries) 0 October 26th 06 12:57 AM


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