I have an already open website and i'm trying to insert data into fields. I have tried it with "wscript.shell" like so:
set a = createobject("wscript.shell")
a.sendkeys ("some data")
But it's not working in every page. Also tried:
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate "https://somesite.com"
IE.Visible = True
IE.Document.All.Item().Value = "some data"
Here the problem is that its openning the same page that already open. Is there a better way?
Aucun commentaire:
Enregistrer un commentaire