Hi All,
I have following VBA code to remove extra hidden characters from a range. It works fine. But many times I need to change the range for removing extra hidden characters and for this everytime I have to go edit the macro. I want an inputbox to be appeared to select (from user) the range upon which my vba code will be applied. Please help.
Sub CleanAll()
Dim rng As Range
For Each rng In Application.ActiveSheet.Range("A1:D1000").Cells
rng.Value = AlphaNumericOnly(rng.Value)
Next
MsgBox ("Fixed")
End Function
I have following VBA code to remove extra hidden characters from a range. It works fine. But many times I need to change the range for removing extra hidden characters and for this everytime I have to go edit the macro. I want an inputbox to be appeared to select (from user) the range upon which my vba code will be applied. Please help.
Sub CleanAll()
Dim rng As Range
For Each rng In Application.ActiveSheet.Range("A1:D1000").Cells
rng.Value = AlphaNumericOnly(rng.Value)
Next
MsgBox ("Fixed")
End Function