Public Sub ClearSpecificCells()
ThisWorkbook.Worksheets("Sheet1".Range("A5:O200".ClearContents
End Sub
Note, you will need to change the worksheet name and range to match the specified range on specified worksheet to delete the contents of the range.
Now, bring up the Form Toolbar
Click on the Command Button toolbar button
Select where on the worksheet you want to create the command button.
Pick the macro from the list.
Click on "OK"
While you at it and the command button still has the focus, you can change the caption of the command button by single click on the command button where you see the text, then change the text.
Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
When the going gets tough, the tough gets going.
But again, this would only be advised to be used in either at the end of the macro to set the active cell for the user or if there is no other way around the situation as I have ran into that situation, but it's extremely rare in the latter case.
Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
When the going gets tough, the tough gets going.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.