VBA: Function for returning specific Outlook folder? -


i want search specific emails in specific folders, these folders have different sub-levels , not same parent folder.

so have function give me outlook folder object given folder name.

does exists?

findfolder(str_foldername string) outlook.folder 

so can write

objfolder = findfolder("myfolder") 

all solutions i´ve found or come weren´t flexible needed.

are looking counterpart of mapifolder.fullfolderpath property (returns \\user@domain.name\rss feeds\stack overflow) return folder given path?

you can write function converts path array/list , recursively processes list starting namespace.folders collection. need take care of special character encoding (e.g. %20 " ").

if using redemption option, exposes rdosession.getfolderfrompath function.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -