Patriot2879
Well-known Member
- Joined
- Feb 1, 2018
- Messages
- 1,259
- Office Version
- 2010
- Platform
- Windows
Hi, i have the code below to clear cells but not the formula data but it doesnt seem to be working can you help please. Please see the code below.
The error comes up in yellow for the snippet below
Code:
Private Sub CommandButton1_Click()
Dim rConstants As Range
Set rConstants = Sheets("Work Issue").Range("N2:V50").SpecialCells(xlCellTypeConstants)
rConstants.ClearContents
End Sub
The error comes up in yellow for the snippet below
Code:
Set rConstants = Sheets("Work Issue").Range("N2:V50").SpecialCells(xlCellTypeConstants)