Ok, I have a WebBrowser control in Microsoft Access, I want to load a page into the control and fill in textbox values, and return the values of labels as variables.
Before anyone says it, I already have the project done in C#, but the client wants it in Access.
My code to load the webpage is below:
Dim strURL As String
Dim objIE As Object
strURL = "https://mywepage.com"
Set objIE = Me.WebBrowser2.Object
objIE.Navigate strURL
In C#, I fill in TextBox values with the following code:
webBrowser1.Document.GetElementById("ITEMID").SetAttribute("value", id);
How do I replicate this in VBA?
Here is the way you can do it in VBA
A very clear example here: http://www.excely.com/excel-vba/ie-automation.shtml