Use an Undocumented Immediate Window Function to Evaluate Expressions

Category:
Miscellaneous
Type:
Applications
Difficulty:
Intermediate
Author:
Arkadiy Olovyannikov

Version Compatibility:

More information:
This application demonstrates an undocumented VBA function that allows you to evaluate any expression the same way the immediate window does.

The code will work in VB5, Office/VBA, and VB6, but if you are not using VB6, you have to change the API declaration. The changes are in comments within the .bas module.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download execline.zip