+ Reply to Thread
Results 1 to 3 of 3

problem occur when use vba to download file

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    hk
    MS-Off Ver
    Excel 365
    Posts
    105

    problem occur when use vba to download file

    Hi All,

    every day, I need to download a file on the internet. The website and filename is fixed.
    I use the following code to download file.
    Please Login or Register  to view this content.
    I setup a web server to test my coding. I first upload a flower picture named with "test.jpg" to the server.
    then I run the macro. It's success to download the file.
    but, I replace a dog picture to the test.jpg in the server and run the macro again.
    The file in the D Drive is still the flower picture.

    I don't know the reason. In fact, I try to use IE to browse the http://test/test.jpg. The flower picture still exist. If I refresh the webpage, the dog picture will appear.
    How should I write the code to solve the problem?

    Thanks.
    Last edited by mrkhchan; 01-07-2015 at 12:41 PM.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: problem occur when use vba to download file

    You need to clear the cache. e.g.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-18-2014
    Location
    hk
    MS-Off Ver
    Excel 365
    Posts
    105

    Re: problem occur when use vba to download file

    Thanks you Kenneth It's solved.

+ 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. detect file download dialog box problem
    By ckjason in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2012, 01:54 AM
  2. recover file occur when press control c ??
    By choy96 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2011, 10:17 AM
  3. file format problem after download
    By papajack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2010, 01:12 PM
  4. file download problem
    By TUNGANA KURMA RAJU in forum Excel General
    Replies: 1
    Last Post: 08-23-2006, 01:00 AM
  5. Problem occur in sum function while deleting the rows
    By Ellis Yu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2005, 10:05 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