LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sending automatic e-mail from Xl


Hello all, this is my first post here. Seeing how people are amazingly
good at excel, I definately could use some of your help.:)

Basically here is the situation, I have a list of items (ranges from
cellA1 to A143). I want to create an automatic e-mail when each item
gets to a certain number (for example resistors go down to 200, I need
an e-mail to remind me to purchase more). I managed to write a macro
with VBA that works fine when I refer one specific cell. Here is what I
had written:

Private Sub Worksheet_Calculate()

Flux = Range("S13").Value
If Flux 500 Then

Dim Address As String, Subject As String
Dim Body As String, Hyper As String

Address = "...(I had a valid e-mail in here)"
Subject = "The " & Range("S13") & " desk has a flux above $500mm"

Body = "The " & Range("A13") & " inventoryshows a flux of " &
Format(Range("D13").Value, "$##,###") &

Hyper = "mailto:" & Address & "?subject=" & Subject & "&body=" & Body
ActiveWorkbook.FollowHyperlink (Hyper)


End If
End Sub

So I want to know if somebody could help me set this up to look at the
range of cells and send me an e-mail for each individual item.
Basically what I need excel to do is look at every item in my inventory
and send me an email for each item individually (I want to see one item
per email). If anybody could help me or point me as to what to change I
would greatly appreciate it.

I am an extreme noob when it comes to VBA:( so thanks for any help!:)


--
JBCIB
------------------------------------------------------------------------
JBCIB's Profile: http://www.excelforum.com/member.php...o&userid=33794
View this thread: http://www.excelforum.com/showthread...hreadid=535620

 
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
General mail failure when sending e-mail from Excel Adrienne Excel Discussion (Misc queries) 5 November 4th 05 12:59 PM
Sending E-mail litew_8 Excel Worksheet Functions 1 November 21st 04 06:13 AM
Help sending mail... Dick Kusleika[_3_] Excel Programming 1 August 13th 04 04:13 AM
Automatic CC Entry in Sending Mail Sam Excel Programming 2 October 13th 03 06:25 PM


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