My colleague says...<br>
<br>
By using the vbscript control, you can expose objects in your application to the global namespace.<br>
<br>
So you would expose your form as say theForm and in the textbox type <br>
<br>
sub() <br>
theForm.Show <br>
end sub <br>
<br>
On your lostfocus event on the textbox or a button click , you should take the text and get the script control to execute it, and hey presto, Bob's your aunt's live in lover, <br>
it should all work. It also allows you to save the vbscript to file, to be loaded back in at run time and executed if you wish, thus giving you a fully customisable environment<br>
<br>
Hope this helps<br>
<br>
<br>
Mark Ruse