CyrusTheVirus
Well-known Member
- Joined
- Jan 28, 2015
- Messages
- 749
- Office Version
- 365
- Platform
- Windows
Hi everyone,
Looking for a code that will populate e-mail drafts within outlook, but not send them out, based on information within a table. The table name is Email_Table, and the sheet is Sheet1.
Specifically, what I need to populate within the e-mail is:
1) The subject which is in cell B1.
2) The body, which is in cell B2, but I need the body to be two lines below "Hi (insert first name of supervisor (only one time) from column 1 of Email_Table),".
3) Headers from table (copy/pasted), with corresponding data per supervisor (copy/pasted), but ONLY for table columns 3, 4, 5, 8, 9, 10, 11, 12, 13, 14, 15, 17... to clarify I need one e-mail to be drafted for each supervisor listing out all of their items, the below example shows some supervisors with 1 item, 2 items, and 4 items. Below is an example of what Sheet1 looks like, and below that is an example of the 4 e-mails that I would want populated (but not sent, so drafted) within outlook.
Can anyone please help with this?
<tbody>
</tbody>
<tbody>
</tbody>
Looking for a code that will populate e-mail drafts within outlook, but not send them out, based on information within a table. The table name is Email_Table, and the sheet is Sheet1.
Specifically, what I need to populate within the e-mail is:
1) The subject which is in cell B1.
2) The body, which is in cell B2, but I need the body to be two lines below "Hi (insert first name of supervisor (only one time) from column 1 of Email_Table),".
3) Headers from table (copy/pasted), with corresponding data per supervisor (copy/pasted), but ONLY for table columns 3, 4, 5, 8, 9, 10, 11, 12, 13, 14, 15, 17... to clarify I need one e-mail to be drafted for each supervisor listing out all of their items, the below example shows some supervisors with 1 item, 2 items, and 4 items. Below is an example of what Sheet1 looks like, and below that is an example of the 4 e-mails that I would want populated (but not sent, so drafted) within outlook.
Can anyone please help with this?
Subject: | Outstanding Items | |||||||||||||||
Body: | The below item(s) are outstanding. If these are already resolved, then please ignore this e-mail. Also, please let me know if you need assistance with this. | |||||||||||||||
Email_Table | ||||||||||||||||
First Name | Supervisor E-mail Address | Supervisor Name | Employee Name | Hourly/Salary | Employee No. | Employee Info | Pin | Location No. | Location Name | Date In | Time In | Date Out | Time Out | Requested Date | Options | Notes |
Anne | AApple@123.org | Apple, Amanda | Smith, John | Hourly | 1235 | Smith, John | 600 | 009012 | Accounting | 2/6/2019 | 12:04:26 | Call In Missing or Not Approved | ||||
Kelli | KBlacksmith@123.org | Blacksmith, Kelli | Rogers, Andrea | Salary | 5168 | Rogers, Andrea | 100 | 002000 | HR | 2/12/2019 | 07:54:55 | Call Out Missing or Not Approved | ||||
George | GCurry@123.org | Curry, George | Salem, Travis | Hourly | 54545 | Salem, Travis | 301 | 002600 | Warehouse | 2/11/2019 | 13:21:38 | Call Out Missing or Not Approved | ||||
George | GCurry@123.org | Curry, George | Salem, Travis | Hourly | 66464 | Salem, Travis | 102 | 009102 | Warehouse | 2/12/2019 | 13:16:32 | Call Out Missing or Not Approved | ||||
Michelle | MMiller@123.org | Miller, Michelle | Russell, Corey | Hourly | 848 | Russell, Corey | 102 | 009102 | Warehouse | 2/12/2019 | 12:33:04 | Call Out Missing or Not Approved | ||||
Michelle | MMiller@123.org | Miller, Michelle | Russell, Corey | Salary | 848 | Russell, Corey | 311 | 002802 | House | 2/12/2019 | 10:15:01 | Call In Missing or Not Approved | ||||
Michelle | MMiller@123.org | Miller, Michelle | Smith, Sean | Salary | 545 | Smith, Sean | 311 | 002802 | House | 2/12/2019 | 10:15:01 | Call In Missing or Not Approved | ||||
Michelle | MMiller@123.org | Miller, Michelle | Tompkins, Brian | Salary | 949 | Tompkins, Brian | 2/12/2019 | 3 | Calendar Request Pending Approval |
<tbody>
</tbody>
Hi Amanda, | |||||||||||
The below item(s) are outstanding. If these are already resolved, then please ignore this e-mail. Also, please let me know if you need assistance with this. | |||||||||||
Supervisor Name | Employee Name | Hourly/Salary | Pin | Location No. | Location Name | Date In | Time In | Date Out | Time Out | Requested Date | Notes |
Apple, Amanda | Smith, John | Hourly | 600 | 009012 | Accounting | 2/6/2019 | 12:04:26 | Call In Missing or Not Approved | |||
Hi Kelli, | |||||||||||
The below item(s) are outstanding. If these are already resolved, then please ignore this e-mail. Also, please let me know if you need assistance with this. | |||||||||||
Supervisor Name | Employee Name | Hourly/Salary | Pin | Location No. | Location Name | Date In | Time In | Date Out | Time Out | Requested Date | Notes |
Blacksmith, Kelli | Rogers, Andrea | Salary | 100 | 002000 | HR | 2/12/2019 | 07:54:55 | Call Out Missing or Not Approved | |||
Hi George, | |||||||||||
The below item(s) are outstanding. If these are already resolved, then please ignore this e-mail. Also, please let me know if you need assistance with this. | |||||||||||
Supervisor Name | Employee Name | Hourly/Salary | Pin | Location No. | Location Name | Date In | Time In | Date Out | Time Out | Requested Date | Notes |
Curry, George | Salem, Travis | Hourly | 301 | 002600 | Warehouse | 2/11/2019 | 13:21:38 | Call Out Missing or Not Approved | |||
Curry, George | Salem, Travis | Hourly | 102 | 009102 | Warehouse | 2/12/2019 | 13:16:32 | Call Out Missing or Not Approved | |||
Hi Michelle, | |||||||||||
The below item(s) are outstanding withim. If these are already resolved, then please ignore this e-mail. Also, please let me know if you need assistance with this. | |||||||||||
Supervisor Name | Employee Name | Hourly/Salary | Pin | Location No. | Location Name | Date In | Time In | Date Out | Time Out | Requested Date | Notes |
Miller, Michelle | Russell, Corey | Hourly | 102 | 009102 | Warehouse | 2/12/2019 | 12:33:04 | Call Out Missing or Not Approved | |||
Miller, Michelle | Russell, Corey | Salary | 311 | 002802 | House | 2/12/2019 | 10:15:01 | Call In Missing or Not Approved | |||
Miller, Michelle | Smith, Sean | Salary | 311 | 002802 | House | 2/12/2019 | 10:15:01 | Call In Missing or Not Approved | |||
Miller, Michelle | Tompkins, Brian | Salary | 2/12/2019 | Calendar Request Pending Approval |
<tbody>
</tbody>
Last edited: