Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ClearContents Method

Deletes all data from the specified range.

expression.ClearContents

expression   An expression that returns a Range object.

Example

This example deletes all data from cells A4:B10 on the active worksheet in Spreadhseet1.

Spreadsheet1.ActiveSheet.Range("A4:B10").ClearContents

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.