This question already has an answer here:
- Get Value from a cell on a worksheet 1 answer
I have this code:
Set txtUserName = IE.Document.getelementbyid("txtUserName")
txtUserName.Value = "xxxxxxxxxxx"
Set txtPassword = IE.Document.getelementbyid("txtPassword")
txtPassword.Value = "yyyyyyyyyyy"
It works perfectly fine, but what I would like to achieve is the following. Instead of entering the username and password in the code itself, I would like to refer those to Sheet1, Cell B2 (for username) and Sheet1, Cell B3 (for password)
I tried several methods but I am not able to find a solution.