Laurence D
New Member
- Joined
- Sep 14, 2016
- Messages
- 31
Hey all,
Can somebody spend a minute or so to fix my code that I cannot get working? I am trying to increase the flexibility of this code rather than just setting the range it will be based on my selection in the active sheet. Do I have to loop this each cell in the selection to get this working?
Cheers,
Laurence
Can somebody spend a minute or so to fix my code that I cannot get working? I am trying to increase the flexibility of this code rather than just setting the range it will be based on my selection in the active sheet. Do I have to loop this each cell in the selection to get this working?
Code:
Sub Remove_slashes()
Dim the_string As String
the_string = ActiveSheet.Selection
the_string = Replace(the_string, "/", "")
ActiveSheet.Selection = the_string
End Sub
Cheers,
Laurence