|
-
Aug 17th, 2006, 07:15 PM
#1
Thread Starter
Frenzied Member
Replace
do multiple replaces work like:
Replace(str, ",", "", ".", "")
which should remove all instances of , and . from str
would it work?
-
Aug 17th, 2006, 07:29 PM
#2
Hyperactive Member
Re: Replace
no you have to do each one seperately
from msdn help...
Syntax
Replace(expression, find, replacewith[, start[, count[, compare]]])
-
Aug 17th, 2006, 08:08 PM
#3
Thread Starter
Frenzied Member
Re: Replace
how about:
Replace(Replace(str, ".", ""), ",", "")
-
Aug 17th, 2006, 08:10 PM
#4
Re: Replace
That should work, but it's better practice to use the constant vbNullString instead of the "".
-
Aug 17th, 2006, 08:11 PM
#5
Thread Starter
Frenzied Member
Re: Replace
 Originally Posted by Comintern
That should work, but it's better practice to use the constant vbNullString instead of the "".
Ok. Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|