Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA (Excel) and Internet Explorer

Status
Not open for further replies.

DougExtra21

Programmer
Oct 26, 2017
11
BR
Hi,

I am creating a routine for uploading files to a website, but after clicking a specific button that opens a window to choose a file the code is "paused" and I can't proceed.

Sorry for any word errors, I'm using Google Translate

Code:
Dim IE as Object

Set IE = CreateObject("InternetExplorer.application")

IE.Document.all.Item("selectTransType0").Item(2).Selected = True

IE.Document.querySelector("img[src='images/continue_button.gif']").Click

Do Until IE.ReadyState = READYSTATE_COMPLETE

DoEvents

Loop

IE.Document.getElementById("attachment0").Click

'Any code placed from here is locked
'I didn't find any code to proceed from here

can you help me?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top