Eloise T
Active Member
I need a macro that clears the alphanumerical entries of a worksheet so the user doesn't have to do it manually.
Please see the yellow highlighted cells (A-4..A28, A30..A36, A38..A47, A50..E76, F51..F76, and H75) on the attached worksheet.
Is there a better way than listing each cell...see below?
>>> use code - tags <<<
Thank you in advance!
Please see the yellow highlighted cells (A-4..A28, A30..A36, A38..A47, A50..E76, F51..F76, and H75) on the attached worksheet.
Is there a better way than listing each cell...see below?
>>> use code - tags <<<
Code:
Sub clear_cells()
Range("'calculator'!a4").ClearContents
Range("'calculator'!a5").ClearContents
Range("'calculator'!a6").ClearContents
Range("'calculator'!a7").ClearContents
Range("'calculator'!a8").ClearContents
Range("'calculator'!a9").ClearContents
Range("'calculator'!a10").ClearContents
. . . . .
End sub
Attachments
Last edited by a moderator: