Hi
I want to clear the text of a named cell, I have found the below works but clears the entire cell
including all formatting. The named cell is called delete. Thanks any help would be appreciated.
Sub
Clear_ActiveSheet_Name_Ranges()
Dim
xName
As
Name
Dim
xInput
As
String
Dim
xRg
As
Range
On
Error
Resume
Next
xInput = Application.InputBox(
"delete"
If
xInput =
"False"
Then
Exit
Sub
Application.ScreenUpdating =
False
Set
xName = ActiveWorkbook.Names(xInput)
If
Not
xName
Is
Nothing
Then
xName.RefersToRange.Clear
End
If
Application.ScreenUpdating =
True
End
Sub