Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2016, 12:09 AM
Rod_Bowyer Rod_Bowyer 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 2007
Novice
Extracting Data From the Internet Using New Web Query Feature
 
Join Date: Mar 2016
Posts: 12
Rod_Bowyer is on a distinguished road
Default Extracting Data From the Internet Using New Web Query Feature

When I try to import data from an external (internet) database via the "Get External" Data box and then "From Web" via the "New Web Query" box it automatically comes up with a website - HTTP://WWW.MSN.COM/en-ev ...... and merrily starts importing data from that website before I can do anything.



Is there a way to turn this "feature" off permanently so that I can just go into the "New Web Query" area and have the URL section blank so that I can then input the URL of the website that I am trying to get data from?

Any help would be greatly appreciated.
Reply With Quote
  #2  
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, 9 views)
Reply With Quote
  #3  
Old 04-01-2016, 01:51 PM
Rod_Bowyer Rod_Bowyer 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 2007
Novice
Extracting Data From the Internet Using New Web Query Feature
 
Join Date: Mar 2016
Posts: 12
Rod_Bowyer is on a distinguished road
Default

Hi Phil, Many thanks for this. I will let you know how I get on.

I started writing this spreadsheet to keep my brain active but it is even harder than I thought that it would be so I really do appreciate all your help.

Cheers - Rod
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 02:45 PM.


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