Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a spreadsheet with 10,000 rows available for entry. I would like to
create a print macro that would only print down to the last row that actually had data instead of printing 1 billion pages of blank rows. I need to know if this is possible using vba, and if so, what would the code look like...not looking for alternative solutions. Thanks, Jeff |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Sep 10, 7:55*pm, hurlbut777
wrote: I have a spreadsheet with 10,000 rows available for entry. *I would like to create a print macro that would only print down to the last row that actually had data instead of printing 1 billion pages of blank rows. I need to know if this is possible using vba, and if so, what would the code look like...not looking for alternative solutions. Thanks, Jeff Setup PrintArea as described in following post ActiveSheet.PageSetup.PrintArea = "1:100" ActiveSheet.PrintOut |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Option Explicit
Sub PrintYourRange() Dim LastRow As Long Dim YourRange As Range LastRow = ActiveWorkbook.Worksheets(1).Cells(Rows.Count, 1).End(xlUp).Row Set YourRange = Range("A1: I" & LastRow) YourRange.Select Selection.PrintOut End Sub "NOPIK" wrote: On Sep 10, 7:55 pm, hurlbut777 wrote: I have a spreadsheet with 10,000 rows available for entry. I would like to create a print macro that would only print down to the last row that actually had data instead of printing 1 billion pages of blank rows. I need to know if this is possible using vba, and if so, what would the code look like...not looking for alternative solutions. Thanks, Jeff Setup PrintArea as described in following post ActiveSheet.PageSetup.PrintArea = "1:100" ActiveSheet.PrintOut |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 printing problem--printing 1 document on 2 pages | Excel Discussion (Misc queries) | |||
Excel Printing --Borders are not printing on the same page as data | Excel Discussion (Misc queries) | |||
Dyamic Ranges | Excel Programming | |||
Enable Double sided printing contiuously when printing multiple s. | Excel Discussion (Misc queries) | |||
Printing? Worksheets not printing the same on multiple pc's! | Excel Programming |