Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VB: Problem Clicking Submit In Online Form

Here's my problem...
I need to run records from an excel database through an online form,
then copy the results of the form back to excel somewhere. The problem

is that I can't get VB to click the submit button. I keep getting an
"automation error". Please help!

I'm just starting on this project, so I just wrote some basic code to
figure out how to access the url and enter the data.


Private Sub Form_Load()
' Open IE.
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")


' My variables - later, these will be fields from the database.
Dim strone As String
Dim strtwo As String
str strone = "xxx"
str strtwo = "yyy"


With ie
.Visible = True


' This line accesses the form and fills in the fields with the
variables
.Navigate "http://www.onlineform.com/form.jsp?field1=" +
strone + "&field2=" + strtwo


' This is what I can't get to work.
.document.forms(0).submit


End With


End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to automatically fill and submit (in batch) an online form fromdata in a excel sheet??? Christophe[_2_] Excel Discussion (Misc queries) 0 December 20th 07 07:57 AM
saveto or Submit Form functionality in Excel MLyons10 Excel Worksheet Functions 0 March 29th 06 05:47 PM
Excel VBA to click 'submit' on form Nixter Excel Programming 1 October 13th 05 12:20 AM
Form Input--Submit evangray123 Excel Programming 3 June 16th 05 11:34 PM
I wanta infopath form to submit data to an excel databse file uCHE Excel Discussion (Misc queries) 0 April 26th 05 05:56 PM


All times are GMT +1. The time now is 12:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"