Skip to main content

How to import and connect a website in Excel?

Author: Sun Last Modified: 2020-08-20

Have you ever tried to import a website into a sheet and keep changing as the website changes in Excel? Here, I introduce how to deal with this job in an Excel sheet.

Import and connect a website in Excel sheet

Import and connect a website in Excel sheet

To import and connect a website in an Excel sheet, you can do as these:

1. Click Data > From Web.
doc import connect website 1

2. Then in the New Web Query dialog, type the website address you want to import into Address textbox, and click Go to display the website.
doc import connect website 2

3. Click Import, and the Import Data dialog pops out for selecting a cell or a new sheet to place the webpage content. See screenshot:
doc import connect website 3

4. Click OK. Now all webpage content excluding images have been imported in the sheet.
doc import connect website 4

5. Then select the whole worksheet, and then click Data > Properties in the Connections group. See screenshot:
doc import connect website 5

6. In the External Data Range Properties dialog, check the options as you need in Refresh control section and click OK.
doc import connect website 6

7. Also you can refresh the sheet contents by manually clicking on Refresh All > Refresh All/Refresh.
doc import connect website 7

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I am wondering about something.
I understand how to connect data from a webpage to Excel, through the URL. Although the URL gives access to one page on the net, but you can switch pages (all the results are not available in onepage, you need to click to the next page and so on). When i connect it to my Excel file, only the first page appears. How could I do this?
This comment was minimized by the moderator on the site
Enzo, I open the Web Link and find where the cursor is placed initially. Manually Tab Forward or Backward until you move the cursor to the proper location. COUNT the number of times you pressed the TAB Key and include the appropriate number of "Application.SendKeys" as shown below. Once there you should be able to press the ENTER key to do what you need. I don't know if this will work or not but give it a go. Good luck.

' Tab BACKWARDS SIX (6) times to move from the "Agent ID" input field to the "Enter Shorthand or MLS#" input field.
Application.SendKeys ("+{TAB}")
Application.SendKeys ("+{TAB}")
Application.SendKeys ("+{TAB}")
Application.SendKeys ("+{TAB}")
Application.SendKeys ("+{TAB}")
Application.SendKeys ("+{TAB}")
SendKeys "^v", Yes ' The current session of HGMLS receives the PASTED MLS# (up to 250)
Application.SendKeys ("{TAB}")
SendKeys "~", Yes ' Press ENTER.
This comment was minimized by the moderator on the site
Sunny, thanks for the reply. Indicating that it couldn't be done gave me the incentive to "make it happen". With a combination of "AppActivate" and "Sendkeys" commands, I was able to accomplish my task of jumping from an Excel VBA macro where I copied a list of IDs over to a Chrome link where I pasted those IDs to get information about them, and then jump back to Excel to get the next batch of IDs. It's not the most efficient code BUT it does what I want very nicely. Thanks.
This comment was minimized by the moderator on the site
To clarify my request a bit. I have cell F1 which contains the code to Link to a website. In my macro, I execute: Range("F1").Hyperlinks(1).Follow and the link is opened. I minimize it after I have done what I need to do in the website and that gets me back into the macro. A few instructions later I am trying to jump back to the url but cannot do so without issuing the same command: Range("F1").Hyperlinks(1).Follow which open another screen but all I want to do is redisplay the already open url. Can't figure it out.
This comment was minimized by the moderator on the site
Hi, Roger Plant, sorry that there is no way to do this.
This comment was minimized by the moderator on the site
Thank you for your quick reply. Unfortunately, I am trying to jump to the already opened website from within a VBA macro to automate the process. Thanks for trying.
This comment was minimized by the moderator on the site
I have an OPENED web site and I'd like to jump from a worksheet into that web site, without having to open it again. I'm trying to paste a number of IDs into a field in the Web site to look up their email and address but since I am limited to only 75 ids at a time I need to bounce back and forth copying 75 ids from the worksheet, jump into the web site, paste the data (and look up their information and save it as a PDF), then jump back to the Excel worksheet to copy the next 75 ids, again and again. How can I do this?
This comment was minimized by the moderator on the site
Thank you so much, I have searching the web all over for this. YOU SERIOUSLY ROCK!!!!! Love from Kansas, US.
This comment was minimized by the moderator on the site
سلام ممنون از مطالب مفیدتون... اگر موقع اتصال و دانلود دیتا از سایت مورد نظر تقاضای username و password کرد و نداشتیم آیا راهی وجود داره؟ ممنونم
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations