Access では Eval()が使えるようですが、Excelではどうすれば良いのでしょうか?
Function f()
Msgbox "ok"
end Function
Sub t()
CallUserFunction("f")
end Sub
Application.Evaluateで可能です。
http://www.ne.jp/asahi/hishidama/home/tech/excel/workfunc.html#E...
例えば、
Function test(s As String) As String test = s End Function Sub test2() MsgBox Application.Evaluate("test(""abc"")") End Sub
SALINGERさま!
お世話になっております!
ばっちりでした!
ありがとうございます。