erujs / vba-webdata

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 InsertModule from the context menu
  • start coding ❤️
  • to run the code: simply press F5 to execute the whole code or F8 to run it by line

About

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


Languages

Language:VBA 100.0%