Results 1 to 7 of 7

VBA for automatic email upon cell change via other formula

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Question VBA for automatic email upon cell change via other formula

    Please see attached example. all details there and noted clearly.

    current code:

    Sub emailinstant()

    Dim OutApp As Object
    Dim OutMail As Object
    On Error Resume Next
    Err.Clear
    Set OutApp = GetObject(Class:="Outlook.Application")
    If Err <> 0 Then Set OutApp = CreateObject("Outlook.Application")
    OutApp.Session.Logon
    Set OutMail = OutApp.CreateItem(0)

    On Error Resume Next
    With OutMail
    .To = ""
    .CC = ""
    .BCC = ""
    .Subject = "TEST"
    .Body = "TEST"
    .Send
    End With

    Set OutMail = Nothing
    Set OutApp = Nothing

    end sub



    thanks
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Automatic email based on excel sheet cell value
    By caf20012 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2014, 05:55 AM
  2. Automatic email notifications based on cell value
    By rmham120 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2013, 10:48 AM
  3. Cell automatic calculation and email function
    By matelot09 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2012, 12:29 AM
  4. Automatic Email from Excel based on Date in Cell
    By cyee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-25-2011, 06:04 AM
  5. Can I change a cell and cause an automatic change in other cells
    By Swissmiss in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1