Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Sending a spreadsheet as an attachment

Hi Tracy

Try the examples on my site
http://www.rondebruin.nl/sendmail.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"TracyNHoward" wrote in message ...
I want to place a button on a spreadsheet that will automatically send the
attachment to a specific set of email addresses and a specific subject line.
Any help would be appreciated.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sending a spreadsheet as an attachment


This macro saves the file, then opens Outlook to mail. It puts the
names in the TO: field (arg1) and the file/location name in the
Subject (arg2). However it still attaches the file. I don't want the
file attached. I'll change the Subject (arg2) to be a text message
but I want the text are to say, "Please click on this link (insert
file location here)" to view my request that needs your approval.

How do I keep the file from being attached?



Sub Approved()
' This macro will send the file to the Facilities and Accounting

On Error Resume Next

ActiveWorkbook.SaveAs Filename:="d:\downloads\" & Range("M14").Value &
".xls"
Application.Dialogs(xlDialogSendMail).Show _
; " & ", _
arg2:="d:\downloads\" & Range("M14").Value & ".xls"

On Error GoTo 0
End Sub





On Thu, 9 Sep 2004 17:08:48 +0200, "Ron de Bruin"
wrote:




Hi Tracy

Try the examples on my site
http://www.rondebruin.nl/sendmail.htm


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Sending a spreadsheet as an attachment

See your other thread

--
Regards Ron de Bruin
http://www.rondebruin.nl


"NO One" wrote in message ...

This macro saves the file, then opens Outlook to mail. It puts the
names in the TO: field (arg1) and the file/location name in the
Subject (arg2). However it still attaches the file. I don't want the
file attached. I'll change the Subject (arg2) to be a text message
but I want the text are to say, "Please click on this link (insert
file location here)" to view my request that needs your approval.

How do I keep the file from being attached?



Sub Approved()
' This macro will send the file to the Facilities and Accounting

On Error Resume Next

ActiveWorkbook.SaveAs Filename:="d:\downloads\" & Range("M14").Value &
".xls"
Application.Dialogs(xlDialogSendMail).Show _
; " & ", _
arg2:="d:\downloads\" & Range("M14").Value & ".xls"

On Error GoTo 0
End Sub





On Thu, 9 Sep 2004 17:08:48 +0200, "Ron de Bruin"
wrote:




Hi Tracy

Try the examples on my site
http://www.rondebruin.nl/sendmail.htm




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 Spreadsheet as an Email Attachment vs. Imbedded in Email billbrandi Excel Discussion (Misc queries) 1 April 3rd 08 03:44 AM
Sending Word Attachment Using a Macro Andy@HycoMan Excel Discussion (Misc queries) 1 October 31st 05 03:58 PM
Sending attachment from excel Arno Setting up and Configuration of Excel 0 May 5th 05 08:18 AM
Sending exel attachment Jay Excel Discussion (Misc queries) 3 January 19th 05 06:57 PM
Sending spreadsheet as attachment Todd Huttenstine Excel Programming 0 September 14th 03 01:36 AM


All times are GMT +1. The time now is 05:11 PM.

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

About Us

"It's about Microsoft Excel"