+ Reply to Thread
Results 1 to 8 of 8

Suppress "Downloading..." and "Saving..." dialogues

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit
    Posts
    3,703

    Suppress "Downloading..." and "Saving..." dialogues

    In the macro snippet below, I run my Speedon and Speedoff macros before opening and after saving. Those two turn off all the time wasters (macros below). But in my FTELookup macro, when I open the workbooks I get a "File Downloading" message, and when saving I get a "Saving workbook..." message. How do I turn those off?

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Registered User
    Join Date
    11-10-2019
    Location
    México
    MS-Off Ver
    2003, 2007, 2010, 2013, 365
    Posts
    4

    Re: Suppress "Downloading..." and "Saving..." dialogues

    hi, jomili

    you can try something like this:

    HTML Code: 
    #If VBA7 And Win64 Then
      Private Declare PtrSafe Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
    #Else
      Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
    #End If
    
    Sub silentDownload_Save()
      LockWindowUpdate Application.Hwnd
      ' do your download and saving stuff '
      LockWindowUpdate 0&
    End Sub
    HTH,
    hector.

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit
    Posts
    3,703

    Re: Suppress "Downloading..." and "Saving..." dialogues

    Héctor, LockWindowUpdate doesn't compile on my machine, but maybe I'm using it wrong. I pasted "LockWindowUpdate Application.Hwnd" before my "Set Lookup=,,,,: line, and put "LockWindowUpdate 0&" after "Set APR = ..."

    When I try to run it, I get a Compile error, "Sub or function not defined".

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    2016 primarily
    Posts
    7,245

    Re: Suppress "Downloading..." and "Saving..." dialogues

    It appears you didn't copy all of the code. You need the API declarations for it to work.
    Rory

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit
    Posts
    3,703

    Re: Suppress "Downloading..." and "Saving..." dialogues

    Rorya,
    You were right, I didn't. So now, do I need to have
    Please Login or Register  to view this content.
    BEFORE and
    Please Login or Register  to view this content.
    AFTER each instance of opening and saving?

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit
    Posts
    3,703

    Re: Suppress "Downloading..." and "Saving..." dialogues

    Tried it like I suggested above, for EACH instance. Didn't make any difference, sill getting the downloading and saving messages.

  7. #7
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    2016 primarily
    Posts
    7,245

    Re: Suppress "Downloading..." and "Saving..." dialogues

    Yes, I've just tested and found the same, trying all sorts of window handles to lock (desktop/application/foreground). None work.

    A quick search turns a few similarly frustrated people but no actual solutions, I'm afraid. I think you'll just have to live with it, as it doesn't appear to actually be an Excel window per se (application.interactive doesn't affect clicking on it for one thing).

  8. #8
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit
    Posts
    3,703

    Re: Suppress "Downloading..." and "Saving..." dialogues

    Why are petty annoyances so annoying? I guess just to remind me I still have some growing and maturing to do. Thanks so much for taking a shot at it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 11-19-2020, 08:30 PM
  2. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  3. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  4. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  7. Replies: 1
    Last Post: 05-23-2013, 02:04 PM

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