Shakeable_Drip
Board Regular
- Joined
- May 30, 2023
- Messages
- 52
- Office Version
- 365
- Platform
- Windows
I have a range called "clean" on my worksheet that I'd like to clear with VBA.
"clean" is a named range, A2:E1000&G2:G1000
I thought this was fairly simple, but I think I've misunderstood how something works. Debug doesn't like the Set CLEANS. I thought it was a conflict in name, I changed it to cleans and still no joy. Double checked for typo's
"clean" is a named range, A2:E1000&G2:G1000
I thought this was fairly simple, but I think I've misunderstood how something works. Debug doesn't like the Set CLEANS. I thought it was a conflict in name, I changed it to cleans and still no joy. Double checked for typo's
VBA Code:
Sub CLEAN_UP()
Dim SHT1 As Worksheet
Dim CLEANS As Range
Set SHT2 = Sheets("DATA INPUT")
Set CLEANS = Range("CLEAN")
CLEANS.Clear
End Sub