3/29/2024 0 Comments Most recent outlook version![]() ![]() Sub SaveEmailAttachmentsToFolder(OutlookFolderInInbox As String, _ĮxtString As String, DestFolder As String) SaveEmailAttachmentsToFolder "Dependencia Financiera", "xls", "W:\dependencia financiera\test dependencia\" ' Note: If you use this "C:\Users\Ron\test" the folder must exist. ' If you use "" it will create a date/time stamped folder for you in your "Documents" folder 'Arg 3 = Save folder, "C:\Users\Ron\test" or "" 'Arg 2 = File extension, "" is every file ![]() 'Arg 1 = Folder name of folder inside your Inbox This is the code: how could i modify it so that it does what i need? Sub Test() I have found a code that does what I needed except that it saves every single attachment in the email folder rather than saving only the most recent one. I need to save the attachment of last email that has a specific subject (the most recent one) to a local folder, to do this I have created a folder in my Outlook and a rule to send every email with that specific subject to this folder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |