Clear a range

O

ordnance1

How would one clear the range B1:G7 on Sheet1 (which is not the active sheet)?
 
L

L. Howard Kittle

I think this will do that.

Sheets("Sheet1").Range("B1:G7").ClearContents

HTH
Regards,
Howard
 
O

OssieMac

Sheets("Sheet1").Range("B1:G7").ClearContents

'Other Clear options
'.ClearFormats 'Clears formats only
'.Clear 'Clears all
 
Top