?
Solved

Using IHTMLFormElement

Posted on 2004-03-25
3
Medium Priority
?
481 Views
Last Modified: 2008-03-04
Can anyone give me an example of how to use VB to:
1.) Navigate the browser to a web page that contains a form
2.) Populate the form
3.) Submit the form

Thanks!
0
Comment
Question by:AmyL
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 28

Accepted Solution

by:
Ark earned 2000 total points
ID: 10684925
  Dim ie As Object
   On Error Resume Next
   Set ie = CreateObject("InternetExplorer.Application")
   ie.Navigate strURL
      While ie.ReadyState < 4
      DoEvents
   Wend
'  ie.Visible = True
   ie.Document.All("UserName").Value = "MyName"  
   ie.Document.All("Password").Value = "MyPassword"  
   ie.Document.All("Submit").Click
0
 
LVL 28

Expert Comment

by:Ark
ID: 10684959
This is a test from VB
0
 
LVL 28

Expert Comment

by:Ark
ID: 10684968
PS above post was a test of following code:

Private Sub Command1_Click()
   Dim ie As Object
   On Error Resume Next
   Set ie = CreateObject("InternetExplorer.Application")
   ie.Navigate "http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20932909.html"
      While ie.ReadyState < 4
      DoEvents
   Wend
   ie.Visible = True
   ie.Document.All("body").Value = "This is a test from VB"
   ie.Document.All("Submit").Click
End Sub
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question