Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Business Applications
Tag Cloud
access acer asus batch bios bsod crash desktop driver drivers error ethernet excel freeze gaming gpu hard drive hardware hdmi internet laptop malware memory modem monitor motherboard netgear network printer problem ram registry router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Solved: Excel send email with selected cells

Reply  
Thread Tools
TBaker14's Avatar
Computer Specs
Member with 98 posts.
 
Join Date: Feb 2010
16-Jul-2010, 12:48 PM #1
Solved: Excel send email with selected cells
Hi again,

I've read through numerous posts relating to this topic, but I'm having challenges. What I would like is to create a macro that will send an email to defined recipients IF a range of cells have values that meet a certain criteria (either the colour code or the value).

I'll make a button to run the macro manually.

Any help would be appreciated. Perhaps someone can look up a specific post that relates to my question...cause there are so many, I can't find one.

Thanks!

TBaker14
Attached Files
File Type: xls Test Page.xls (87.0 KB, 87 views)

Last edited by TBaker14; 16-Jul-2010 at 01:39 PM..
TBaker14's Avatar
Computer Specs
Member with 98 posts.
 
Join Date: Feb 2010
21-Jul-2010, 10:27 AM #2
Hmmm...perhaps another tough one since there have been no replies to date.

TBaker14
TBaker14's Avatar
Computer Specs
Member with 98 posts.
 
Join Date: Feb 2010
23-Jul-2010, 12:58 PM #3
Still nothing, eh?
Techyy's Avatar
Computer Specs
Member with 160 posts.
 
Join Date: Jul 2010
Experience: Advanced
23-Jul-2010, 10:00 PM #4
I may give my hands. I had been trying this for a while.. will test it and let you know if i get through.

As of now, By clicking on a button, i am able to open a default e-mail template with some defaults mailing lists and copy the contents from Excel and but not able to paste it in Outlook Email..
TBaker14's Avatar
Computer Specs
Member with 98 posts.
 
Join Date: Feb 2010
26-Jul-2010, 09:30 AM #5
Hey Techyy....thanks for the update! I appreciate it!

TBaker14
Keebellah's Avatar
Computer Specs
Senior Member with 3,541 posts.
 
Join Date: Mar 2008
Location: Oegstgeest, The Netherlands
Experience: Never too old to learn!
26-Jul-2010, 10:49 AM #6
Hi, I get an error 'Can't find project library' but that won't bother me.
Just a question:
As far as I can ake out from your Auto_Open macro you sort column F on date?
You have several sort routines in thre that don't make sense to me.
Correct me if I'm wrong but you want the anniverasry dates sorted (how?) and then you want to send an email to the person or persons whose anniversary date is almost there, right?
Based upon these assumptions I guess that it's simple but please verify.
Thanks
__________________
Cheers,
Hans
It's all in the code... and may the code be with you! If it isn't . . . start debugging! (Time zone: Western Europe)
TBaker14's Avatar
Computer Specs
Member with 98 posts.
 
Join Date: Feb 2010
26-Jul-2010, 11:47 AM #7
Yeah...I've actually made significant changes to the spreadsheet since my original post. However, my question is still the same. Currently, it sorts by Anniversary date and highlights all dates in the current month red. I would like the email to send just the names of the employees with dates in the current month.
Keebellah's Avatar
Computer Specs
Senior Member with 3,541 posts.
 
Join Date: Mar 2008
Location: Oegstgeest, The Netherlands
Experience: Never too old to learn!
26-Jul-2010, 11:56 AM #8
Is the red of any importance or just to show you which will be sent?
And to whom will the email be sent? is that a fixed email address or ... ?
I'll take a look at it tonight and see if I can work something out for you based upon your initial attachment
__________________
Cheers,
Hans
It's all in the code... and may the code be with you! If it isn't . . . start debugging! (Time zone: Western Europe)
TBaker14's Avatar
Computer Specs
Member with 98 posts.
 
Join Date: Feb 2010
26-Jul-2010, 12:38 PM #9
The red is just to show which will be sent.
It will be a fixed email address.
Keebellah's Avatar
Computer Specs
Senior Member with 3,541 posts.
 
Join Date: Mar 2008
Location: Oegstgeest, The Netherlands
Experience: Never too old to learn!
26-Jul-2010, 04:53 PM #10
One thing of course, if it's a fixed email address, will it be one list of names + anniversary date or will it be separate emails?
TBaker14's Avatar
Computer Specs
Member with 98 posts.
 
Join Date: Feb 2010
26-Jul-2010, 04:55 PM #11
Not sure what you mean. I would like the macro to send an email each time it's run with each name + annv date in the email.

Is that what you're asking?
Keebellah's Avatar
Computer Specs
Senior Member with 3,541 posts.
 
Join Date: Mar 2008
Location: Oegstgeest, The Netherlands
Experience: Never too old to learn!
26-Jul-2010, 05:31 PM #12
I had to edit the Auto_Open and get rid of the error I kept getiing.

It's sorted in descending Anniversary date, the colouring you used as conditional formatting I left untoouched.

The button triggers the function to send the anniversary list and will only create a list of those that are red.

See if you can work it out from here, at least you have a working macro button.
Attached Files
File Type: xls TBaker14-Test Page.xls (95.0 KB, 106 views)
__________________
Cheers,
Hans
It's all in the code... and may the code be with you! If it isn't . . . start debugging! (Time zone: Western Europe)
TBaker14's Avatar
Computer Specs
Member with 98 posts.
 
Join Date: Feb 2010
27-Jul-2010, 09:57 AM #13
Wow...that's great! I wish I understood the VBA code more so that I could edit it...but I'm still a newbie. I'll take it from here.

You're help is much appreciated.

TBaker14
Keebellah's Avatar
Computer Specs
Senior Member with 3,541 posts.
 
Join Date: Mar 2008
Location: Oegstgeest, The Netherlands
Experience: Never too old to learn!
27-Jul-2010, 03:32 PM #14
Just ask if you need assistance.
If the post is solved don't forgte to press the button on top to mark it as solved
TBaker14's Avatar
Computer Specs
Member with 98 posts.
 
Join Date: Feb 2010
28-Jul-2010, 10:33 AM #15
Wow...this is frustrating because I don't understand the difference between a Macro and the code you created to send the email. I'm trying to transfer your code to my new spreadsheet (made enhancements) and I really don't understand it the process. I tried copy and paste to create a new macro using your code, but then it doesn't show up as a macro. I tried putting it at the bottom of another macro I have (just as you have it underneath the Auto_Open - sort macro...but that doesn't work either.

I'm really confused. I've attached a recent copy of my spreadsheet. Do you think you could try to put it in the new one?

Thanks,

TBaker14
Attached Files
File Type: xls Test Sheet.xls (179.0 KB, 82 views)

Last edited by TBaker14; 28-Jul-2010 at 12:13 PM..
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools


Similar Threads
Title Thread Starter Forum Replies Last Post
Excel 2007 Macro to Send Reminder Email desantisj Business Applications 2 18-Nov-2009 07:58 PM
Solved: excel: cancelling sending by email kestrelsummer Business Applications 4 26-Oct-2009 02:19 PM
Automatic Email Reminder from Excel based on Date in Cell DMazz Software Development 1 30-Aug-2009 05:47 AM
suddenly unable to send emails with Windows Mail ranchero Web & Email 0 24-Feb-2009 06:29 PM
Error Sending email with my email from subdued2u Web & Email 0 13-Oct-2008 08:26 AM


Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
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 02:44 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.