Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/erujs/vba-webdata

Visual Basic script that returns table data from a website to excel sheet
https://github.com/erujs/vba-webdata

vba-excel vba-macros

Last synced: 8 days ago
JSON representation

Visual Basic script that returns table data from a website to excel sheet

Awesome Lists containing this project

README

        

## vba-webdata

Scraping data from a webpage with getElements using Visual Basic for Applications.

### Enable developer mode on Excel

- in Excel click File tab and goto Options
- in Options, navigate to Customize Ribbon
- under Main tabs, ensure that the checkbox for Developer is in check

### Importing VBA module

- in Developer tab click Visual Basic to open the editor
- `Right-click` on Project-VBAProject Window and select `Import File`

- navigate the `.bas` file to be imported

### Create VBA module

- goto Visual Basic Editor

- `Right-click` on Project-VBAProject Window and select `Insert` → `Module` from the context menu

- start coding :heart:

- to run the code: simply press `F5` to execute the whole code or `F8` to run it by line