Visual Basic Classic
--
Questions
--
Followers
Top Experts
I've got basic form filling working ok, but i need to be able to simulate a click on a specific image which will submit the form.
The form I'm trying to access is here:
http://nos.dhlgroup.co.uk/booking/wrd/run/WB_LOGIN_PW.entryPoint
and I need to be able to click on the continue button (not just submit the form)
I have the following code but am not sure how to click the image to proceed:
Webbrowser1.Navigate ("http://nos.dhlgroup.co.uk/booking/wrd/run/WB_LOGIN_PW.entryPoint")
Webbrowser1.Document.Forms
Webbrowser1.Document.Forms
Thanks
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
I need to fill in around 5 forms sequentially, in just the same way, but VB tries to submit the next form before the current one is finished. Here's what I have now:
WebBrowser1.Navigate ("http://nos.dhlgroup.co.uk/booking/wrd/run/WB_LOGIN_PW.entryPoint")
While (WebBrowser1.ReadyState <> READYSTATE_COMPLETE)
DoEvents
Wend
WebBrowser1.Document.Forms
WebBrowser1.Document.Forms
WebBrowser1.Document.Forms
While (WebBrowser1.ReadyState <> READYSTATE_COMPLETE)
DoEvents
Wend
WebBrowser1.Document.Forms
I would have thought that this would have waited before running each request, but as soon as the initial request is completed, it tries to submit both the forms at the same tima and obviously generates an error! Any ideas how better to do this? Thanks






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Visual Basic Classic
--
Questions
--
Followers
Top Experts
Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.