Sending an excel form by email using VBA

Papa C

New Member
Joined
Apr 8, 2025
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I am a novice with VBA. I need help getting an excel form to be sent by email once it is completed and saved. The form has multiple drop downs and I would like to use the reference cells in sending the email. I currently have 3 working macro's that name and save the file. A macro that clears the contents in the form after it is saved so it can be used again. And another macro that deletes any text boxes that were added to a site map. I would like to send an email to the email address in "F4" once everything is completed. The Drive in red is where the form is stored (it is stored in a file based on the property in "C4"). I have tried multiple macros but none seem to work. I never get an email nor does it indicate any errors.
Let me know if this is enough information.
 

Attachments

  • Untitled.png
    Untitled.png
    120.5 KB · Views: 15
It can be done either way.

This line of code .... .Display will display the email first to allow for edits, then the email must be sent manually.

If you discard .Display and replace it with .Send ... the email will be sent automatically.

In either case you'll need the old version of OUTLOOK installed on your machine. The new version of OUTLOOK does not allow for
send emails via VBA code. Depending on the machine ( don't understand the following), sometimes OUTLOOK must be running before
running the email macro.
 
Upvote 0

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