WorksheetFunction.Roman Method
Converts an Arabic numeral to roman, as text.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Roman ( _
Arg1 As Double, _
Arg2 As Object _
) As String
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim Arg2 As Object
Dim returnValue As String
returnValue = instance.Roman(Arg1, Arg2)
string Roman(
double Arg1,
Object Arg2
)
Parameters
Arg1
Type: System.DoubleNumber - the Arabic numeral you want converted.
Arg2
Type: System.ObjectForm - a number specifying the type of roman numeral you want. The roman numeral style ranges from Classic to Simplified, becoming more concise as the value of form increases.
Return Value
Type: System.String
Remarks
Form |
Type |
---|---|
0 or omitted |
Classic. |
1 |
More concise. |
2 |
More concise. |
3 |
More concise. |
4 |
Simplified. |
true |
Classic. |
false |
Simplified. |
If number is negative, the #VALUE! error value is returned.
If number is greater than 3999, the #VALUE! error value is returned.