Frank Freese
asked on
Set number format to euro using vba
Folks,
I have a VBA need to format a cell as EURO and I can't get there:
ActiveSheet.Range("C4:C8") .Select
Selection.NumberFormat = CHAR(128)
I have a VBA need to format a cell as EURO and I can't get there:
ActiveSheet.Range("C4:C8")
Selection.NumberFormat = CHAR(128)
CHAR(128) is just a character, not a number format. Number formats are in the Format Cells dialog box. Here's the Microsoft page on the subject: http://msdn.microsoft.com/en-us/library/office/aa224873%28v=office.11%29.aspx
ASKER
Thanks, I've been to that site, however, it did not give me a way to show that the value is in Euro's and not dollars. Therefore, what's the number format for a Euro? Could I just copy the Euro symbol and replace $##,### with €##,### ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks to everyone and Merry Christmas
ASKER
Note: I copied a Euro symbol and embedded in my number format seemed to be the easiest thing to do for me.