I've been working on something lately and I needed to use SendKeys from a button in a Notes document. I kept getting the error "Illegal function call". I finally found someone with the same problem on Notes.net, and when I used WScript.Shell it worked perfectly.
The help for SendKeys says "The SendKeys statement is not legal at the module level." Could someone translate that into English for me? How is code in a button click event "at the module level"? If that's at the module level, what isn't?