It took me a long time to figure out why on some pages the following code works, while on others it does not. It appears that if the page is set to XHTML Doctype Transitional, I get an object error, otherwise it works fine. Any idea why? The webpage is set up to demonstrate. If you replace the webpage I have listed with test3.htm (the xhtml one, you'll see it does not function). I am running this from Excel VBA and REALLY would appreciate the help!
Dim userN As Variant
Dim ie As Object
Set ie = CreateObject("InternetExpl
ie.Visible = True
Do While ie.busy
Set userN = ie.Document.getElementsByN
If Not userN Is Nothing Then
userN(0).Value = "1000"