ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   From Outlook to Excel Personal Folder (https://www.excelbanter.com/excel-worksheet-functions/266141-outlook-excel-personal-folder.html)

Roy Hobbs

From Outlook to Excel Personal Folder
 
Hi all
I want to import both sent and received emails which I have in a personal folder from outlook to excel
I have used this and the inbox folder works:

Set OLF = GetObject("", _
"Outlook.Application").GetNamespace("MAPI").GetDef aultFolder(olFolderInbox)

but I need the public folder roytest instead of the inbox.

Thanks for any help.


All times are GMT +1. The time now is 04:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com