Change French Canadian to US Dollars using VBA

mnh

New Member
Joined
Mar 22, 2024
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hello - we frequently spreadsheets completed in Quebec - so it's written in French Canadia. I'm having issues changing the currency from 55,00 $ and 1 555,00 $ to $55.00 and $1,555.00. I am not having any luck changing this to US dollars.
TARIFSÀLA
JOURNÉE
59,00 $
59,00 $
60,00 $
62,00 $


Here is the code:

Union(searchRange, searchRange3).NumberFormat = "$#,##0.00"

Any help would be greatly appreciated! I'm using Excel 365 - Desktop.
 
If you do a Find/Replace, replacing the " $" (note the space before the "$") with nothing, it should convert all your entries to valid numbers.
Then, since it is a number, you can apply any formatting you want to it, to show the number of decimal places you want.
 
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.
Then, since it is a number, you can apply any formatting you want to it, to show the number of decimal places you want.
The commas might be an issue if the regional thousand separators are periods. Unless I'm missing something.

@mnh What are your regional settings for the decimal separators and the thousands-separators?
 
Upvote 0
When I remove the space and $ sign, it still isn't showing as a number. I checked and my regional settings are for US English - with decimal separator as a period, and thousands separator as a comma.
 
Upvote 0
When I remove the space and $ sign, it still isn't showing as a number. I checked and my regional settings are for US English - with decimal separator as a period, and thousands separator as a comma.
Can you show us what it looks like after that?
 
Upvote 0
Sure - you can see when i do IsNumber - it's still showing false.
1720718910259.png
 
Upvote 0
Yeah, what cubist said.
The issue is that while your regional setting are correct, the data coming over is not in that English format!
But if you do what Cubist said, it should fix it.
 
Upvote 1
Glad we were able to help!

Note that you can automate all these steps in VBA code.
If you turn on the Macro Recorder and record yourself doing these steps manually, you should have most of the VBA code you need.
 
Upvote 1

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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