Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Print variable number of rows of spreadsheet

I have a spreadsheet of 1100 rows and 30 columns. In the last column,
I have a formula in each row that evaluates to an integer value
between 0 and 20.

I want by VBA Code to print all rows, with zero blank rows in between,
that have a value in thiis last column greater than zero.

Help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 621
Default Print variable number of rows of spreadsheet

I would use autofilter on column 30 to hide the rows with zeros.

Print what's left.

Turn on the macro recorder whilst running the operation.


Gord Dibben MS Excel MVP

On Wed, 25 Aug 2010 11:28:19 -0700 (PDT), JingleRock
wrote:

I have a spreadsheet of 1100 rows and 30 columns. In the last column,
I have a formula in each row that evaluates to an integer value
between 0 and 20.

I want by VBA Code to print all rows, with zero blank rows in between,
that have a value in thiis last column greater than zero.

Help.

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
Variable number of copies to print micky55 Excel Programming 0 March 2nd 09 09:11 PM
Copying (variable) rows from another spreadsheet Tommy Excel Programming 1 January 6th 09 02:02 PM
set print area for variable number of columns CAB horse Excel Programming 2 September 11th 07 04:54 PM
How do I set a macro to print variable number of pages in excel? Livio Excel Discussion (Misc queries) 1 July 30th 05 12:15 AM
Use row number in spreadsheet as variable in macro captbluefin Excel Programming 1 October 10th 03 03:49 PM


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