Results 1 to 5 of 5

Macro needs amendment to include loop

Threaded View

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    Amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    7

    Macro needs amendment to include loop

    Dear all,

    I have recently purchased login details to a specific website; as there are over 6000 entries in this list, it will take a long time to copy-paste all information on to a Word-file or something.
    I have retrieved all individual URL's of each individual record; I have tried to let an Excel Macro / VBA run each individual link and copy/paste the information but this is not working.
    The VBA I have tried to run is:

    Sub Test()
     Dim IE As Object
     
    Set IE = CreateObject("InternetExplorer.Application")
     With IE
     .Visible = True
     .Navigate "http://6000profiles.com/Alphabets/../Company%20profiles/A%20Different%20World.htm "
     Do Until .ReadyState = 4: DoEvents: Loop
     
    x = .document.body.innertext
     x = Replace(x, Chr(10), Chr(13))
     x = Split(x, Chr(13))
     Range("A1").Resize(UBound(x)) = Application.Transpose(x)
     
    .Quit
     End With
     
    End Sub
    In the above construction I need to manually amend the URL field about 6000 times.
    I would like to make an adjustment where the VBA automatically goes thru the list of URL's I have in, lets say, Worksheet 1 and copies all relevant information all below eachother on, lets say, Worksheet 2.
    Can anyone help me out ? I am completely stranded on this one.....

    With many thanks, Marcel.
    Last edited by arlu1201; 09-17-2012 at 07:09 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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