New Member
October 7, 2021
Team can anyone guide me how to over come the error when web scraping is done with the VBA code.
I have attached the Macro file for your reference and the error code which I get is 'Invalid use of Null' which i marked as a comments in the code for your reference. Added html code in notepad.
Also please look into the code and make any necessary changes that i missed.
This code is used for scraping data from a web page.
My apologies if haven't convoyed the message properly.
Thanks a lot
GoldBerg
Power Query
Power Pivot
Xtreme Pivot Tables
Excel for Decision Making
Excel for Finance
Excel Analysis Toolpak
Power BI
Excel
Word
Outlook
Excel Expert
Excel Customer Service
PowerPoint
November 8, 2013
Hi Gold,
I think you should use Set Col1=IE.document.querySelectorAll(".wo-notes-num") instead of HTML.querySelectorAll(".wo-notes-num")
If you go to https://www.w3schools.com/Jsre.....rall_class and make the changes like in the image below, the query works.
Answers Post
1 Guest(s)