ForrestGump01
New Member
- Joined
- Mar 15, 2019
- Messages
- 23
- Office Version
- 365
- Platform
- Windows
Hi all,
I'm developing an excel template for my team to use to write up purchase orders and send a receipt to our client, and send our purchase orders to our vendors (distribution). I need help writing a macro that:
1) Saves the file in a specified location
2) Uses that file save location (dynamic) as a reference to find attachments
3) Writes and sends multiple emails to different vendors/our client
4) Copies a row of data and pasts it in another workbook
The process would look something like: I click the macro, it opens a window to select the file save location -> File save location is denoted somewhere in the workbook -> The macro then saves multiple PDFs (purchase orders) in that file save location -> The macro allows the user to select additional files within the file save location to attach to emails (multiple emails with different attachments) -> The macro sends each email to respective recipient (each recipient and respective body text are on their own sheet) -> The macro then copies data from another sheet, opens another workbook saved on our network drive, and pastes that data in that file, saves that file, and closes the original workbook.
Can anyone help me with writing the different pieces of this macro? I think I can figure the functionality of sending the emails on my own, and copy-pasting the data in the final step. It's the user interfaces and attachments that I'm most stuck on...
All help is greatly appreciated!
I'm developing an excel template for my team to use to write up purchase orders and send a receipt to our client, and send our purchase orders to our vendors (distribution). I need help writing a macro that:
1) Saves the file in a specified location
2) Uses that file save location (dynamic) as a reference to find attachments
3) Writes and sends multiple emails to different vendors/our client
4) Copies a row of data and pasts it in another workbook
The process would look something like: I click the macro, it opens a window to select the file save location -> File save location is denoted somewhere in the workbook -> The macro then saves multiple PDFs (purchase orders) in that file save location -> The macro allows the user to select additional files within the file save location to attach to emails (multiple emails with different attachments) -> The macro sends each email to respective recipient (each recipient and respective body text are on their own sheet) -> The macro then copies data from another sheet, opens another workbook saved on our network drive, and pastes that data in that file, saves that file, and closes the original workbook.
Can anyone help me with writing the different pieces of this macro? I think I can figure the functionality of sending the emails on my own, and copy-pasting the data in the final step. It's the user interfaces and attachments that I'm most stuck on...
All help is greatly appreciated!