There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
audio avg avg 8 blue screen brand new codec computer control panel conversion crash desktop display dos driver duplicate dvd error error message excel explorer file firefox game graphics hardware hijackthis log install installation internet itunes javascript lan laptop macro malware msn music network outlook outlook 2003 outlook express php problem random rundll32 runescape security seo sound sp3 spyware switch tag cloud tech trojan usb video virtumonde virus vista visual basic vundo wallpaper windows windows vista windows xp wireless word xp sp3 youtube
Business Applications
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Business Applications >
Solved: Automatic Email Alerts using Excel


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
botello2008's Avatar
Junior Member with 10 posts.
 
Join Date: May 2008
Experience: Beginner
08-May-2008, 12:50 AM #1
Solved: Automatic Email Alerts using Excel
Hello guys, I need some help. I have an Excel spreadsheet that I use to watch financial information about companies that I buy stocks from when certain conditions are met. I use a program called XLQ which works along with Excel to extract the financial information from the internet and displays it on the spreadsheet. The numbers constantly change based on the stock market movement. I have two conditions that need to be met in order for me to buy a stock, when such conditions are met the cells change color, I have set it up that way to let me know when it is time to buy a stock.

So my question is... Is it possible to have Microsoft Excel automatically send me an email to my email inbox or cell phone when those two conditions are met and the cells change color. I would really appreciate any help with this. Let me know if you need more details about this problem I am having.

Thanks,

Eleazar Botello
slurpee55's Avatar
Computer Specs
Distinguished Member with 3,159 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
08-May-2008, 09:44 AM #2
Assuming you are using Outlook (or possibly Outlook Express - but Outlook has more abilities for this).
The most information in one page is here:
http://msdn.microsoft.com/en-us/libr...ffice.11).aspx
Other pages to look at are:
http://www.ozgrid.com/forum/showthread.php?t=20166
http://www.rondebruin.nl/sendmail.htm
http://www.rondebruin.nl/mail/add-in.htm (some nifty add-ins to automate the whole thing)
http://www.dicks-clicks.com/excel/olSending.htm

I'm not much of a coder - if you want something more specific, just wait. Zack or Bomb or Villan or OBP or jimr or....will come along
__________________
Iowa? I could have sworn this was heaven.
Well, I think I can answer this question most successfully in mime.

My theme song...
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 3,211 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
08-May-2008, 12:06 PM #3
You need an event we could use to trigger this type of code. Unfortunately, changing the cells color does not fire any events we have access to. Here are some thing we can use to do this for you...

Cell selection changes (i.e. clicking another cell)
Cell changes (most commonly used, when value changes)
Sheet activate/deactivate
Cell double click
Cell right click
Follow hyperlink (not the formula) from a cell
Calculate a worksheet (also commonly used)

Basically, we can hook these events to test for you condition(s) and dispatch an email. Yes, this can be done, providing you use one of the above. Will this be the case?
__________________
___________
Regards, Zack - MVP - MS Excel 2005-2008 (If you would like comments in any code, please say so.)

OfficeArticles.com :|: Extreme Excel Tutorial :|: Excel Articles by Ken Puls :|: Excel User Group, by Nick Hodge

What is a Microsoft MVP? :|: Live Tech Support? Click here
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 5,244 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
08-May-2008, 01:37 PM #4
My question is what do you currently used to change the Colours of the Cells?
Is it VBA or Conditional Formatting?
slurpee55's Avatar
Computer Specs
Distinguished Member with 3,159 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
08-May-2008, 02:03 PM #5
Rather than changing the color of the cells (or in addition to it) could you have a formula in another cell that would change when the two criteria are met, such as =IF(a1="x" AND b1="y","Send mail","") ?
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 3,211 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
08-May-2008, 02:06 PM #6
Slurpee, while that is a good idea, just make sure the OP understands that if they are looking for a static and uncalculated sheet to send based on this information, if it is not triggered from an event (like those I listed) it's not going to happen. If they understand that when this cell is calculated an event could fire, that would be better.
__________________
___________
Regards, Zack - MVP - MS Excel 2005-2008 (If you would like comments in any code, please say so.)

OfficeArticles.com :|: Extreme Excel Tutorial :|: Excel Articles by Ken Puls :|: Excel User Group, by Nick Hodge

What is a Microsoft MVP? :|: Live Tech Support? Click here
slurpee55's Avatar
Computer Specs
Distinguished Member with 3,159 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
08-May-2008, 03:07 PM #7
I am not even sure what information the OP wants sent - the worksheet or maybe just a static notice like "Time to buy stock" or "Sell stock"....
botello2008's Avatar
Junior Member with 10 posts.
 
Join Date: May 2008
Experience: Beginner
09-May-2008, 11:07 AM #8
Thanks for all your replies, I like slurpee55's idea of having another formula that triggers the email (an IF-AND formula). And yes I just need a short message such as "Time to buy GOOG" for example. That way I can go to the computer when I receive the message and verify it is true. I don't need the whole spreadsheet sent to me, just a short message. I basically want to leave the computer turned on and that Excel sends me the message when it is time to buy a stock, I don't want to be in front of the computer all the time. Is it possible to do it?
slurpee55's Avatar
Computer Specs
Distinguished Member with 3,159 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
09-May-2008, 11:43 AM #9
Botello, since it will be needed (I think) in order to write the code, what email program are you using?
Oh, and if you want a message that states what to buy (not just a static message "Time to buy") we will need to know what column that name is in, as well as the columns tracking the data, etc.
If you could post a sample sheet, that would help a lot.
__________________
Iowa? I could have sworn this was heaven.
Well, I think I can answer this question most successfully in mime.

My theme song...
slurpee55's Avatar
Computer Specs
Distinguished Member with 3,159 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
09-May-2008, 11:49 AM #10
Also, what version of Excel, etc. are you using? And your OS?

Last edited by slurpee55 : 09-May-2008 12:00 PM.
slurpee55's Avatar
Computer Specs
Distinguished Member with 3,159 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
09-May-2008, 11:58 AM #11
This might be of some interest to you
http://www.rondebruin.nl/cdo.htm
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 3,211 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
09-May-2008, 12:36 PM #12
Yes, the CDO method is great. Especially since it bypasses the dreaded Outlook security warnings. It can be difficult to setup and is quite difficult to test, but once setup it is beautiful. I used it full blown only one time on a project. In it's own part, it worked flawlessly.

Personally, I prefer Outlook. That way I can still use all my Outlook rules/alerts and such, plus my tracking, Search Folders and sorting. But I use Outlook by default, so I benefit from it. To bypass the security message in Outlook, I use the [free] ClickYes program - which we can programmatically control (yay!).

Edit: Also, botello2008, understand that if you are looking at the results of a formula, we cannot do anything unless the sheet actually calculates. Does that make sense? A formula can sit there all day long, but so long as it doesn't calculate, you're pretty much done. Here is a workaround:

Use a calculate event to call a standard sub routine (which gives us dynamics in calling the routine anytime/anyplace)
Create a VBS file to open the workbook and call the sub routine
Set the VBS file to Windows Scheduler at x intervals

Doing it this way will not only rely on your calculate event to check on things for you, but if you are not sitting at your computer, Windows Scheduler can run it for you. This is, of course, way over the top of what you've stated, but is a possibility. Look here for a solution which used this type of behavior...

http://forums.techguy.org/business-a...ase-excel.html
__________________
___________
Regards, Zack - MVP - MS Excel 2005-2008 (If you would like comments in any code, please say so.)

OfficeArticles.com :|: Extreme Excel Tutorial :|: Excel Articles by Ken Puls :|: Excel User Group, by Nick Hodge

What is a Microsoft MVP? :|: Live Tech Support? Click here

Last edited by Zack Barresse : 09-May-2008 12:41 PM. Reason: Afterthought..
slurpee55's Avatar
Computer Specs
Distinguished Member with 3,159 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
09-May-2008, 12:40 PM #13
Yeah - that is what I gathered from Ron de Bruin's page - and that is why I asked what OS (and email) the OP is using. And, since I assume you know what you are talking about (LOL), here is a link to the ClickYes program:
http://www.contextmagic.com/express-clickyes/
__________________
Iowa? I could have sworn this was heaven.
Well, I think I can answer this question most successfully in mime.

My theme song...
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 3,211 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
09-May-2008, 12:48 PM #14
There is also a link in the thread I linked (although it was in an Edit ).
slurpee55's Avatar
Computer Specs
Distinguished Member with 3,159 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
09-May-2008, 12:52 PM #15
well, a link to a link to a link to....grief!
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:13 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.