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
Quote:
Originally Posted by er
hallo,
how can erase the empty cells, outside print area?
|