Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Printing Problem

Thanks in advance

Problem: Following code would print only a header portion.
This is a portion of codes that puts some data into "Statement" worksheet
and print it upon different data.
For each -----
Worksheets("Statement").Range("A1", "AN4").PrintOut From:=1, To:=1
Next

On the other hand, manual File Print menu prints everything in a
worksheet.

I would like to print everthing with a VBA code.

Thanks

Jae


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Printing Problem

I am not sure what you are asking, but the syntax for printing the entire
sheet is:

Sub prt()
ActiveSheet.PrintOut
End Sub

Or if you want to use the sheet name then:

Sub prt2()
Sheets("Statement").PrintOut
End Sub

The code you posted only selects a range in four rows for printing.

"Jay" wrote:

Thanks in advance

Problem: Following code would print only a header portion.
This is a portion of codes that puts some data into "Statement" worksheet
and print it upon different data.
For each -----
Worksheets("Statement").Range("A1", "AN4").PrintOut From:=1, To:=1
Next

On the other hand, manual File Print menu prints everything in a
worksheet.

I would like to print everthing with a VBA code.

Thanks

Jae


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 danc Excel Discussion (Misc queries) 0 March 14th 06 09:55 PM
Printing problem Peter Ward Excel Discussion (Misc queries) 2 July 13th 05 10:32 PM
problem printing to PDF mark kubicki Excel Discussion (Misc queries) 1 January 21st 05 06:19 PM


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