Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default sending email from excel using macro

I am looking to email an excel sheet using a vb macro. The reciprient's
email address needs to be copied from a cell in the sheet. This sheet
can either be sent as an attachment or sent within the email. Can
anyone help with vb examples.
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default sending email from excel using macro

Hi,

have a look at www.rodebruin.nl

Regards,
Ivan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default sending email from excel using macro

sorry, mistyped:

www.rondebruin.nl

Regards,
Ivan

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default sending email from excel using macro

I have tried a number of his macros however I have been unsuccessful as
the debug appears on the send mail each time. Any ideas?
Thanks

.SendMail ActiveSheet.Range("a1").Value, _
"This is the Subject line"

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default sending email from excel using macro

Hi,

you posted inside part of with .. end with statement.

What's the object?

Regards,
Ivan



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default sending email from excel using macro

See
http://www.rondebruin.nl/mail/problems.htm


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


wrote in message oups.com...
I have tried a number of his macros however I have been unsuccessful as
the debug appears on the send mail each time. Any ideas?
Thanks

.SendMail ActiveSheet.Range("a1").Value, _
"This is the Subject line"



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default sending email from excel using macro

Do you have some problems with Ron's code ? I used it and it works 100%
OK.

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default sending email from excel using macro


This mails a w/s dated and called ANYTHING & w/b name

Regards,
Simon
Sub Mail_SheetsArray()
Dim wb As Workbook
Dim strdate As String
Dim I2 As Integer
strdate = Format(Now, "dd-mm-yy hh-mm-ss")
Application.ScreenUpdating = False
ActiveWindow.SelectedSheets.Copy
Set wb = ActiveWorkbook
For I2 = 1 To 1 '[you can change this end figure for the aount of
times you would like to enter an email address]
t1 = InputBox("Enter E-mail Address", "Who To Send To?", "")
With wb
..SaveAs "SANYTHING " & ThisWorkbook.Name _
& " " & strdate & ".xls"
..SendMail t1 ', "This is the Subject line"
..ChangeFileAccess xlReadOnly
Kill .FullName
..Close False
End With
Next
Application.ScreenUpdating = True

End Sub


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=543686

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default sending email from excel using macro

Thank for the help. I was using outlook express, Once I installed
Outlook everything worked fine.

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 an email with Excel macro Ralph Excel Discussion (Misc queries) 0 December 22nd 06 12:50 AM
Sending Email through a macro rojobrown Excel Worksheet Functions 5 October 12th 06 08:17 PM
sending email winthin a macro via Excell 2000 under win98 Zaidan Excel Programming 4 June 1st 04 04:42 PM
Sending an email from a macro sungen99 Excel Programming 1 May 5th 04 07:18 PM
sending email within a macro Joe S. Excel Programming 6 December 17th 03 05:10 PM


All times are GMT +1. The time now is 07:27 AM.

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"