How to Copy Data From Website to Excel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Denburt
    Recognized Expert Top Contributor
    • Mar 2007
    • 1356

    #16
    After rereading this thread several times I thought I might throw my two cents in...

    There are a number of routines that have been written that can grab the handle of the the internet explorer window and return the information you are requesting yet your understanding of VBA may make this difficult to accomplish.

    Have you considered using a Web query? You can use the import window to view the page then log in once you log in select the info you want and go from there. I know this method has some security issues so you may want to consider that when using it with passwords and other sensitive information. I have used this method for log in pages in the past and had decent results the pitfall of this is when you need to log in you will need to edit the Web query and use the wizards window to log in. I hope this helps, let us know.

    Here is some more info on the Web query:Web queries
    Last edited by Denburt; Oct 7 '10, 05:27 PM.

    Comment

    • epifinygirl
      New Member
      • Aug 2010
      • 19

      #17
      I have used Web queries in the past and I tried with this but it tells me that the "session expired". I haven't tried logging in through the Web Query window because there are different pop-ups that you will need to get open when logging in so I figured that because of that issue, web queries wouldn't work

      Comment

      • Matt V

        #18
        Try flipping from this:
        appIE.ExecWB 17, 2
        appIE.ExecWB 12, 0

        to this:
        IE.ExecWB 17, 0 '// SelectAll
        IE.ExecWB 12, 2 '// Copy selection

        Comment

        Working...