ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Another Outlook question (https://www.excelbanter.com/excel-programming/306857-another-outlook-question.html)

ForSale[_34_]

Another Outlook question
 
when sending an e-mail from outlook, i know how to attach the curren
workbook, how can i change that to attach a different workbook?
i would think that i would need to change this line:
.Attachments.Add ActiveWorkbook.FullName
thanks

--
Message posted from http://www.ExcelForum.com


ForSale[_35_]

Another Outlook question
 
nevermind, i just look at ron's site. thanks thoug

--
Message posted from http://www.ExcelForum.com


ForSale[_36_]

Another Outlook question
 
Okay, now i have another question.
i used the example at http://www.rondebruin.nl/mail/folder2/mail1.htm
but i can't seem to get it to work. i keep gettin the followin
error:
Run-time error '-10544742 (f9b70002)':
Can't find this file. Make sure the path and file name are correct.

any thoughts

--
Message posted from http://www.ExcelForum.com


Bob Phillips[_6_]

Another Outlook question
 
It would help to see your code. It should look something like

Attachments.Add "C:\myDir\myFile.xls"

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"ForSale " wrote in message
...
Okay, now i have another question.
i used the example at http://www.rondebruin.nl/mail/folder2/mail1.htm
but i can't seem to get it to work. i keep gettin the following
error:
Run-time error '-10544742 (f9b70002)':
Can't find this file. Make sure the path and file name are correct.

any thoughts?


---
Message posted from http://www.ExcelForum.com/




ForSale[_37_]

Another Outlook question
 
the code in question is :
attachments.add "w:\Daily Group Summary Reports\Team 55 I
Lastname.xls"
the file name varies, but the folder and drive are constant.
sometimes it works if i just save the file to the w: and leave off th
folder name, but that is rather inconvenient

--
Message posted from http://www.ExcelForum.com


Bob Phillips[_6_]

Another Outlook question
 
Whilst there is an extra dot in the filename that shouldn't cause a problem.
Does the file actually exist?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"ForSale " wrote in message
...
the code in question is :
attachments.add "w:\Daily Group Summary Reports\Team 55 I.
Lastname.xls"
the file name varies, but the folder and drive are constant.
sometimes it works if i just save the file to the w: and leave off the
folder name, but that is rather inconvenient.


---
Message posted from http://www.ExcelForum.com/




ForSale[_38_]

Another Outlook question
 
Yes, the file exists, in fact, a few chapters earlier in the same modul
is a 'save as' that makes it save it as that same name

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 08:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com