get rid of slashes

J

JOSEPH WEBER

AARON ED-25Z NEW NATL 1/18/08

How can i get rid of the slashes in this? Is there a formula i can use? I
have a macro that automatically names files and the slashes can't be in the
name.
 
J

Joel

Use replace

MyString = "AARON ED-25Z NEW NATL 1/18/08"
MyString = Replace(MyString,"/","_")
 
B

Bernard Liengme

1) =SUBSTITUTE(A1,"/","")

2) Edit | Find & Replace : Find ?; Replace by <nothing>

best wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top