• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Enter code with Arabic numerals instead of Roman numeral

Visor

Member
I dear friends of the forum, I have a reference sheet HRef where income units in Roman numerals,
The order is Subject, code subject (default), Unit (in Roman), code unit (this want to be transformed into Arabic number on the label lbCodUnidAsig) I should submit consecutively in the "O" column (# 15).
How do I get to be transformed from Roman to Arabic numerals?
Thanks for your help
I upload the file to be seen
 

Attachments

  • Cambiar num roman a num arabig solo hasta ultim unid.rar
    24.1 KB · Views: 7
Thank Chirayu, but not functions
Look:
upload_2016-4-12_13-7-59.png
Although I would like a code in macro for the userform as the file I uploaded
 
Now, on the sheet, using formulas passed from Roman to Arabic numerals with this:
Code:
=NUMERO.ARABE(B2)

but in the macro, particularly for the concatenated label to the example file, as you would?
 
example:
This is bad code but is only example:
Code:
Me.LbCodeUnidAsign.Caption = LbCodeAsign.Caption & "-U" & Format(Formula = "=NUMERO.ARABE(CbxUnid.value, "000")")
error!!!!
 
Hi
it works to pass roman

Code:
Sub GetNumeroRomano()
    Dim d As Long
    d = 22
    MsgBox Evaluate("=ROMAN(" & d & ")")
End Sub

but to pass Arabic, does not work

Code:
Sub GetNumeroArabe()
    Dim d As String
    d = "II"
    MsgBox Evaluate("=NUMERO.ARABE(" & d & ")")
End Sub

does not work
MsgBox Evaluate("=ARABIC(" & d & ")")

does not work
MsgBox Evaluate("=ARABE(" & d & ")")

other suggestions?
 
Back
Top