Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Outlook Code (http://www.outlookbanter.com/outlook-vba/51334-outlook-code.html)

Duncan June 27th 07 10:20 AM

Outlook Code
 
Hi

I have copied the code below. However I cannot seem to get it wo work, what
do I need to change where it sys Personal Folders as this is the bit that
seems not to work. I have both my own folder in outlook and a public one.

Set TargetFolderItems = ns.Folders.Item( _
"Personal Folders").Folders.Item("Temp").Items


Michael Bauer [MVP - Outlook] June 28th 07 07:40 AM

Outlook Code
 

Split it to see what in particular raises the error:

Dim F as Outlook.Mapifolder
Dim Items as Outlook.Items

Set F=ns.Folders.Item("Personal Folders")
Set F=F.Folders.Item("Temp")
Set Items=F.Items

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6


Am Wed, 27 Jun 2007 01:20:02 -0700 schrieb Duncan:

Hi

I have copied the code below. However I cannot seem to get it wo work,

what
do I need to change where it sys Personal Folders as this is the bit that
seems not to work. I have both my own folder in outlook and a public one.

Set TargetFolderItems = ns.Folders.Item( _
"Personal Folders").Folders.Item("Temp").Items



All times are GMT +1. The time now is 11:27 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com