+ Reply to Thread
Results 1 to 19 of 19

list all images from website/intranet in excel sheet with vba

  1. #1
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    list all images from website/intranet in excel sheet with vba

    Hi all,

    I'm trying to find an image in a intranet. for some reasons I can find it in the website, but I can't find it in the html.
    Is there a way that all the images from the intranet can be listed in an excel sheet?
    I guess that it would be the same if it would be a current website

    Thank you in advance.

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: list all images from website/intranet in excel sheet with vba

    Does it mean that you are looking at all <img> tags in an url ?
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list all images from website/intranet in excel sheet with vba

    Hi xlbiznes,

    That is correct. If all can be listed, maybe finally I can find the one I want :-)

    Greetings.

  4. #4
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: list all images from website/intranet in excel sheet with vba

    Here you go.

  5. #5
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list all images from website/intranet in excel sheet with vba

    Hi,

    Thanks for the macro.
    One question, is this an excel version specific? I tried it at home with excel 2013 and was giving me errors. I only can use the url from the second sheet, if I type something else, it will just error and do nothing.

    Greetings.

  6. #6
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list all images from website/intranet in excel sheet with vba

    Hi,

    I get: Permission to use object denied
    I tried it on google.com, yahoo.com with no luck

    Any idea why?

    Greetings.

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: list all images from website/intranet in excel sheet with vba

    Try it on a site that doesn't redirect you to https

  8. #8
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list all images from website/intranet in excel sheet with vba

    Hi, I tried it on some pages and it worked fine, but the intranet is not showing nothing at all. Is like there are no images :-(
    maybe because of different forms in the site (I only can guess).

    Greetings.

  9. #9
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: list all images from website/intranet in excel sheet with vba

    If you are using google chrome, Open your intranet page, right click on the image and choose inspect element.

    Then you will know, under what sort of html tag the image is placed.

  10. #10
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list all images from website/intranet in excel sheet with vba

    Hi,

    I need to use IE 8 for this. So all my automation's are based on that.
    The ones I'm more interested in are the "src" part of the html

    Greetings.

  11. #11
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: list all images from website/intranet in excel sheet with vba

    Why do you need to use IE8 for looking at the source behind the page/site?

    PS Can you post the URL?
    If posting code please use code tags, see here.

  12. #12
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: list all images from website/intranet in excel sheet with vba

    I wanted you to find out what sort of element has the image details , so i asked you to use chrome for that. Only to check.

    src is normally under and image tag (IMG).

  13. #13
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list all images from website/intranet in excel sheet with vba

    Hi,

    Ok, now I see the question. I have only firefox en IE8 installed.
    I will request chrome to be installed, but that will be tomorrow as in a few moments I'm going home :-)

    Greetings.

  14. #14
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list all images from website/intranet in excel sheet with vba

    Hi,

    I have this in the HTML:

    HTML Code: 
    HTML Code: 
    The image I want to find (so I can click it, is: src="img/doc_doc_e.gif)

    Hope you have a clue how to do this ;-)

    greetings.

  15. #15
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: list all images from website/intranet in excel sheet with vba

    Can you post your html source code of your intranet ?

    Secondly , is your intranet content static web pages or dynamic content ?

  16. #16
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list all images from website/intranet in excel sheet with vba

    Hi,

    It looks dynamic.
    I can't post the html source code, sorry.

    it needs an action before it will appear in the code windows of IE 8.

  17. #17
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: list all images from website/intranet in excel sheet with vba

    This one list out all the cells inside a table (Html Table).

    See if this works ?

  18. #18
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list all images from website/intranet in excel sheet with vba

    Hi xlbiznes,

    It does not work as I would like it to work. the images are not appearing in the sheet. I guess that it has to do with the setup of the intranet site. When I run the macro with other pages, it does a good job.
    I guess that this will be mission impossible.
    I have a maybe different approach. I will try to use the mouse click via vba. So far I have some code that I added to maximize the IE8 window and then the mouse pointer will move to the position where the stupid image button is. For now, it does not click it as the IE window is not the active one, I need to play a little bit with it till it will really press the button.

    Greetings.

  19. #19
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list all images from website/intranet in excel sheet with vba

    Hi all,

    I will just give up on this as it does not work at all and I just spent to much time on it.

    Big thanks to all of you that came up with some solutions.

    Greetings.

+ 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. Copying list from website to excel
    By caabdul in forum Excel General
    Replies: 2
    Last Post: 10-31-2013, 07:54 AM
  2. Download images from a list of urls (in excel sheet) to my local disk
    By anto888 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2012, 04:02 AM
  3. publish excel sheet to intranet
    By gow75 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2011, 12:32 PM
  4. Images in excel drop list??
    By defy in forum Excel General
    Replies: 3
    Last Post: 05-19-2009, 01:33 PM
  5. Replies: 3
    Last Post: 07-19-2006, 08:25 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