I am writing a terminal emulator and would like to add a VB/VBA programming interface, similar to the Visual Basic Editor in Excel, so that I can automate tasks to run through the emulator.
Does anyone have any idea how to achieve this or can anyone point me to a resource on the subject?

Many thanks in advance,

Dave.