Impossible replace "" double quotes

Nelson78

Well-known Member
Joined
Sep 11, 2017
Messages
526
Office Version
  1. 2007
Hello everybody.

I'm importing datas from a website.

The datas have "" double quotes, it seems they are normally invisible (I can see them only copying an pasting in a notepad).

How can I remove them?

I've already tried different ways, unsuccessfully (for example):


Code:
Dim c As Range
    
   For Each c In Worksheets("Alpha").Range("E2:E55")
            c = Replace(c, """", "")

Next


Code:
Dim c As Range
    
   For Each c In Worksheets("Alpha").Range("E2:E55")
            c = Replace(c, Chr(34), "")

Next
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Have you confirmed that they are Chr(34), or are you just guessing?
When they appear in a cell, are they the ONLY thing in the cell, or are they combined with other data in the cell?
If the later, do they tend to appear at the beginning or end of the cell?
 
Upvote 0
Ascii code table:

https://ascii.cl/


The value expected is the one I see on the web site (10 characters):
P275255439

When imported in Excel, if I copy and paste it on notepad, this is the result:

https://ibb.co/mWuySc

16 characters instead of 10.

I succeeded remove spaces with:

Code:
For Each c In Worksheets("Alpha").Range("E2:E55")
        c = Replace(c, " ", "")
    Next
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top