hi
one way maybe
Range("A15:iv255").SpecialCells(xlCellTypeConstants) _
.ClearContents
another way surgical delete
RAnge"A15, B16,C17,D18:e20,ect,ect")
you would have to list all of the cells that you want to delete data from
but with your large range this way might take some typing. but it does work.
Regards
FSt1
"Joanne" wrote:
> WinXP Pro MSOffice2003
>
> I recorded this macro to clear the contents of my ws before exiting. It
> is attached to a button on the ws. Problem is, it clears my formulas
> from the worksheet.
> What changes do I need to make to get it to clear values and leave
> formulas intact?
>
> Public Sub Clear()
> ' Clear Worksheet values for next invoice
>
> Rows("15:65").Select
> Range("A65").Activate
> Selection.ClearContents
> End Sub
>
> Thanks for the help - you guys are great
> Joanne
>
|