+ Reply to Thread
Results 1 to 2 of 2

How to prevent download dialog box appearing with vba

  1. #1
    Registered User
    Join Date
    06-25-2020
    Location
    Warsaw
    MS-Off Ver
    365
    Posts
    1

    How to prevent download dialog box appearing with vba

    Hello, I have a strange problem.

    I have a connection to web API that downloads a file when i refresh it. I use a button with simple vba code to refresh it on demand. When i click on it, the download dialog box appears and i can choose to open/save/cancel.

    However, when i run ANY other macro in this workbook that for example create another connection to this web API (but of course not to the download file method), the query for file download seems to "refresh" itself and suddenly the download dialog box appears...

    I quoted "refresh" because i dont see it refreshing itself, just the dialog appears out of nowhere...

    save.PNG

    I disabled all background queries and i tried the Application.EnableEvents = False but it doesnt seems to work...

    Any idea what is happening and how can i simply kill this dialog box with vba? The only situation when it should appear is when i manually click on Download button in my sheet...

    Alex

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to prevent download dialog box appearing with vba

    Try:

    Please Login or Register  to view this content.
    And if that doesn't work then

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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. google sheets check-boxes are not appearing in download file
    By Mofasol in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 01-26-2020, 01:02 AM
  2. google sheets check-boxes are not appearing in download file
    By Mofasol in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 01-26-2020, 01:02 AM
  3. Save As dialog not appearing
    By paul_carron in forum Excel General
    Replies: 1
    Last Post: 02-07-2014, 02:37 AM
  4. Stop dialog box appearing as it stops macro
    By jackthejock in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2012, 12:07 PM
  5. Update Values dialog box not appearing consistently
    By myorns in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2011, 10:38 AM
  6. Research Dialog Box keeps appearing
    By gmjoja in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-19-2011, 06:33 AM
  7. closing read-only without save dialog box appearing
    By JNW in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-28-2005, 11:20 AM

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