Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default get rid of slashes

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default get rid of slashes

Use replace

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

"JOSEPH WEBER" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,104
Default get rid of slashes

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

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

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"JOSEPH WEBER" wrote in message
...
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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Entering dates without having to use slashes? J.G.Martin Excel Discussion (Misc queries) 2 November 1st 06 07:35 PM
Excel Dates w/ No Slashes SDoyle@CAInc Excel Worksheet Functions 3 September 26th 06 09:25 PM
hyphen to forward slashes? bailbust63 Excel Discussion (Misc queries) 3 July 26th 06 12:58 AM
How do I use hyphens instead of slashes when representing dates? W. Boehmke, Jr. Excel Discussion (Misc queries) 6 March 1st 06 11:21 PM
how to put date slashes in to a column of number bluebean Excel Discussion (Misc queries) 3 September 23rd 05 01:50 PM


All times are GMT +1. The time now is 12:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"