The information in this article applies to:
SYMPTOMSThe following error message may appear when your macro evaluates a statement that uses the euro symbol:
CAUSEThis error message occurs when the following conditions are true:
Example 1: Coercing Data Types Using Ccur Function
Example 2: Coercing Variable Using Currency Data Type
RESOLUTIONTo correct this issue, set the default currency symbol for Microsoft Windows to the euro symbol:
MORE INFORMATIONThe Ccur function in Microsoft Visual Basic for Applications coerces, or forces, an expression into the Currency data type. Additionally, when you dimension a variable to a specific data type, you also coerce an expression to that particular data type. For example, to coerce the expression "$456.78" to the Currency data type you could use either of the following statements:
-or-
However, when you try to coerce an expression that contains the euro currency symbol, a run-time error occurs if the default currency symbol for Microsoft Windows is not set to the euro symbol.
REFERENCESFor more information about how to coerce currency data types, in the Visual Basic Editor, click
Microsoft Visual Basic Help on the Help menu, type
Type Conversion Functions in the Office Assistant or the Answer Wizard, and
then click Search to view the topic. Additional query words: OFF2000 XL2000 Y2K
Keywords : kbdta kb2000 OffVBA KbVBA |
Last Reviewed: September 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |