Re: web query w/login and password

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: ron (oitbso_at_yahoo.com)
Date: 04/28/04


Date: 28 Apr 2004 08:18:42 -0700

It seems that there are usually several different ways to accomplish
the same goal within Excel. An alternative method to that proposed by
Jake follows:

Sub 401K()

' Prepare to open the web page
    Set ie = CreateObject("InternetExplorer.Application")

    With ie
        .Visible = True
        .Navigate "http://www.gwrs.com/"
         
' Loop until the page is fully loaded
         Do Until Not .Busy
             DoEvents
         Loop
     
' Make the desired selections on the web page and click the submit
button
        Set ipf = ie.document.all.Item("SSN")
            ipf.Value = "123456789"
        Set ipf = ie.document.all.Item("PIN")
            ipf.Value = "abc123"
        Set ipf = ie.document.all.Item("btnarrow")
            ipf.Value = "submit"
        ipf.Click
   
' Loop until the page is fully loaded
        Do Until Not .Busy
            DoEvents
        Loop
    
    End With
    
' Select and copy all of the data from the web page
    ie.ExecWB OLECMDID_SELECTALL, OLECMDEXECOPT_DONTPROMPTUSER
    ie.ExecWB OLECMDID_COPY, OLECMDEXECOPT_DODEFAULT

' Close the internet explorer application
    ie.Quit

' Now write code to paste the web page into a worksheet and begin to
' process / extract the information of interest
        
End Sub

You can usually find the "item names" by viewing the source code for
the web page (right click on the web page and "View Source" is an
option). I can't tell for sure if the above code is error free,
because I don't have a valid PIN. I do know that the above code
correctly enters the SSN and PIN into the login windows and it takes
me to a page that asks for a valid SSN and PIN. So if it doesn't
work, I think it is close...Ron



Relevant Pages

  • Re: web query w/login and password
    ... Also in the previous discussion thread, Jake said I should set me ... > because I don't have a valid PIN. ... > me to a page that asks for a valid SSN and PIN. ...
    (microsoft.public.excel.programming)
  • Re: Troubles with PIC 16F88
    ... I am currently using CCS C ... > for the location of the source code and spits out a hex file. ... > might need to feed pin 4 high, or low, to keep the device from ... the LED has a barely detectable blink to it, ...
    (sci.electronics.design)
  • Re: WTB: U8 GAL Chip
    ... The original Gottlieb U8 has copyrighted code inside. ... The one I sell is a U8G pin for pin "replacement". ... Based on circuitry and what a previous one did, I reverse engineered what was needed and wrote new PAL source code to reproduce these. ... it just doesn't compile correctly..... ...
    (rec.games.pinball)
  • Re: Why cant the view of AMCap update ?
    ... > It sounds like you have an issue handling the preview pin. ... I removed preview pin from bt848 source code. ... I think only capture pin is enough for streaming. ...
    (microsoft.public.development.device.drivers)
  • Re: how to send PCM data to sound card for stream driver??
    ... I can't give you a source code as I don't have it. ... There should be nothing special about this pin. ... is audio PCM and format is WAVEFORMATEX. ...
    (microsoft.public.development.device.drivers)