+ Reply to Thread
Results 1 to 8 of 8

excel macro to save the output image file from website (no change filename)

  1. #1
    Registered User
    Join Date
    09-28-2014
    Location
    hong kong
    MS-Off Ver
    2007
    Posts
    5

    excel macro to save the output image file from website (no change filename)

    I would like to run an excel macro to open an image from website, prefer to save the filename exactly same. The reason behind is when the image does not exist, then the website will direct me to download "imagenotfound.png". I wish to keep track on those. anyone can help pls?

    I've checked most of the forum, the filename is manual, can I save directly same filename as what the URL prompted me?

    thx

  2. #2
    Registered User
    Join Date
    09-28-2014
    Location
    hong kong
    MS-Off Ver
    2007
    Posts
    5

    Re: excel macro to save the output image file from website (no change filename)

    I actually have a list of URLs (which directs me to get an image file for each) in a column of the excel file. I am trying to check which image does not exist. However, the problem I am facing is, whenever the image not there, it's automatically prompts me on the "imagenotfound.png" which makes me difficult, especially I did try to disable the redirection of URLs already. Seems the output still telling me the image still there.

    In that case, I am trying alternative, trying to capture the output image filename as above, but seems not easy. Is that limitation of excel macro? Pls advise. Thanks.

  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,259

    Re: excel macro to save the output image file from website (no change filename)

    Hello kiwiques,

    If you can post a few URLs that have pictures and few that don't, it will be eassier to answer to question and provide you with the code.
    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!)

  4. #4
    Registered User
    Join Date
    09-28-2014
    Location
    hong kong
    MS-Off Ver
    2007
    Posts
    5

    Re: excel macro to save the output image file from website (no change filename)

    THanks Leith - I have PM you for the samples. Pls help. thx.

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

    Re: excel macro to save the output image file from website (no change filename)

    Hello kiwiques,

    I thought I had a method that would work. Turns out, that is not the case.

  6. #6
    Registered User
    Join Date
    09-28-2014
    Location
    hong kong
    MS-Off Ver
    2007
    Posts
    5

    Re: excel macro to save the output image file from website (no change filename)

    Is that the excel macro limitation that we cannot save the file with filename same as the prompt up image filename? We must put a specific filename if we wish to save the file locally to check? thanks.

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

    Re: excel macro to save the output image file from website (no change filename)

    Hello kiwiques,

    The main web page redirects and an internal application asks you if you want to open or save the file. This dialog has to be answered before when can discover if the file even exists or not.

    Do you have the product name for the picture? Perhaps we could search for the product and then check if a picture of exists.

  8. #8
    Registered User
    Join Date
    09-28-2014
    Location
    hong kong
    MS-Off Ver
    2007
    Posts
    5

    Re: excel macro to save the output image file from website (no change filename)

    I am not sure if my thinking is good or not. Would there be some codes that can answer the application automatically to save the file (not save as)? After that, I call another function to check the filename that is saved to the path? In that way, I can see if the image is found or not?

+ 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. Macro to save file with today's date in the filename
    By TimmerSuds in forum Excel General
    Replies: 1
    Last Post: 06-16-2014, 03:16 PM
  2. Replies: 2
    Last Post: 01-16-2013, 03:10 PM
  3. Get Putty output to variable or save in log file using excel macro
    By shkehar.mgm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2012, 06:38 AM
  4. Replies: 3
    Last Post: 05-14-2010, 01:03 AM
  5. Macro to save emailed file in Lotus Notes with changing filename
    By liquidskin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2008, 02:53 PM

Tags for this Thread

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