Problems with languages in VBA

Ulisses_Carso

New Member
Joined
Sep 4, 2020
Messages
39
Office Version
  1. 365
Platform
  1. Windows
Good afternoon everyone, I have a serious problem, I'm doing data processing and I came across a character in Hebrew, the problem is that VBA doesn't recognize the character because it doesn't support the language, and I need to delete it and I have no idea how

the field in question is: נהג 36448734

I only need to eliminate this symbol, I've tried several ways with Replace but without success, can you help me?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try the code below on a copy of your worksheet

VBA Code:
Sub Removesymbol()
ActiveSheet.UsedRange.Replace What:=ChrW(1504), Replacement:="", LookAt:=xlPart
ActiveSheet.UsedRange.Replace What:=ChrW(1492), Replacement:="", LookAt:=xlPart
ActiveSheet.UsedRange.Replace What:=ChrW(1490), Replacement:="", LookAt:=xlPart
End Sub
 
Upvote 0
Solution
Try the code below on a copy of your worksheet

VBA Code:
Sub Removesymbol()
ActiveSheet.UsedRange.Replace What:=ChrW(1504), Replacement:="", LookAt:=xlPart
ActiveSheet.UsedRange.Replace What:=ChrW(1492), Replacement:="", LookAt:=xlPart
ActiveSheet.UsedRange.Replace What:=ChrW(1490), Replacement:="", LookAt:=xlPart
End Sub
Thank you mate, you solved my problem masterfully!!!
 
Upvote 0

Forum statistics

Threads
1,224,847
Messages
6,181,334
Members
453,032
Latest member
Pauh

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