+ Reply to Thread
Results 1 to 3 of 3

Suppress popup message for password

  1. #1
    Registered User
    Join Date
    11-06-2009
    Location
    Arkansas
    MS-Off Ver
    Excel 2007
    Posts
    48

    Suppress popup message for password

    I have an Excel VBA macro that takes a long time to run, as it has to perform cut-and-paste operations on 65,000 rows of data, two rows at a time. I'm working on some speed optimization techniques, but that's another story.

    In the meantime, I just let the macro run overnight!

    However, I've noticed when I get up in the morning, that the macro has paused, apparently because I have a pop-up window from Microsoft Outlook asking for my password to my Exchange server! I close the pop-up window, and the macro resumes execution.

    Outlook isn't open, (in fact no programs are open but Excel), yet it has processes that insist on performing this check. I don't really want to turn the processes permanently off, but it would be nice if I could suppress them so that it didn't hang my macro halfway through.

    Anybody else seen this?

    Thanks!

    Nathaniel
    Last edited by JBeaucaire; 06-23-2013 at 09:33 AM. Reason: Corrected the title, as per Forum Rules. Please take a moment to read the forum rules, link is in the menu bar above.

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Suppress popup message for password

    Hi,
    try to set the following at the beginning of your macro:
    Please Login or Register  to view this content.
    and at the end:
    Please Login or Register  to view this content.
    for the performance:
    1. Avoid using "Select" and "Selection.Copy", copy the range directly
    2. If you need the values to be copied without formatting do sth like:
    Please Login or Register  to view this content.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

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

    Re: Suppress popup message for password

    FYI

    Application.DisplayAlerts only applies to Excel and not Outlook. In Excel this will automatically choose the default button on the dialog displayed and click it. The Outlook Application object does not have an analog to this Excel function.
    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!)

+ 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