Consulting

Results 1 to 4 of 4

Thread: Download attachments from outlook folders.

  1. #1

    Download attachments from outlook folders.

    Hi All,

    I have found a code which helps me to downloads only the files with specific extensions like xls, xlsx, ppt etc from outlook, Earlier it use to download all attachments but still I have following issues which are still outstanding and I need help for fixing this issues.

    1) Download the files from multiple subfolders .i.e. select the folder in tree view and use that selection in main macro to download attachments.
    2) Download only the latest files.

    I have selected the true for checkboxes in the property of treeview1 so that we can select the multiple folders.

    I also got the below code to get the selected folders of outlook as selection for downloading the attachments from them. I need help to incorporate this so that we can fix the issue no.1


    [vba]Private Sub TreeView1_NodeCheck(ByVal Node As MSComctlLib.Node)
    Dim n As Node

    If Node.Parent Is Nothing Then
    Set n = Node.Child
    Do Until n Is Nothing
    n.Checked = Node.Checked
    Set n = n.Next
    Loop
    End If
    End Sub[/vba]


    I am attaching my updated macro file for your reference. please have a look.



    Thanks a lot for your help in advance.

  2. #2
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    abhay, you are not new to forum posting and should be aware of the rules around crossposting, please post ALL links to ALL your crossposts of this question.
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  3. #3

  4. #4
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

Posting Permissions

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