Global Variables/Session Variables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am developing code which runs on the Application_ItemSend event. I would
like to be able to capture information when the event is triggered and then
later recall the information the next time the event is called. I seem to
recall that in other versions of VBA, there is GLOBAL key word for use with
DIM that will do this, however it does not seem to be a part of Outlook VBA.
Am I missing something? Is there a way to do this?
 
Remember that ThisOutlookSession is a class module.You need to add at least one regular code module to the project and declare your global variables in it, not in ThisOutlookSession, by using the Public keyword instead of plain old Dim.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Works like a charm.

Sue Mosher said:
Remember that ThisOutlookSession is a class module.You need to add at least one regular code module to the project and declare your global variables in it, not in ThisOutlookSession, by using the Public keyword instead of plain old Dim.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top