Outlook Task Variable

Posted on 2011-10-17
Last Modified: 2012-05-12

I have two custom tasks in Outlook.  From one task, I check the value of a field in another task like this:

if oTask.UserProperties("DrawingStage") = "New" then

This works, but I also want to check a global variable from within the code of another task.  Is this possible?  Something like this:

if oTask.AGlobalVariable = 1 then

Question by:Genius123
    LVL 37

    Accepted Solution

    A variable is in code, something that executes.  If its truly global and persistant then it should exist at all times your in outlook. The variable does not belong to the task but to the outlook instance.

    Author Closing Comment

    Thanks, I'll accept this as it cannot be done. Thanks for the explaination too.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Learn more about how the humble email signature can be used as more than just an electronic business card. When used correctly, a signature can easily be tailored for different purposes by different departments within an organization.
    Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now