I found on the forum a VB script that helps Clear entire excel sheet cells, using some VBA:
Sub clearEntireSheet()
Sheets(“Sheet1”).Cells.Clear
End Sub
However, this script will only clear values in a sheet called “Sheet1”.
Question: how can I make “Sheet1” dynamic, and pass any string variable from my project to this VB script, so that it can clear any sheet name I provide to it?