In the General | Declarations section of you form, add this code:
Dim Merlin As IAgentCtlCharacter 'This _
"creates" Merlin
Const MERLINPATH = "Merlin.acs" '"Merlin.acs" _
is Merlin's character file.
Next, add the following code to the form's Load event:
Agent1.Characters.Load "Merlin", MERLINPATH '"Loads" _
Merlin.
Set Merlin = Agent1.Characters("Merlin") 'Without _
this code, every time you wanted you make Merlin _
do something, you would have to type _
"Agent1.Characters("Merlin")". With this _
code, you just have to type "Merlin".
You have now done everything needed to start programming MS Agent technology.