Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default 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

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


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default 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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default 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

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
Double Quotes [email protected] New Users to Excel 2 July 20th 08 12:43 PM
Double Quotes PeterM Excel Discussion (Misc queries) 5 June 17th 08 05:12 PM
double quotes when saving in CSV Kozmos241 Excel Programming 2 February 25th 05 08:51 PM
Double Quotes Ed Excel Programming 1 January 13th 04 01:13 AM
Double Quotes Ed Excel Programming 1 January 12th 04 09:18 PM


All times are GMT +1. The time now is 06:26 PM.

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"