Tocogroup
asked on
How do I create a new Outlook folder from Excel ?
Hi,
I would like to create a new named Outlook folder from within my Excel 2010 application.
The folder name will be input by the user and appended to the following Outlook folder structure :
Personal Folders/Orders/
I'm not sure where to begin with this.
Thanks
Toco
I would like to create a new named Outlook folder from within my Excel 2010 application.
The folder name will be input by the user and appended to the following Outlook folder structure :
Personal Folders/Orders/
I'm not sure where to begin with this.
Thanks
Toco
ASKER
I'm getting a 'User-defined type' error at run-time. Please see attached screenshot.
ASKER
Let's try uploading the file this time
Create-OL-folder-screenshot.jpg
Create-OL-folder-screenshot.jpg
Look at sample
You will need some libraries in your project (Tools-References in VBA Editor):
AddFolder.xlsm
You will need some libraries in your project (Tools-References in VBA Editor):
AddFolder.xlsm
ASKER
Ok. I got a little further down the line with a different runtime error (see attached screenshot) on the Set APFs line.
Create-OL-folder-screenshot-erro.jpg
Create-OL-folder-screenshot-erro.jpg
Tocogroup: have you tested my sample?
ASKER
Hi als315.
Yes I have tested your sample. Hence the screenshot and post above of the second runtime error.
Just to confirm, I checked the libraries as per your screenshot.
Yes I have tested your sample. Hence the screenshot and post above of the second runtime error.
Just to confirm, I checked the libraries as per your screenshot.
Screenshot above is with code from Michael74.
Do you like to add folder to public folders or to personal folders?
Do you like to add folder to public folders or to personal folders?
ASKER
Personal folders.
I tried replacing 'Public folders' with 'Personal folders' but had the same runtime error.
I tried replacing 'Public folders' with 'Personal folders' but had the same runtime error.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Apologies als315. My error !
I've copied your sample into my application and it works absolutely fine.
Many thanks for your patience
Toco
I've copied your sample into my application and it works absolutely fine.
Many thanks for your patience
Toco
http://social.msdn.microsoft.com/Forums/en-US/768649d6-be9a-4543-ba0a-9c0a31f1aa7b/working-with-outlook-public-folders-from-excel
Open in new window