Created
December 19, 2013 11:12
Revisions
-
scorchio created this gist
Dec 19, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ Sub ClearSheet() Dim sheetToClear As Worksheet Set sheetToClear = ActiveSheet ' Replace this with the sheet reference ' Delete something specific... ' sheetToClear.Cells.ClearFormats ' sheetToClear.Cells.ClearContents ' sheetToClear.Cells.ClearHyperlinks ' ...or every kind of data in the cells sheetToClear.Cells.Clear End Sub