+ Reply to Thread
Results 1 to 4 of 4

Sending email based on cell content

  1. #1
    Registered User
    Join Date
    06-20-2007
    Posts
    2

    Sending email based on cell content

    Ok, i'm going to try and explain this the best I can. I am very new to Excel programming but i do have a Visual Basic programming background so I should be good to go :-) Anyway, I've got a worksheet that has various order information in it. There are numerous calculations done to determine things. If these criteria are not met, a cell is populated with the word REJECTED in it. Now there are 16 possible fields that can have this REJECTED in them. What i want to do is have those cells monitored and if REJECTED is placed into that cell, to generate an email letting the customer know why the particular order was rejected. I have the email macro figured out already but am having problems with the monitoring of those cells. Any help would be greatly appreciated.

    Thanks!

    Justin

  2. #2
    Forum Contributor colofnature's Avatar
    Join Date
    05-11-2006
    Location
    -
    MS-Off Ver
    -
    Posts
    301
    Try using the worksheet_calculate event and looping through the cells in activesheet.usedrange


    Col
    If you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    This link may also help

    http://www.rondebruin.nl/mail/change.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    06-20-2007
    Posts
    2
    Thanks for the quick replies guys! That helps out a lot. Now, what if instead of clicking on a cell or such, if the criteria was met to make the REJECTED populate the cell, a commandbutton would show up, then you could click that to generate the email...is that something that is possible? Maybe have it hidden and when the cell is populated, it shows up..otherwise, not visble....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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