Convert to Euro - Accounting Format

G

George

Dear friends,

I use the following macro in order to change my data into euro amounts.

Public Const Euro As Double = 0.585274

Sub ConvertEuro()
Dim MyCell As Range
For Each MyCell In Selection
If IsNumeric(MyCell) And MyCell <> "" Then
'And MyCell.HasFormula = False Then
MyCell.Value = Application.Round(MyCell.Value / Euro, 2)
MyCell.NumberFormat = "€0.00"
End If
Next MyCell
End Sub

Is there any possibility to set the NumberFormat to Accounting or Currency?
The ideal should be to be asked and then to select either Accounting or
Currency Format.

Thanking you in advance,

GeorgeC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top