+ Reply to Thread
Results 1 to 7 of 7

Pulling off Data from website into excel

Hybrid View

Lisa4legin Pulling off Data from website... 04-28-2012, 02:19 PM
venkat1926 Re: Pulling off Data from... 04-29-2012, 02:56 AM
Lisa4legin Re: Pulling off Data from... 04-29-2012, 07:34 AM
Lisa4legin Re: Pulling off Data from... 04-30-2012, 05:06 PM
abousetta Re: Pulling off Data from... 04-30-2012, 05:30 PM
Lisa4legin Re: Pulling off Data from... 05-01-2012, 03:07 PM
Lisa4legin Re: Pulling off Data from... 05-06-2012, 07:52 AM
  1. #1
    Registered User
    Join Date
    03-17-2012
    Location
    Mississauga,Ontario
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    75

    Pulling off Data from website into excel

    I am trying to resolve this issue with Pulling data of a website . I can get into the site with VBA code
    however I need to access a tab called "Client" which needs to be selected and then on the page add the value from excel sheet I am searching for into an input box named "referenceNo" and then download the result back into Excel whatever the Option value is either "completed or other"

    I am adding the script from the soource page.

    HTML Code: 

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Pulling off Data from website into excel

    what is the web page address then you have to use data-import data(something like this depending upon the version) -new web query

    if you give the webplage address a macro can be attempted.
    I am not an expert. better solutions may be available
    $$$$venkat1926$$$$@gmail.com

  3. #3
    Registered User
    Join Date
    03-17-2012
    Location
    Mississauga,Ontario
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    75

    Re: Pulling off Data from website into excel

    Hi,
    its just that this is a Secure (private)Web site and will require a user name and Pass to enter .So I am not sure if that can help--however I have provided the page address for the start page. Let me know if there is something else that can be done? https://tec.cleardmanager.com/Login....2fDefault.aspx

  4. #4
    Registered User
    Join Date
    03-17-2012
    Location
    Mississauga,Ontario
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    75

    Re: Pulling off Data from website into excel

    Like I mentioned I have been able to get through the Site Login screen with the help of the code from JP . but I am still searching for a way to pull a value from the excel sheet and look it up on the website automatically.

    HTML Code: 
    Works good upto here, but cant get the code to work below
    ' click a button on the next page
    Sub try()
    Set ElementCol = appIE.document.getElementsByTagName("INPUT")
     
    ' loop through all 'input' elements and find the one with a specific value
    For Each btnInput In ElementCol
        If btnInput.Value = "" Then
            btnInput.Click
            Exit For
        End If
    Next btnInput
     
    ' loop until the page finishes loading
    Do While appIE.Busy
    Loop
     
    ' click a text link on the page after that
    Set ElementCol = appIE.document.getElementsByTagName("a")
     
    'For Each Link In ElementCol
        'If Link.innerHTML = <strong>Clickable Text Link Name</strong>" Then
            'Link.Click
           ' Exit For
    '    End If
    'Next Link
     
    ' loop until the page finishes loading
    Do While appIE.Busy
    
    Loop
    
    'Do  Events
    
     
    ' grab some text from the body
    strCountBody = appIE.document.body.innerText
    lStartPos = InStr(1, strCountBody, "Text to find")
    lEndPos = lStartPos + 12
    'TextIWant = Mid$(strCountBody, lStartPos, lEndPos - lStartPos)
     
    ' grab the whole screen &amp;amp;amp;amp; paste into Excel
    'appIE.ExecWB OLECMDID_SELECTALL, OLECMDEXECOPT_DONTPROMPTUSER
    'appIE.ExecWB OLECMDID_COPY, OLECMDEXECOPT_DODEFAULT
     
    'Workbooks.Add
    'ActiveSheet.Paste
     
    Application.ScreenUpdating = True
    appIE.Quit
    End Sub

  5. #5
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Pulling off Data from website into excel

    Could you save the page you want to automate as an mhtm page and upload. Also let us know which field you want to input and where in the Excel workbook this information can be found.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  6. #6
    Registered User
    Join Date
    03-17-2012
    Location
    Mississauga,Ontario
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    75

    Re: Pulling off Data from website into excel

    Hi

    I have attached the Excel file and the .MHT(update.zip file attached) of the webpage, The excel file will list the REFERENCE # and that needs to be inputted into the reference input on the webpage. once the display button is clicked the information is provided (if the order is completed or not along with the delivery date) that needs to be put back to spreadsheet into the columns provided.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-17-2012
    Location
    Mississauga,Ontario
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    75

    Re: Pulling off Data from website into excel

    Bump.. Would appreciate any ideas on this thread ..

+ Reply to Thread

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