Results 1 to 12 of 12

Thread: Code Change to Save multi-selected emails

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Graham, I have made another modification to the code, so that if I send an email it asks if i want to save the attachment or not in a different folder but i keep getting an error "Function Call on left-hand side of assignment must return variant or object"

    Any ideas how to solve this issue?

          If olItem.Sender Like "Nathan Davies" Then 'INSERT NAME HERE        
            MsgBox("Save Attachments?", vbYesNo, "Save Attachments?") = vbYes
            SaveAttachments olItem, strPath & "\Documents\Documents Sent\"
        Else
            SaveAttachments olItem, strPath & "\Documents\Documents Received\"
        
        'If bExcel = True Then
        'CopyToExcel olItem, strPath
        
           End If
    lbl_Exit:
        Exit Sub
    End Sub
    Last edited by nathandavies; 08-22-2017 at 05:42 AM. Reason: updated code & error code

Tags for this Thread

Posting Permissions

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