Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ADK ADK is offline
external usenet poster
 
Posts: 89
Default Email from vba

What if a user does not have Outlook?

If a user has Outlook Express, would it work?

I want to place the auto emailing code in with my error sub so I get an
email when a user getsan error in the office.

Clip from code:

Sub Mail_small_Text_Outlook()
' Is working in Office 2000-2007
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String

Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
--------------------------------------------------------------



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Email from vba

here's a snippet of what i use for my clients with oe:

Sub test()
fpath = ThisWorkbook.Path & "\"
msg = fpath & "Inventory_Low.xls"
Recipient = "
Recipientcc = ""
Recipientbcc = ""

Subj = "Inventory Alert."
HLink = "mailto:" & Recipient & "?" & "cc=" & Recipientcc & "&" &
"bcc=" & Recipientbcc & "&"
HLink = HLink & "subject=" & Subj & "&"
HLink = HLink & "body=" & msg
ActiveWorkbook.FollowHyperlink (HLink)
Application.Wait (Now + TimeValue("0:00:01"))
Application.SendKeys "%s"
End Sub


--


Gary


"ADK" wrote in message
...
What if a user does not have Outlook?

If a user has Outlook Express, would it work?

I want to place the auto emailing code in with my error sub so I get an email
when a user getsan error in the office.

Clip from code:

Sub Mail_small_Text_Outlook()
' Is working in Office 2000-2007
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String

Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
--------------------------------------------------------------





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Email from vba

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

--

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


"ADK" wrote in message ...
What if a user does not have Outlook?

If a user has Outlook Express, would it work?

I want to place the auto emailing code in with my error sub so I get an
email when a user getsan error in the office.

Clip from code:

Sub Mail_small_Text_Outlook()
' Is working in Office 2000-2007
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String

Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
--------------------------------------------------------------



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Email from vba

that's where i got mine. thanks

--


Gary


"Ron de Bruin" wrote in message
...
See
http://www.rondebruin.nl/mail/oebody.htm

--

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


"ADK" wrote in message
...
What if a user does not have Outlook?

If a user has Outlook Express, would it work?

I want to place the auto emailing code in with my error sub so I get an email
when a user getsan error in the office.

Clip from code:

Sub Mail_small_Text_Outlook()
' Is working in Office 2000-2007
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String

Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
--------------------------------------------------------------



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
Using Macro how to create email link for the email addresses in aRange or Selection Satish[_2_] Excel Worksheet Functions 8 December 28th 09 03:30 PM
how do you email a portion of a worksheet (range) as an insert into the body of an email? Bruce[_2_] Excel Programming 3 May 31st 07 10:37 PM
can I copy a column of email addresses, paste into email address? Lizizfree New Users to Excel 4 July 20th 06 10:03 PM
Transfer Email addresses from spreadsheet to email address book Beana Excel Discussion (Misc queries) 2 May 30th 06 06:07 PM
Email editor closes when forwarding Excel-embedded email Bambina Setting up and Configuration of Excel 0 March 16th 06 10:45 PM


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

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"