There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot computer connection crash css dell display driver drivers email error excel explorer firefox firefox 3 freeze hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem ram router security slow software sound trojan usb virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Solved: How send E-mail in excel using VBA


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!

Closed Thread
 
Thread Tools
eWreck's Avatar
Member with 44 posts.
 
Join Date: Nov 2003
Location: California
Experience: Much to Learn I have!
29-Oct-2004, 03:51 PM #1
Solved: How send E-mail in excel using VBA
how do you do mailto and send within a macro?
receiver, subject and body would all be static.

Thanks in advance,
Eric
Rollin_Again's Avatar
Distinguished Member with 2,872 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
29-Oct-2004, 05:36 PM #2
Which email client are you using?


Rollin
eWreck's Avatar
Member with 44 posts.
 
Join Date: Nov 2003
Location: California
Experience: Much to Learn I have!
01-Nov-2004, 07:33 PM #3
Outlook Express
Rollin_Again's Avatar
Distinguished Member with 2,872 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
01-Nov-2004, 08:06 PM #4
Here is one way using CDO:
Code:
    Public Sub CDOMail()
    
    Dim iMsg As Object
    Dim iConf As Object
    Set iMsg = CreateObject("CDO.Message")
    Set iConf = CreateObject("CDO.Configuration")
 
    With iMsg
        Set .Configuration = iConf
        .To = "eWreck@techguy.com"
        .CC = ""
        .BCC = ""
        .From = """John Doe"" <JohnDoe@hotmail.com>"
        .Subject = "This is a test"
        .TextBody = "This is the body text"
        .AddAttachment "C:/YourAttachment.txt"
        .send
        End With
    
    End Sub
Rollin

Last edited by Rollin_Again : 01-Nov-2004 08:37 PM.
eWreck's Avatar
Member with 44 posts.
 
Join Date: Nov 2003
Location: California
Experience: Much to Learn I have!
01-Nov-2004, 08:13 PM #5
That Works Perfectly Thanks

Eric
Rollin_Again's Avatar
Distinguished Member with 2,872 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
01-Nov-2004, 08:57 PM #6
Glad to help out! Mark this thread as solved


Rollin
eWreck's Avatar
Member with 44 posts.
 
Join Date: Nov 2003
Location: California
Experience: Much to Learn I have!
01-Nov-2004, 09:05 PM #7
Sorry for the noob Question
but how?
Rollin_Again's Avatar
Distinguished Member with 2,872 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
01-Nov-2004, 10:16 PM #8
There should be a link under Thread Tools near the top of the first post.

Rollin
Closed Thread

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.


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 help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


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 07:03 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.