Hi,
From what I can tell VBA doesn't have the Eval() or Execute() functions that VBScript has. Does anyone know why? (security concerns?). Is there any way to do runtime evaluation with VBA. I've noticed that the WSH has Eval() and ExecuteStatement() functions. Can we count on the user having the Windows Script Host these days (Is it packaged with Windows XP and turned on by default?).
I find these types of functions extremely useful. Please drop a note if you have found a solution to using runtime execution of statements.
From what I can tell VBA doesn't have the Eval() or Execute() functions that VBScript has. Does anyone know why? (security concerns?). Is there any way to do runtime evaluation with VBA. I've noticed that the WSH has Eval() and ExecuteStatement() functions. Can we count on the user having the Windows Script Host these days (Is it packaged with Windows XP and turned on by default?).
I find these types of functions extremely useful. Please drop a note if you have found a solution to using runtime execution of statements.