ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Printing Range (https://www.excelbanter.com/excel-programming/293953-printing-range.html)

Edgar[_3_]

Printing Range
 
Hi

I use the following code to print out a worksheet.

The problem is that the page has many formulas on it, I
only want to print the cells with values in them and not
the empty formula cells.

How can I do this in code?

TIA

Ron de Bruin

Printing Range
 
Hi Edgar

I don't see your code?

You can print a range like this

Selection.PrintOut
'print only the selection

Range("c1:d5").PrintOut
'print range




--
Regards Ron de Bruin
http://www.rondebruin.nl


"Edgar" wrote in message ...
Hi

I use the following code to print out a worksheet.

The problem is that the page has many formulas on it, I
only want to print the cells with values in them and not
the empty formula cells.

How can I do this in code?

TIA





All times are GMT +1. The time now is 03:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com