Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Mail worksheet in Body AND Attach File

Hi,

I'm successfully using Ron DeBruin's great code found here
(http://www.rondebruin.nl/mail/folder3/mail2.htm) to send emails with an
Excel worksheet in the body of the mail.

What I'd like to do, but have not been successful, is also attaching the
Excel file to the email. I thought this might be straightforward, by taking
code from Ron's other examples, but it hasn't worked.

I've tried adding the line:
Attachments.Add <PATH

I don't get an error, but I also don't get the attachment. Can anyone offer
any suggestions here as to how I might get this to work?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Mail worksheet in Body AND Attach File

Hi Ben

Try this

..Attachments.Add ("C:\test.txt")


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"BenS" wrote in message ...
Hi,

I'm successfully using Ron DeBruin's great code found here
(http://www.rondebruin.nl/mail/folder3/mail2.htm) to send emails with an
Excel worksheet in the body of the mail.

What I'd like to do, but have not been successful, is also attaching the
Excel file to the email. I thought this might be straightforward, by taking
code from Ron's other examples, but it hasn't worked.

I've tried adding the line:
Attachments.Add <PATH

I don't get an error, but I also don't get the attachment. Can anyone offer
any suggestions here as to how I might get this to work?

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Mail worksheet in Body AND Attach File

Hi Ron,

That did it! Thank you so much, not only for the lightning fast reply, but
for all of the information on your web page. I can't tell you how many times
I've been able to solve a problem at work thanks to your site.

Kind regards,
Ben

"Ron de Bruin" wrote:

Hi Ben

Try this

..Attachments.Add ("C:\test.txt")


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"BenS" wrote in message ...
Hi,

I'm successfully using Ron DeBruin's great code found here
(http://www.rondebruin.nl/mail/folder3/mail2.htm) to send emails with an
Excel worksheet in the body of the mail.

What I'd like to do, but have not been successful, is also attaching the
Excel file to the email. I thought this might be straightforward, by taking
code from Ron's other examples, but it hasn't worked.

I've tried adding the line:
Attachments.Add <PATH

I don't get an error, but I also don't get the attachment. Can anyone offer
any suggestions here as to how I might get this to work?

Thanks!


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Mail worksheet in Body AND Attach File

You are welcome

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"BenS" wrote in message ...
Hi Ron,

That did it! Thank you so much, not only for the lightning fast reply, but
for all of the information on your web page. I can't tell you how many times
I've been able to solve a problem at work thanks to your site.

Kind regards,
Ben

"Ron de Bruin" wrote:

Hi Ben

Try this

..Attachments.Add ("C:\test.txt")


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"BenS" wrote in message ...
Hi,

I'm successfully using Ron DeBruin's great code found here
(http://www.rondebruin.nl/mail/folder3/mail2.htm) to send emails with an
Excel worksheet in the body of the mail.

What I'd like to do, but have not been successful, is also attaching the
Excel file to the email. I thought this might be straightforward, by taking
code from Ron's other examples, but it hasn't worked.

I've tried adding the line:
Attachments.Add <PATH

I don't get an error, but I also don't get the attachment. Can anyone offer
any suggestions here as to how I might get this to work?

Thanks!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending a Mail from outlook with body coming from excel file PauloD Excel Discussion (Misc queries) 1 November 11th 10 01:59 PM
How can you attach an e-mail into an excel worksheet? humdul Excel Worksheet Functions 1 January 7th 10 05:23 PM
Convert to HTML and e-mail selection as the body of the e-mail. ryanmhess Excel Programming 5 April 16th 09 01:28 AM
Copy a sheet to the body of an email or attach part of a spreadsheet David Excel Programming 0 February 16th 05 10:24 PM
Mail Worksheet as (html) message body Thomas Bartkus[_3_] Excel Programming 1 January 12th 04 03:12 AM


All times are GMT +1. The time now is 02:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"