Issues with Internet Explorer button using VBA.
I need help with clicking a button using vba. The issue is that the button is not clickable when I automatically put in the username and password. It is only clickable when I manually type in the username and password. My code works with other buttons on the website except for this one.
'Here is the part of my code that enters the username, password and supposed to click on the button.
Set HTMLInput = HTMLDoc.getElementById("USER")
HTMLInput.Value = "user"
Set HTMLInput = HTMLDoc.getElementById("Password")
HTMLInput.Value = "password"
Set HTMLButton= HTMLDoc.getElementById("subBtn")
HTMLButton.Click
'This is the button information
<button type="submit" class="btn btn-primary ng-scope" data-ng-click="saveUserID()" id="subBtn" translate="signin.signin">Sign In</button>
I've read somewhere that I can use the Application.sendkeys"username",True
to simulate typing on the keyboard to see if the button will be clickable but I also cannot get that to work. Is there another way to make this button clickable?