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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attached workbooks

Status
Not open for further replies.

amal1973

Technical User
Jul 31, 2001
131
US
I have 66 Excel workbooks. Every workbook is saved as a department number (ie: 0021985.xls). I would like to send every workbook to its specified department (Department Manager). I have a list in an access database that has the department number and the manager name and email …….

How can I attach every workbook with the right email …

Please advice

Ps.. i have the workbooks created and in a folder .
 
Depends which email system your company uses
There's a whole bunch of code in the archives here to automate emails

Rgds
~Geoff~
 
I am using MicrosoftOutlook .....
but how can i say that if the workbook name is "12321.xls" send it to the this email ?
 
You can obtain the email address by:

emailadd = left(activeworkbook.name, len(activeworkbook.name)-4) + "@mydomain.com"

Then run the mailing code with that emailadd where the email address goes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top