Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2003 printing problem--printing 1 document on 2 pages | Excel Discussion (Misc queries) | |||
Printing problem | Excel Discussion (Misc queries) | |||
Printing problem | Excel Discussion (Misc queries) | |||
problem printing to PDF | Excel Discussion (Misc queries) |