Is there vb code to open a folder in Outlook?

S

StargateFan

I know this is a real stretch but I have a folder with flagged msgs.
If I miss the flags for whatever reason (and I always seem to be
missing most of them), these msgs no longer pop up. That's okay,
that's logical and understandable. They're not "repeating flags" or
whatever <g>. I keep forgetting to open that folder, however, and
whenever I remember I go in and see a bunch of messages in red that
I've missed!

A reminder in the calendar would help take care of the problem but
what would be really nice is if I could click on something like a link
or whatever in that reminder that actually would open up that O2K
folder. Is this type of things even possible, pls? If yes, what
would it be called?

Alternatively, a button with a macro to do this would be okay. So
just need to know if this is possible and what it would be called. I
then could google in the archives to see if I can find actual example
code.

Thank you.
 
K

Ken Slovak - [MVP - Outlook]

A reminder is just a Boolean property that is set to True on an item (along
with information about when the reminder is to fire). It's not a separate
item and doesn't live away from the item the flag is set on.

You could trap the Application_Reminder event. That returns an Item object
that has a Parent property which is the MAPIFolder where the item with the
reminder lives. Of course that event will only fire if the item lives in the
default Inbox, Calendar, Tasks or Contacts folders.

See http://www.outlookcode.com/d/code/sendreminder.htm for one example of
handling that event.
 
S

StargateFan

A reminder is just a Boolean property that is set to True on an item (along
with information about when the reminder is to fire). It's not a separate
item and doesn't live away from the item the flag is set on.

You could trap the Application_Reminder event. That returns an Item object
that has a Parent property which is the MAPIFolder where the item with the
reminder lives. Of course that event will only fire if the item lives in the
default Inbox, Calendar, Tasks or Contacts folders.

Oh, dear. I didn't understand these 2 paragraphs. I think I really
have my work cut out for me <g>. All this terminology ...

One question, does all that mean it can't be done? I'm talking about
a regular folder with flagged messages. This folder is not in the
Inbox itself but in a subfolder of the Inbox. Does that mean it
whatever it is will work in this case?
See http://www.outlookcode.com/d/code/sendreminder.htm for one example of
handling that event.

I will. Hopefully it won't be littered with all sorts of terminology
like this or I'm sunk <g>.

Thanks! :blush:D
 
K

Ken Slovak - [MVP - Outlook]

Reminders will only fire and only trigger that event I referred to in Inbox,
Calendar, Contacts and Tasks. No subfolders of those folders and no user
created folders at all. In all other folders items with reminders that are
due will only turn red.
 

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

Top