+ Reply to Thread
Results 1 to 13 of 13

How To Auto Open Outlook from Excel

  1. #1
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    How To Auto Open Outlook from Excel

    I currently use the following code to open any of my 4 types of email accounts, such as hotmail, gmail, juno etc. Now I am adding Outlook and I don't know how to incorporate it into my code.

    As an Ex: I have a seperate worksheet that I place the name hotmail.com and the following code will open it. I use a separte cell for each email address along with a separate macro for each email name.

    I doubt that I can use this same code. I think that I have to use Outlook.exe ?????

    Help would be appreciated.

    Please Login or Register  to view this content.
    Last edited by Launchnet; 01-20-2011 at 01:06 PM.
    Thanks for helping . . .
    Matt @ Launchnet

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: How To Auto Open Outlook from Excel

    Please Login or Register  to view this content.
    Your code can be reduced to:

    Please Login or Register  to view this content.
    Last edited by snb; 01-17-2011 at 01:52 PM.



  3. #3
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How To Auto Open Outlook from Excel

    Good Morning from California

    Thanks SNB for your input

    When I copied your snb code, the following line turned red.

    [CODE]with createobject("Outlook.Application[/CODE]

    I also just thought of the fact that I want to open Microsoft Office Outlook.


    2nd . . .
    In your following code . . .

    Please Login or Register  to view this content.
    the value in cells (9,5) is: hotmail.com

    when I run this macro I get an error message "Run-time error '53':
    File not found.

    Got any additional suggestions? Need help.

    Thanks
    Matt

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: How To Auto Open Outlook from Excel

    I corrected my previous post.

  5. #5
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How To Auto Open Outlook from Excel

    Sorry snb

    I can not see any posting of a change and the original posting is still the same.

  6. #6
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How To Auto Open Outlook from Excel

    I need some Ideas please.

    Thanks Matt

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: How To Auto Open Outlook from Excel

    Maybe some spectacles ?
    Please scrutinize again.

  8. #8
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How To Auto Open Outlook from Excel

    Hi snb . . .

    On the 1st line of your code I found that the closing :} was missing.

    I corrected it and copied it from your post.

    Pasted it into my code sheetl.

    attached a button to Sub snb()

    Clicked the button and the circle appears showing that the macro is running. Then the screen blinked and Microsoft Office Outlook was not opened.

    Task master shows that the module is running

    This is your code I copied from your post.

    Please Login or Register  to view this content.
    By the way, I am getting new glasses this month.

    Please advise.

    Thanks
    Matt

  9. #9
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: How To Auto Open Outlook from Excel

    Please Login or Register  to view this content.

  10. #10
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How To Auto Open Outlook from Excel

    Now getting . . .

    Run-time error '438':

    Object doesn't support this property or method

    Thanks

    Matt

  11. #11
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: How To Auto Open Outlook from Excel

    Or:
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    01-19-2011
    Location
    Liverpool
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How To Auto Open Outlook from Excel

    Quote Originally Posted by snb View Post
    Or:
    Please Login or Register  to view this content.
    This is working perfect for me, however, I use IBM Lotus Notes 7, any suggestions?

  13. #13
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How To Auto Open Outlook from Excel

    Thanks snb

    This did the job. I really appreciate it.

    I will mark resolved

    Thanks
    Matt

+ 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