Vba Clear A Worksheet

[Solved] Vba Clear A Worksheet | Vb - Code Explorer | yomemimo.com
Question : vba clear a worksheet

Answered by : daniel-ferry

'VBA methods to quickly clear a sheet.
'Remove values
'but not formatting:
Sheet1.UsedRange.ClearContents
'Remove formatting
'but not values:
Sheet1.UsedRange.ClearFormats
'Remove everything:
Sheet1.UsedRange.Clear
'Remove everything potentially faster:
Sheet1.UsedRange.Delete
'Remove everything, fastest:
With Application	.Calculation = xlManual .ScreenUpdating = False Sheet1.UsedRange.Delete .ScreenUpdating = True .Calculation = xlAutomatic
End With

Source : | Last Update : Thu, 02 Apr 20

Answers related to vba clear a worksheet

Code Explorer Popular Question For Vb