czarpogi
New Member
- Joined
- Mar 21, 2017
- Messages
- 7
Hi,
I need some help in making this code short and simple. Is there a way to do that? Thanks in advance.
Here's my code:
I need some help in making this code short and simple. Is there a way to do that? Thanks in advance.
Here's my code:
Code:
Sub ClearData()
With Sheets("NPS")
.Range("A2", .Cells(.Rows.Count, .Columns.Count)).ClearContents
End With
With Sheets("QFY")
.Range("A2", .Cells(.Rows.Count, .Columns.Count)).ClearContents
End With
With Sheets("MFY")
.Range("A2", .Cells(.Rows.Count, .Columns.Count)).ClearContents
End With
With Sheets("W1")
.Range("A2", .Cells(.Rows.Count, .Columns.Count)).ClearContents
End With
With Sheets("W2")
.Range("A2", .Cells(.Rows.Count, .Columns.Count)).ClearContents
End With
With Sheets("W3")
.Range("A2", .Cells(.Rows.Count, .Columns.Count)).ClearContents
End With
With Sheets("W4")
.Range("A2", .Cells(.Rows.Count, .Columns.Count)).ClearContents
End With
With Sheets("W5")
.Range("A2", .Cells(.Rows.Count, .Columns.Count)).ClearContents
End With
End Sub
[code/]