Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loop through folders and send email via excel

Status
Not open for further replies.

arvarr

MIS
Nov 24, 2009
260
AU
Hi
Can someone please kindly offer some assistance?

Example:
I have 10 files in a directory.

File A
File B
File C
File D
File E and so on......

Is there a way of selecting say File A, File B and File C from the folder without opening the files and then sending it via excel vba.

I have used the following code but it is only when the active workbook is open.
ActiveWorkbook.SendMail Recipients:="abc@abc.com"

Thanks.
 
You may use CDO:
thread705-1369407

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hi PHV
Thanks for the info. Works like a gem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top