Excel VBA Course
Excel VBA Course - From Beginner to Expert

200+ Video Lessons
50+ Hours of Video
200+ Excel Guides

Become a master of VBA and Macros in Excel and learn how to automate all of your tasks in Excel with this online course. (No VBA experience required.)

View Course

Import Web Data into Excel Problem

0

After trying the VBA Marco to import Web Data into Excel I get a problem with this part of the code.

price = html.getElementsByClassName("Trsdu(0.3s) Fw(b) Fz(36px) Mb(-4px) D(ib)")(0).innerText

I get an error of

Run Time Error '91':

Object Variable or With block variable not set

How do I fix this problem?

Answer
Discuss

Discussion

Hi

Did you check Don's previous answer Import Web Data to Excel using VBA Macros -- Object Variable not set error (suggested in the Other Excel Questions panel to the left of this page)?
John_Ru (rep: 6142) Nov 2, '21 at 2:07 pm
Add to Discussion



Answer the Question

You must create an account to use the forum. Create an Account or Login