VBA for Command Code with Submit Button to send to email with Attachment

kbendelac

New Member
Joined
Aug 9, 2020
Messages
36
Office Version
  1. 2019
Platform
  1. Windows
I am trying to create a spreadsheet with a template for users to populate their info and when complete to click on a command button to send to my email with the attachment.
Is it possible to send with an attachment?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Yes, and plenty of code examples out there for you to try. Sorry, I don't think I have any sample code.
I know Outlook will send a database as an attachment if the db is open, so I imagine it will also send a copy of a workbook. However, your code would have to make sure the workbook to be sent has been saved. If you're not using Outlook then maybe not.
 
Upvote 0

Forum statistics

Threads
1,215,790
Messages
6,126,921
Members
449,348
Latest member
Rdeane

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