Change Currency to RM

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
928
Office Version
  1. 365
Hi,

I am trying to change the currency in a spreadsheet that I have from symbol $ to RM.

Example: Currently the cell values are $5000.00. I would like to change it to RM5000.00

I tried changing in Format Cells>>Custom>> but it did not work.

Tried changing in Regional and Language settings in Windows but I am not sure how to go about this.


Appreciate help.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I don't think this will work if the data in the cells is literally "$5000.00", if it is just 5000.00 formatted as currency then try custom format of;

"RM"#,##0.00

HTH :)
 
Upvote 0
Create a "Custom Style". Format>Style. Select a name (Say myCurr) and then choose modify. On the Number tab, custom format as suggested by Jazz. Exit via OK. Now you can easily apply this style to any range on demand.

lenze
 
Upvote 0
Why the solution didn't work for me?
I've try to write

Code:
[B]Sub Format_Cell_Currency_ringgit_myr()[/B]

[B]Selection.NumberFormat = "RM"#,##0.00[/B]

[B]End Sub[/B]


but it happen to have Compile error:Syntax Error
Please help to explain to me.
Thank you in advance.
 
Upvote 0
Try

Code:
Sub Format_Cell_Currency_ringgit_myr()

Selection.NumberFormat = """RM""#,##0.00"

End Sub
 
Upvote 0
WOW! it works! thank you very much cml19722000! :biggrin:
but, can you explain to me the coding.
why is it necessary to write like that to get the desired output?
 
Upvote 0

Forum statistics

Threads
1,216,082
Messages
6,128,713
Members
449,464
Latest member
againofsoul

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