[ edit: see @jmangelo 's comment below for why this is a really bad idea, probably even if just for testing, which was the unstated intent. ]
I’m faced with a situation where user login details are simply not remembered and therefore I would like to enter them programatically from the users profile (i.e. effectively simulating the user entering their own details). However, while setting the values of elements “email” and “name” updates them on the screen, pressing the submit button results in a notification: “can’t be blank”
Set objElement = ieDoc.getElementsByName("email") objElement(0).Value = "email@example.com" Set objElement = ieDoc.getElementsByName("password") objElement(0).Value = "12345678aA"
Set objElement = ieDoc.getElementsByName("submit") objElement(0).Click
Here is a similar question.