Export (0) Print
Expand All
Expand Minimize

Application.EuroConvert Method

Office 2007
You can use the EuroConvert function to convert a number to euro or from euro to a participating currency. You can also use it to convert a number from one participating currency to another by using the euro as an intermediary (triangulation). The EuroConvert function uses fixed conversion rates established by the European Union.

Syntax

expression.EuroConvert(Number, SourceCurrency, TargetCurrency, FullPrecision, TriangulationPrecision)

expression   A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
NumberRequiredDoubleThe number you want to convert, or a reference to a field containing the number.
SourceCurrencyRequiredStringA string expression, or reference to a field containing the string, corresponding to the International Standards Organization (ISO) acronym for the currency you want to convert. Can be one of the ISO codes listed in the Remarks section.
TargetCurrencyRequiredStringA string expression, or reference to a field containing the string, corresponding to the ISO code of the currency to which you want to convert the number. For a list of ISO codes, see the Remarks section.
FullPrecisionOptionalVariantA Boolean value where True (1) ignores the currency-specific rounding rules (called display precision in sourcecurrency argument description) and uses the 6-significant-digit conversion factor with no follow-up rounding. False (0) uses the currency-specific rounding rules to display the result. If the parameter is omitted, the default value is False.
TriangulationPrecisionOptionalVariantAn Integer value greater than or equal to 3 that specifies the number of significant digits in the calculation precision used for the intermediate euro value when converting between two national currencies.

Return Value
Double

Remarks

The following table contains the ISO codes that can be used with the SourceCurrency and TargetCurrency arguments.

CurrencyISO CodeCalculation PrecisionDisplay Precision
Belgian francBEF00
Luxembourg francLUF00
Deutsche markDEM22
Spanish pesetaESP00
French francFRF22
Irish puntIEP22
Italian liraITL00
Netherlands guilderNLG22
Austrian schillingATS22
Portuguese escudoPTE00
Finnish MarkkaFIM22
euroEUR22

In the preceding table, the calculation precision determines what currency unit to round the result to based on the conversion currency. For example, when converting to Deutsche marks, the calculation precision is 2, and the result is rounded to the nearest pfennig, 100 pfennigs to a mark. The display precision determines how many decimal places appear in the field containing the result.

Later versions of the EuroConvert function may support additional currencies. For information about new participating currencies and updates to the EuroConvert function, see the Microsoft Office Euro Currency Web site.

CurrencyISO Code
Danish KroneDKK
DrachmaGRD
Swedish KronaSEK
Pound SterlingGBP

Any trailing zeros are truncated and invalid parameters return #Error.

If the source ISO code is the same as the target ISO code, the original value of the number is active.

This function does not apply a format.

The EuroConvert function uses the current rates established by the European Union. If the rates change, Microsoft will update the function. To get full information about the rules and the rates currently in effect, see the European Commission publications about the euro. For information about obtaining these publications, see the Microsoft Office Euro Currency Web site.

Example

The first example converts 1.20 Deutsche marks to a euro dollar value (answer = 0.61). The second example converts 1.47 French francs to Deutsche marks (answer = 0.44 DM). They assume conversion rates of 1 euro = 6.55858 French francs and 1.92974 Deutsche marks.

Visual Basic for Applications
EuroConvert(1.20,"DEM","EUR")
EuroConvert(1.47,"FRF","DEM",TRUE,3)


Community Additions

ADD
Show:
© 2014 Microsoft