Print variable number of rows of spreadsheet

J

JingleRock

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.
 
G

Gord Dibben

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top