Scraping data from a webpage with getElements using Visual Basic for Applications.
- open workbook in Excel
- press
Alt + F11
to open Visual Basic Editor Right-click
on Project-VBAProject Window and selectImport File
- navigate the
.bas
file to be imported
- goto Visual Basic Editor
Right-click
on Project-VBAProject Window and selectInsert
→Module
from the context menu- start coding ❤️
- to run the code: simply press
F5
to execute the whole code orF8
to run it by line