Modify Single Email in Outlook Drafts subfolder

g_speran

New Member
Joined
Nov 7, 2015
Messages
12
Hello All,
I was wondering if I can get some assistance?
Task: Modify an email that is in a subfolder (Financial) under Drafts
There should be one ore more of the EXACT same draft emails in this directory
- If one does not exist, throw a msgbox and exit sub
Need to Change the To line and add an attachment to ONLY ONE of the draft emails
in this directory
Environment: Microsoft® Outlook® for Microsoft 365 MSO (Version 2308 Build 16.0.16731.20542) 64-bit
Outlook Account: [username]@[company].com
Request: go straight to the [username]@[company].com\Drafts\Financials folder and modify ONE of the draft emails

I have been skewering the net for code to modify Only one Draft email in the directory
but coming up empty. Everything seems to loop through the entire drafts directory
and modify/send all draft emails.

I have located the following on this message board, but each has it pros and cons.
I've tried modifications, but being relativity new to VBA, i am striking out

Is it possible to loop through a folder in Outlook using VBA?
Cons: Loops through EVERY folder until it matches the "SingleFolderRequired" variable which i did set
Modifies EVERY file in the Drafts\Financials directory
Pro: Eventually finds the correct directory (Drafts\Financials)

How to send All Draft in outlook by vba
Cons: sends EVERY file in the Drafts
Pro: Starts in the Drafts Folder and does not search/compare every single directory
I think, the following would start in the directory I am looking for
Set myDraftsFolder = myFolders("Mailbox - Your Name").Folders("Drafts").Folders("Financials")

Any assistance on modifications would greatly be appreciated
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,216,499
Messages
6,131,012
Members
449,613
Latest member
MedDash99

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top