+ Reply to Thread
Results 1 to 11 of 11

How do I find the name of my Default Email program for CreateObject()

  1. #1
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    How do I find the name of my Default Email program for CreateObject()

    I'm trying to set up automatic emails in Excel 2003, but I can't CreateObject() because I don't know the name of my default email program.
    I can't use GetObject() to find it because when I look at the properties of the shortcut in my Vista Start Menu, the location is too long to display.
    I'm currently using Windows Mail.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: How do I find the name of my Default Email program for CreateObject()

    Hello foxguy,

    This macro will return the program name of the default email account.
    Please Login or Register  to view this content.


    Example
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: How do I find the name of my Default Email program for CreateObject()

    Leith;

    Thanks. Do you happen to know how to resolve an error I get when I run your sub()?
    I get error "Invalid root in registry key "

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: How do I find the name of my Default Email program for CreateObject()

    Hello foxguy,

    You will have to use RegEdit to open the registry and search for the string Mailto. What version of Windows are you running the macro on?

  5. #5
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: How do I find the name of my Default Email program for CreateObject()

    I'm running Vista. Can I just delete the entry in the register, or do I have to figure out what to change it to?

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: How do I find the name of my Default Email program for CreateObject()

    Hello Foxguy,

    Vista is an entirely different operating system. I don't have Vista and can not advise you on what to look for and where it might be located.

  7. #7
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: How do I find the name of my Default Email program for CreateObject()

    I 'm running vista (ultimate x32) too... I didn'r get this error... answer was OUTLOOK.EXE
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  8. #8
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: How do I find the name of my Default Email program for CreateObject()

    Leith;

    I changed your line:
    Please Login or Register  to view this content.
    (I found that key in Register) and got the answer "WinMail.exe".

    I am using Windows Mail, but it won't accept my setting it as the default. Every time I set it to the default, it just reverses my change.
    Would you guess that I have probably found the correct Default Email Client?
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  9. #9
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: How do I find the name of my Default Email program for CreateObject()

    Hello foxguy,

    Without having a Vista system whose registry I can check, I can not say for certain it the correct key. However, if I were to make an educated guess then I would say it probably is. If you run the macro on another system, the macro may not work because of a different registry setup. The macro I provided will work with Windows 2000 through XP. Did macro work?

    Your profile says you are using Excel 2002, but not which Windows OS you have. In the first post you say you want the default email program for Excel 2003. Finally, you mention Vista. System architecture changes from release to release. Sometimes very small changes are made and sometimes large changes are made. This is why it is important you be clear about what software and hardware you using.

  10. #10
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: How do I find the name of my Default Email program for CreateObject()

    Leith;

    Yeah, I don't know how, but somehow I got it into my head that I had Excel 2003. I actually had to check About Excel for disabled items and noticed that it really was 2002. My bad.
    Your macro did work after I changed the line. Now I just have to figure out how to use the result (See thread "How do I create an instance of Thunderbird" for my most recent problem. You're right, I had to change the line back after I made Thunderbird my default. Seems to me there should be a better way to determine the default client.

  11. #11
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: How do I find the name of my Default Email program for CreateObject()

    Hello foxguy,

    It would be nice, but when dealing with registry there really isn't. The best thing to do is use an API macro to read the system version and call the correct macro for the installed OS.

+ 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