LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Email notification including specific cell data

Hello,
I'm using a spreadsheet to keep track of clients who bring required
tax information to our firm for processing. This is simple log
consisting of the following pertinent columns: client name, client
num, date received in office, accountant responsible for this client,
as well as some notes that I'm not so concerned with. So, I'm
attempting to send an email notification to the "responsible
accountant", upon population of "date received" column, containing the
"client name" in the body of the email.
So far, I've been able to send a general notification to one
distribution address & just let them check the spreadsheet on their
own, but I know there's a way to pull the cell data into the email,
which I haven't been able to figure out. I've used the Sub Mail_CDO
from Ron Debruin's site...here's the code I'm using to do this...

Sub Mail_CDO()
Dim iMsg As Object
Dim iConf As Object
' Dim Flds As Variant
Set iMsg = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
' iConf.Load -1 ' CDO Source Defaults
' Set Flds = iConf.Fields
' With Flds
' .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") =
2
' .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
"my email server"
' .Item("http://schemas.microsoft.com/cdo/configuration/
smtpserverport") = 25
' .Update
' End With
With iMsg
Set .Configuration = iConf
..To = " 'My distribution address
..CC = ""
..BCC = ""
..From = """SCHEDULE LOG NOTIFIER"" "
..Subject = "SCHEDULE LOG HAS BEEN UPDATED"
..TextBody = "TESTING" & vbNewLine & vbNewLine & _
"Client info has been added to the Schedule Log"
..Send
End With
Set iMsg = Nothing
Set iConf = Nothing

So, as you can see I'm no programmer, but think I understand the
basics...just don't know the code I need to reference the spreadsheet
cell data to populate the body & sendEE's email address. I did go
ahead and concatenate the "responsible accountant" name w/our domain
to create a column of email addresses also...just reaching for
anything I guess.
Well, thanks in advance for any & all information you might provide.
Sincerely,
Steve Schofield

 
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
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
notification by email by cell format change notify me Excel Worksheet Functions 1 February 8th 05 07:38 AM
Using VB, specific cell data into email subject andrew Excel Discussion (Misc queries) 1 January 26th 05 05:53 PM


All times are GMT +1. The time now is 03:58 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"