Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88835

How to set the value of a textbox using an Excel cell [duplicate]

$
0
0

This question already has an answer here:

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.


Viewing all articles
Browse latest Browse all 88835

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>