G
Guest
hallo,
how can erase the empty cells, outside print area?
how can erase the empty cells, outside print area?
This works for me.
Code:
--------------------
Dim pValues As Variant
With ActiveSheet
pValues = .Range(.PageSetup.PrintArea).Value
.Cells.ClearContents
.Range(.PageSetup.PrintArea).Value = pValues
End With
Watch out for formulas!
mikerickson wrote:-
True. It sould be .Formula not .Value