JudahRaion
New Member
- Joined
- Oct 13, 2011
- Messages
- 20
Hi,
I'm trying to figure how to fire an event related with a specific button pressed in an userform webbrowser.
For example, I'm trying to click in "Write" button of gmail and detect it with excel.
I know that the button have the ID: ":4s"
And what I tried was:
Can anybody help me please?
Thank you
I'm trying to figure how to fire an event related with a specific button pressed in an userform webbrowser.
For example, I'm trying to click in "Write" button of gmail and detect it with excel.
I know that the button have the ID: ":4s"
And what I tried was:
Code:
Private Sub UserForm_Initialize()
TextBox1.Value = "gmail.com"
Me.WebBrowser1.Navigate TextBox1.Value
End Sub
Private Sub WebBrowser1_DocumentCompleted()
If WebBrowser1.Document.All(":4s").******* = True Then
[COLOR=#ff0000] Me.WebBrowser1.Navigate "about:blank" -> just to test if it is detecting my click and is not![/COLOR]
End If
End Sub
Can anybody help me please?
Thank you