ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Selection.Replace What and double quotes (https://www.excelbanter.com/excel-programming/397384-selection-replace-what-double-quotes.html)

Ed Peters

Selection.Replace What and double quotes
 
Hi all,

I need to replace double quotes " with nothing.

However the code below does not work for double quotes.

Selection.Replace What:=""", Replacement:=""

Any ideas?

Thanks,

Ed


Rick Rothstein \(MVP - VB\)

Selection.Replace What and double quotes
 
Change your What value to this...

What:=""""

There are 4 quote marks after the equal sign.

Rick


"Ed Peters" wrote in message
oups.com...
Hi all,

I need to replace double quotes " with nothing.

However the code below does not work for double quotes.

Selection.Replace What:=""", Replacement:=""

Any ideas?

Thanks,

Ed



Ed Peters

Selection.Replace What and double quotes
 
On 13 Sep, 07:26, "Rick Rothstein \(MVP - VB\)"
wrote:
Change your What value to this...

What:=""""

There are 4 quote marks after the equal sign.

Rick

"Ed Peters" wrote in message

oups.com...



Hi all,


I need to replace double quotes " with nothing.


However the code below does not work for double quotes.


Selection.Replace What:=""", Replacement:=""


Any ideas?


Thanks,


Ed- Hide quoted text -


- Show quoted text -


Thanks but that does not work. I can replace any other character but
not "...
Ed


joel

Selection.Replace What and double quotes
 
When I have problems with double quotes there is always one method that works

What:= chr(34) ' one quote
or
What:= chr(34) & chr(34) 'two quotes
or
What:= chr(34) & chr(34) & chr(34) 'three quotes

"Ed Peters" wrote:

On 13 Sep, 07:26, "Rick Rothstein \(MVP - VB\)"
wrote:
Change your What value to this...

What:=""""

There are 4 quote marks after the equal sign.

Rick

"Ed Peters" wrote in message

oups.com...



Hi all,


I need to replace double quotes " with nothing.


However the code below does not work for double quotes.


Selection.Replace What:=""", Replacement:=""


Any ideas?


Thanks,


Ed- Hide quoted text -


- Show quoted text -


Thanks but that does not work. I can replace any other character but
not "...
Ed



Rick Rothstein \(MVP - VB\)

Selection.Replace What and double quotes
 
I need to replace double quotes " with nothing.

However the code below does not work for double quotes.


Selection.Replace What:=""", Replacement:=""


Any ideas?


Change your What value to this...

What:=""""

There are 4 quote marks after the equal sign.


Thanks but that does not work. I can replace any other character but
not "...


Did your line look like this...

Selection.Replace What:="""", Replacement:=""

....four quotes for the What and two quotes for the Replacement? When I tried
that line, it worked on my system.

Rick


Ed Peters

Selection.Replace What and double quotes
 
On Sep 13, 9:39 am, "Rick Rothstein \(MVP - VB\)"
wrote:
I need to replace double quotes " with nothing.


However the code below does not work for double quotes.


Selection.Replace What:=""", Replacement:=""


Any ideas?


Change your What value to this...


What:=""""


There are 4 quote marks after the equal sign.


Thanks but that does not work. I can replace any other character but
not "...


Did your line look like this...

Selection.Replace What:="""", Replacement:=""

...four quotes for the What and two quotes for the Replacement? When I tried
that line, it worked on my system.

Rick- Hide quoted text -

- Show quoted text -


Thanks sorted it now, I need all the other default options included in
the selection.replace for it to work.

Ta

Ed



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com