CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2009
    Posts
    1

    Controling multiple IE pages using VB

    Hi,

    I am trying to automate a process using a VB macro in Outlook. There are two operations it needs to do, submit a form to a web page and capture some of the data in the page it is forwarded to and then open another web page using that data.

    I can open an IE window and send it to the appropriate page, using javascript i can fill and submit the form but i do not know how to capture the information in the page that is generated by the server as a result.

    Any resources I can look at or code snippets that might be of help?

    Thanks, Alex

  2. #2
    Join Date
    Mar 2005
    Posts
    226

    Re: Controling multiple IE pages using VB

    The server will do processing and will typically send back a new page with the updated values.

    I would use asp.net and set the postback value to true. Much easier.

  3. #3
    Join Date
    Mar 2009
    Posts
    12

    Re: Controling multiple IE pages using VB

    you can use internet explorer object to do the same in VBA.

    Code:
    Dim IE As InternetExplorer
    Set IE = New InternetExplorer
    IE.Navigate2 "www.gmail.com"
    you can use multiple objects to access multiple pages.
    don't forget to set IE to nothing after you finish with it.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured