I need a Javascript (few lines of code) translated to Excel VBA, to be run as UDF, user defined function. The javascript code is: http://jsfiddle.net/49Xks/ The code should be a function like the one below, so that it can be inserted with Alt + F11, Insert --> Module Function stringOfUniques(inputString As String) As String Dim inArray() As String ... End Function Code (markup): I need only a slight modification of the linked script Instead of document.write(fractionToDecimal(223,7) + "<br>\n"); Code (markup): (for example), the code I need should take the nominator, e.g. 223, from cell A1 in Excel, and the denominator, e.g. 7, from cell B1. If you can do that get in touch in Skype: markmu1965