module sub called from within form 
Author Message
 module sub called from within form

Hi,
I created a new module with a public sub TestIt() in OTL 2000. I also
created a user-designed contact-from. Now I want to have outlook calling my
sub TestIt by opening the form. How can I do it?
Thank you, Utz

--
---
www.edv-loesungen.com


---



Tue, 02 Jul 2002 03:00:00 GMT  
 module sub called from within form
Although you can call VBA procedures from VBScript code in a form, it
is not recommended and may not work in the future. The procedure must
be in the ThisOutlookSession class module though.

Take a look at this MS KB article, it discusses this and shows how to
do it:
http://support.microsoft.com/support/kb/articles/q221/8/27.asp

You can also get this article by sending an E-mail with a subject of

--
Ken Slovak
[MVP - Outlook]
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Co-author of "Programming Microsoft Outlook 2000", Chapters 8-13,
Appendices, Sams



Quote:
> Hi,
> I created a new module with a public sub TestIt() in OTL 2000. I
also
> created a user-designed contact-from. Now I want to have outlook
calling my
> sub TestIt by opening the form. How can I do it?
> Thank you, Utz

> --
> ---
> www.edv-loesungen.com


> ---



Tue, 02 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Call Subs within forms?

2. Calling a Sub in Another Form vs a Module

3. Bad Calling Convention error 49 - due to calling a Sub in a .bas module

4. calling a sub on the mainform from within a event in the subform

5. ??Calling Sub-Menu_Click from Module Level Procedures???

6. calling a sub inside a usercontrol from a module

7. calling a sub inside a usercontrol from a module

8. calling a sub inside a usercontrol from a module

9. How to call a sub defined in DLL module not belong to any class

10. How to call a form routine from a module by the form handle

11. Showing a form from within Sub Main.

12. Passing Value from Module Function to Form sub problem

 

 
Powered by phpBB® Forum Software