Is there any way to click on Save button when IE.visible=False?
I tried this option that only worked when ie.visible =True Excel VBA to Save As from IE 11 Download Bar
Generic example:
Sub scrape_ex()
Dim oHTML_Element As IHTMLElement
Dim oHTML_Element_signo As IHTMLElement
Dim oBrowser As InternetExplorer
Dim ie As Variant
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = False
ie.navigate "URL"
While ie.readyState <> READYSTATE_COMPLETE And ie.readyState <> READYSTATE_LOADED
DoEvents
Wend
For Each oHTML_Element In ie.document.getElementsByClassName("class")
If oHTML_Element.Title = "my_download" Then
oHTML_Element.Click
Application.Wait (Now + TimeValue("00:00:03"))' Download Bar starts
Exit For
End If
Next
''clicking on Save that work with ie.visible=False ???
Edit:
Clicking the button in the page works perfect, it is not a problem in the web page. I want to click on "Save" when IE download bar starts (with IE.visible=False, so I cant use SendKeys):