Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Error using ".submit"


Hello,


I'm using excell to control IE like this:

Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.navigate "<url is goes here"
Do Until ie.readyState = 4 'READYSTATE_COMPLETE:
Application.StatusBar = "Opening Network Portal... Please
Wait..."
DoEvents:
Loop

Later I have to click a submit button, however, doing it as below isn't
working

With ie.document.forms("F001") ' form name goes
in ()
..Date.Value = dt
..submit '
submit form values
End With

The date values goes into a text box that has the focus when the page
finishes loading. When the code executes the ".submit" statement IE
gives me this error:

Software error:
Can't use string ("") as a subroutine ref while "strict refs" in use
at...blah..blah


is there a way around this(preferably without using sendkeys)? If I
must change the focus to the button how do I do that?

Jim


--
jimthegunman
------------------------------------------------------------------------
jimthegunman's Profile: http://www.excelforum.com/member.php...o&userid=29728
View this thread: http://www.excelforum.com/showthread...hreadid=543184

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
Shortcut key for "Paste Options" and "Error Checking" buttons? johndog Excel Discussion (Misc queries) 1 October 6th 06 11:56 AM
What is Error "Method "Paste" of object "_Worksheet" failed? vat Excel Programming 7 February 17th 06 08:05 PM
"Subscript out of range" error for: Workbooks("Test1.xls").Save Just12341234 Excel Programming 2 June 17th 05 03:16 PM
"Clean Me" Macro is giving "#VALUE!" error in the Notes field. Ryan Watkins Excel Programming 1 June 11th 05 12:25 AM
Getting "compile error" "method or data member not found" on reinstall Bp Excel Programming 1 April 23rd 04 04:42 PM


All times are GMT +1. The time now is 08:38 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"