Hey Guys, I have a webpage that has a print button, however the button is a part of a java script that does not have a and id thus making it really hard to "click" for VBA.
I have solved this problem in VB.NET by doing the following :
Public Sub PressPrint()
Dim allelements As HtmlElementCollection = WebBrowser1.Document.All
For Each webpageelement As HtmlElement In allelements
If webpageelement.GetAttribute("title") = "Print the chart" Then
webpageelement.InvokeMember("click")
End If
Please help me reproduce this in VBA!
Thank you all for the help in advance.
Ivan
Bookmarks