+ Reply to Thread
Results 1 to 7 of 7

How to check if Hotmail is already open using macro

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

    How to check if Hotmail is already open using macro

    I use the following code at the begining of each macro that opens an Excel File. What I am looking for is to some how incorporate a procedure like this to check to see if the email that I want to open is already open or not.

    NEXT, look at the 2nd set of code.

    Please Login or Register  to view this content.


    The following code is currently what I use to open my 3 email accounts. This sample is for only 1, which is my hotmail account.

    Next, see below this code.

    Please Login or Register  to view this content.

    This eMail code gets the name of the eMail and .com . . . EX: Hotmail.com from a sheet in the workbook named Setup from cell E8.

    I know how to check to see if a file is already open or not, (don't want it opened 2X). BUT . . . How do I check to see if Hotmail or whatever email of the three I'm referring to is open or not.
    Thanks for helping . . .
    Matt @ Launchnet

  2. #2
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: How to check if Hotmail is already open using macro

    Have a look at ShellWindows.

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

    Re: How to check if Hotmail is already open using macro

    Hi Chippy . . .

    I've finally had the time to search for a solution in Shell Windows. This is an area I'm not very strong in and I don't find anything to do what I'm requesting.

    More Help needed.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to check if Hotmail is already open using macro

    This works with gmail, I can't test it with hotmail. Give it a try by changing where indicated. It doesn't need to check it sends the email with the attachment automatically
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: How to check if Hotmail is already open using macro

    Quote Originally Posted by Launchnet View Post
    I've finally had the time to search for a solution in Shell Windows. This is an area I'm not very strong in and I don't find anything to do what I'm requesting.
    Try these, launchnet:
    http://www.vb-helper.com/howto_list_shell_windows.html
    http://vba-corner.livejournal.com/4623.html

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

    Re: How to check if Hotmail is already open using macro

    Good Evening . . .

    Thanks for the suggestions & Code.

    I haven't had time to RoyUK's code yet, but I do want something like this. I may even use it with gMail.

    I still need to have code that can check to see if the email program that I want to open is already open or not.

    Please see my original sample code.

  7. #7
    Registered User
    Join Date
    04-12-2012
    Location
    Brasil
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: How to check if Hotmail is already open using macro

    To begin, sorry for my english ...
    I do not know if this is still useful, but was doing some trial and to use this code in hotmail you can put as STMP "smtp.live.com" and port "2"
    Hope this helps someone!

    Quote Originally Posted by Launchnet View Post
    Good Evening . . .

    Thanks for the suggestions & Code.

    I haven't had time to RoyUK's code yet, but I do want something like this. I may even use it with gMail.

    I still need to have code that can check to see if the email program that I want to open is already open or not.

    Please see my original sample code.

+ 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