Send mail from Excel

sithica

New Member
Joined
Feb 17, 2021
Messages
1
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hi,
Able to send mail using VBA code from Excel sheet using outlool. But I want to send mail without opening the excel sheet, using scheduler.( Excel sheet contain code with validation)
How can I make it? kindly help
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Dan_W

Active Member
Joined
Jul 11, 2018
Messages
409
Office Version
  1. 365
Platform
  1. Windows
When you say you want to send the email without opening the spreadsheet, what about opening the Excel application (and not the workbook)? In any event, if you're going to be sending the emails by using Outlook, why not just use Outlook VBA? It would be nearly identical code (depending on your position about opening the Excel application).

Failing all of that, yes it is doable - you could always use VBScript, access the data in the spreadsheet with ADO (assuming it has to be saved in XLSX format and that you couldn't save it in CSV), and then send the emails through CDO. It all just depends on how involved the code will become. Let me know re: my questions above, and subject to any suggestions anyone else might have, I can give you a steer.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,569
Messages
5,637,099
Members
416,957
Latest member
Brovashift

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
Top