The code below is an entire macro. I am trying to click the first item in the catalog page that loads, to go to that item page. But I can't access any classname, tagname, etc., so I can't click the item. Vba doesn't acknowledge any objects at all exist in the catalog on the web page.
I looked at the source code and searched for frame and iframe. Neither of those terms were found. I think some parts of the page are made of content that comes from other web pages. Here is an example of something I found in the source code-
<!-- Inserted from document templates/Top_Nav.html END-->
Code:Set ieApp = CreateObject("InternetExplorer.Application") ieApp.Visible = True ieApp.navigate "http://www.memorymiser.com/cgi/commerce.cgi?search=action&category=1040" While ieApp.Busy Or ieApp.readyState <> 4: DoEvents: Wend Dim appdoc As Object Set appdoc = ieApp.document Dim obj As Object For Each obj In appdoc.all If obj.tagName = "td" Then 'If obj.tagName = "table" Then 'If obj.tagName = "img" Then 'If obj.tagName = "a" Then msgbox "found one" End If Next obj




Reply With Quote