how clean strange symbols(?þ) from Table or range

Ali M

Active Member
Joined
Oct 10, 2021
Messages
290
Office Version
  1. 2019
  2. 2013
Platform
  1. Windows
Hi experts
I face dilemma when I received file by another person .
it shows after name like this :

item?þ
itemþ?
so how can I delete these from all of my table or in used range to become like this
item
is there any macro to clean the cells in table or in used range?
this symbols cause me big troubles with another macros(can't run)
thanks
 
I don't see how, that line only removes one character
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
If it does then it means that your Hebrew characters are created using the ? character and if that is the case we might be stuffed unless there are only Hebrew characters in row 1.
 
Upvote 0
is this right ?
VBA Code:
Sub Remove8207()
    With ActiveSheet.UsedRange
        .Replace What:="~?", Replacement:="", LookAt:=xlPart
        .Replace What:=Chr(63), Replacement:="", LookAt:=xlPart
    End With
End Sub
if it's so the problem is still clearing

it means that your Hebrew characters are created using the ?
Arabic , not Hebrew !
 
Upvote 0
is this right ?
VBA Code:
Sub Remove8207()
    With ActiveSheet.UsedRange
        .Replace What:="~?", Replacement:="", LookAt:=xlPart
        .Replace What:=Chr(63), Replacement:="", LookAt:=xlPart
    End With
End Sub
I meant changing it in the code in post number 35 not post number 34
 
Upvote 0
the same problem !
Then your characters might be made up using the ?
Can you just try
VBA Code:
ActiveSheet.UsedRange.Replace What:="~" & Chr(63), Replacement:="", LookAt:=xlPart
 
Upvote 0
Last attempt, try the lines below separately
VBA Code:
ActiveSheet.UsedRange.Replace What:="~" & ChrW(8236), Replacement:="", LookAt:=xlPart
VBA Code:
ActiveSheet.UsedRange.Replace What:=ChrW(8236), Replacement:="", LookAt:=xlPart
 
Upvote 0

Forum statistics

Threads
1,216,319
Messages
6,130,023
Members
449,550
Latest member
jackpaz

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