Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/erujs/vba-webdata
- Owner: erujs
- Created: 2018-11-14T14:57:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T04:43:54.000Z (about 2 years ago)
- Last Synced: 2024-08-13T07:18:20.229Z (4 months ago)
- Topics: vba-excel, vba-macros
- Language: VBA
- Homepage:
- Size: 13.7 KB
- Stars: 14
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - erujs/vba-webdata - Visual Basic script that returns table data from a website to excel sheet (VBA)
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