Hello,
I'm having troubles coming up with a code that will "click" on a specific button on a webpage. The code I have so far is the following:
When I click on "Inspect Element" on the button I need, this is the information that appears for it:
<button id="report-prompt-submit__56e88879002270cb4c8b95d2886f00cd_content-reporting-report-data"
type="submit" class="primary report-prompt-submit btn
btn-primary">
Run Report</button>
I just need some help to figure out how to write the code to click on this button. Any help is much appreciated! Thanks!
I'm having troubles coming up with a code that will "click" on a specific button on a webpage. The code I have so far is the following:
Code:
Dim IE As InternetExplorerMedium
Dim URL As String
Dim E
Dim btnGo As Object
Sub GetData()
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
URL = 'enter url here
IE.Navigate URL
Do
DoEvents
Loop Until IE.readyState = 4
End Sub
<button id="report-prompt-submit__56e88879002270cb4c8b95d2886f00cd_content-reporting-report-data"
type="submit" class="primary report-prompt-submit btn
btn-primary">
Run Report</button>
I just need some help to figure out how to write the code to click on this button. Any help is much appreciated! Thanks!