Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  • Thread Tools
  1. 4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Email folders & subfolders? (2002)

    Hi, Hans - I need this code again, but the link does not work - any thoughts?
    Thanks,

    pmatz

  2. Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 10 Times in 10 Posts

    Re: Email folders & subfolders? (2002)

    Like many others, this attachment was lost in the server crash of August 2007. I don't have the code any more either, but I'll see if the old brain cells can reconstruct it later today, I don't have enough time now.

  3. 4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Email folders & subfolders? (2002)

    Ahh.

    No probs, I am too trying to reconstruct the code. Thanks Hans.
    Thanks,

    pmatz

  4. 4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Email folders & subfolders? (2002)

    Ok, here is the code I have currently.

    It is to duplicate the folder structure of a .pst file. it copies the structure of a pst called 'Current', to a empty .pst called 'temp'

    this is helpful as many managers want to copy their pst structure, and i can run this code to provide them with an empty structure.

    Sub r1()
    s1 Session.Folders("Current"), Session.Folders("temp")
    End Sub


    Sub s1(fRoot As MAPIFolder, fCopy As MAPIFolder)
    On Error GoTo 1
    Dim f As MAPIFolder, i As Integer, fC As MAPIFolder
    For Each f In fRoot.Folders
    Set fC = fCopy.Folders.Add(f.Name)
    If f.Folders.Count > 0 Then
    s1 f, fC
    End If
    Next
    Set f = Nothing
    Exit Sub
    1:
    Debug.Print f.Name, f.FolderPath
    Resume Next
    End Sub
    Thanks,

    pmatz

  5. Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    18,575
    Thanks
    0
    Thanked 376 Times in 347 Posts

    Re: Email folders & subfolders? (2002)

    Check out Download details: Outlook 2007/2003/2002 Add-in: Personal Folders Backup. It just makes a copy of the specified PST file. You can then copy it, move it, rename it.

    Joe

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •