LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default Button to set different currencies

Yes I got the ? sign
Maybe it depends on the font being used
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Stefi" wrote in message
...
Hi Bernard,

I also tried to solve this problem, and for euro my Excel recorded
numberformat "[$?-2]# ##0,00"

Note the ? sign!

In VBA
ActiveCell.NumberFormat = "["[$?-2]# ##0.00"
worked perfectly.

In your example ? sign is replaced by ? (question mark). Did it produce ?
sign on the worksheet?

I also recorded cell formatting to 」, and it resulted in a nice 」 9999.99
format in the cell but it was recorded in the macro as "[$L-809]#,##0.00"
format code.
In VBA
ActiveCell.NumberFormat = "[$L-809]#,##0.00"

gave an ugly L 9999.99 format.

In no way I could produce 」 9999.99 format in the cell through VBA.

Do you know why? And how to overcome it?

Regards,
Stefi


"Bernard Liengme" ezt rta:

Begin by recording three macros: one for each currency. Here is mine for
the
Euro

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 03/03/2009 by Bernard V Liengme
'
'
Range("A2").Select
Selection.NumberFormat = "[$?-2] #,##0.00"
End Sub

I edited this to become
Sub Euro()
ActiveCell.NumberFormat = "[$?-2] #,##0.00"
End Sub


Next use View | Toolbars | Forma to add three buttons to your worksheet
Assign one of your macros to each button as you make them
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"kafukalatrava" wrote in
message
...
Hi all,

I'm working in a spreadsheet with different currencies.

Is there a way to create buttons to change the format of a cell to a
different currency? I'd need 3 of them (for ?, $ and 」 )

thx






 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Currencies Rockbear Excel Worksheet Functions 1 November 10th 08 01:23 PM
SUM DIFFERENT CURRENCIES Irfan Excel Worksheet Functions 2 April 10th 08 02:11 PM
SUM UP DIFFERENT CURRENCIES Irfan Excel Worksheet Functions 4 April 9th 08 01:42 PM
Different currencies jodleren Excel Discussion (Misc queries) 1 March 19th 07 05:47 AM
different currencies BAZZA Excel Worksheet Functions 2 May 20th 05 01:15 PM


All times are GMT +1. The time now is 09:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ゥ2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"