Is there any way with vba to create a post item in outlook and post it - Microsoft Community


i'm trying write vba code create post item , post specific folder of choosing, not default inbox folder.

***post moved moderator appropriate forum category.***

instead of using application.createitem, save item default folder type, use items.add method of folder:

dim fld outlook.folder
dim itm outlook.postitem
set fld = application.session.folders("myfolder").folders("mysubfolder")
set itm = fls.items.add(olpostitem)
...

if you're automating outlook application, replace application outlook.application variable created.



Office / Outlook / Microsoft Office Programming / Unknown/other



Comments

Popular posts from this blog

Can't Sign-in to OneDrive - Microsoft Community

Shared mailbox permissions - Microsoft Community

Outlook 2016 for Mac - Multiple Issues, Error 17884 - Microsoft Community