Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-01-2016, 12:06 AM
Philb1 Philb1 is offline Extracting Data From the Internet Using New Web Query Feature Windows 10 Extracting Data From the Internet Using New Web Query Feature Office 2010 32bit
Advanced Beginner
 
Join Date: Feb 2016
Location: Auckland
Posts: 43
Philb1 is on a distinguished road
Default

Hello Rod

Here's a VBA way of doing it. It's something I did a while ago for someone else, I've stripped it down to do just the web page scrape. There's some parts commented out from when I was experimenting which I left there to remind me of the syntax etc. Have a play with it & see if it's any use to you.


The message that appears at the top of sheet2 is from change event in the Tab/View Code window, delete or comment out if you like. If you delete the contents of sheet 2 manually, you can end up with multiple connections in the Data Connections window. As it is now, if you run it it will delete any data connections, clear sheet 2 and display an input box to enter the website you want to get the data from. Then depending on the website etc a few seconds later you have something on sheet 2. I've left sheet 2 with the last page I downloaded so just press the button & play

Enjoy
Attached Files
File Type: xlsm QueryTables.xlsm (58.9 KB, 11 views)
Reply With Quote
Reply

Tags
importing data, new web query



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting Data From the Internet Using New Web Query Feature Extracting data, pivot tables, and maybe VBA help? rbexcelhelp Excel Programming 3 05-09-2015 12:13 AM
How to populate cells in Sheet2 with Data Source query using cell data from Sheet1 bobznkazoo Excel 2 03-27-2014 11:14 AM
Extracting Data From the Internet Using New Web Query Feature Extracting data from excel Eric855 Word 6 07-25-2013 08:02 AM
How to Query Text in MS-Excel 2010 or Import Data & Query outside of Excel? mag Excel 0 10-18-2012 11:15 AM
Extracting Contacts Data from Excel Caesar Outlook 1 05-08-2011 05:54 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft