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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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