Consulting

Results 1 to 12 of 12

Thread: Fill Existing Webpage Fields With Data

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Master CreganTur's Avatar
    Joined
    Jan 2008
    Location
    Greensboro, NC
    Posts
    1,676
    Location

    Fill Existing Webpage Fields With Data

    I've got a program I've created to automate a process here at work. One of the tasks I want to automate is for data from an Access Form to automatically populate to textfields in a webpage on Internet Explorer.

    I can do this by bringing up a new webpage with this:

    [vba]Dim IE As Object
    Set IE = CreateObject("InternetExplorer.Application")
    IE.Navigate "http://zip4.usps.com/zip4/welcome.jsp"
    IE.Visible = True
    While IE.busy
    DoEvents
    Wend
    IE.Document.all("address2").Value = "123 Carraige Way"
    IE.Document.all("city").Value = "Shreveport"
    IE.Document.all("State").Value = "CA"
    IE.Document.all("zip5").Value = "90210"[/vba]

    If you run this code, you'll see that it works perfectly.

    My issue is that I need to populate text to an already exisitng webpage- one that's already open in internet explorer. This is due to the fact that the webpage I need to work with can only be accessed after a user logs into the website, and for security reasons I am not going to automate the login procedure.

    What do I need to adjust so that I can get the above code to focus on an existing page?
    Last edited by CreganTur; 08-08-2008 at 11:16 AM.
    -Randy Shea
    I'm a programmer, but I'm also pro-grammar!
    If your issue is resolved, please use Thread Tools to mark your thread as Solved!

    PODA (Professional Office Developers Association) | Certifiable | MOS: Access 2003


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •