OK, this function should work fine as a worksheet function. It's not the neatest in the world, but seems to work OK for me ...
Function TextToFront(ByVal sFullString As String) As String
Dim lFindLoop
On Error GoTo ExitFunction
lFindLoop = Len(sFullString)
If lFindLoop > 0 Then
While lFindLoop > 0 And Not (IsNumeric(Mid(sFullString, lFindLoop, 1)))
lFindLoop = lFindLoop - 1
Wend
End If
ExitFunction:
If lFindLoop = 0 Then
TextToFront = sFullString
Else
TextToFront = Mid(sFullString, lFindLoop + 1) & Left(sFullString, lFindLoop)
End If
End Function
Bookmarks