Sub fnc()
Dim fncParts() As String
fncstr = Range("A1").Formula
If LCase(Left(fncstr, 8)) = "=vlookup" Then
fncstr = Replace(Replace(LCase(fncstr), "=vlookup(", ""), ")", "")
fncParts = Split(fncstr, ",")
For i = 0 To 3
MsgBox "lookup parameter " & (i + 1) & " = " & fncParts(i)
Next i
Else
MsgBox "not vlookup"
End If
End Sub
Copyright©1996-2021,Tapuz Media Ltd. Forum software by XenForo® © 2010-2020 XenForo Ltd.