I tried vba reference guides to convert this apps script function into a vba function. But, failed to do so. I declared variables by doing Dim strName As String. Moreover, I rem