longvh211 / Chromium-Automation-with-CDP-for-VBA

A method to directly automate Chromium-based web browsers, such as Chrome, Edge, and Firefox, using VBA for Office applications by following the Chrome DevTools Protocol framework.
MIT License
45 stars 6 forks source link

Facing issue with cdpjconv #35

Closed jianyuan941 closed 1 week ago

jianyuan941 commented 1 week ago

When I try to run the demo, there is a compile error: user-defined type not defined.

Then highlighted private function Jason_parseobject (json_string as string, byref json_index as long) as scripting.dictionary

May I know how to solve it. Thanks alot IMG_20241113_012652.jpg

longvh211 commented 1 week ago

Hi, simply enable Microsoft Scripting Runtime in the VBA References.

jianyuan941 commented 1 week ago

Thanks !!!