+ Reply to Thread
Results 1 to 7 of 7

Having problem to import tabular data from webpage to excel

  1. #1
    Registered User
    Join Date
    07-25-2016
    Location
    Kathmandu, Nepal
    MS-Off Ver
    2010
    Posts
    4

    Lightbulb Having problem to import tabular data from webpage to excel

    I am trying to import tabular data from web pagehttp://nepalstock.com.np/floorsheet to excel. This web page gives option to view 500 rows of data at a time. When I try to import this table using "get external data" from Data tab in excel, it only imports first 20 rows of data. There are more than 15 pages of data. Is there any way to import entire table at once without having to navigate to next page.

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Having problem to import tabular data from webpage to excel

    Hi
    Try to use the following code VBA (modify the start and end page as needed)
    (Use a empty Sheet as active sheet)
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-25-2016
    Location
    Kathmandu, Nepal
    MS-Off Ver
    2010
    Posts
    4

    Re: Having problem to import tabular data from webpage to excel

    Thank you so much. I will check and revert if it works.

  4. #4
    Registered User
    Join Date
    07-25-2016
    Location
    Kathmandu, Nepal
    MS-Off Ver
    2010
    Posts
    4

    Re: Having problem to import tabular data from webpage to excel

    I am getting "Invalid Next control variable reference" error. How can I resolve this ? As I have very little idea about VBA I would really appreciate your help

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Having problem to import tabular data from webpage to excel

    Hi
    It works for me. I'm sorry. I change var i with var page. So, use
    Next Page

  6. #6
    Registered User
    Join Date
    07-25-2016
    Location
    Kathmandu, Nepal
    MS-Off Ver
    2010
    Posts
    4

    Re: Having problem to import tabular data from webpage to excel

    Hello

    Thank you so much for the code. It works fine but can we modify code to get 500 rows of data at a time ?
    As this code imports only 20 rows of data at a time and there are more than 380 pages it takes lot of time to import all the data. However, the webpage gives option to view 500 rows of data at a time.
    I would really appreciate if you could solve this issue.

    Regards,

    Yugadi

  7. #7
    Registered User
    Join Date
    05-24-2021
    Location
    Pokhara, Nepal
    MS-Off Ver
    2019
    Posts
    1

    Re: Having problem to import tabular data from webpage to excel

    what do after entering this code?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Import data automatically from a webpage into excel?
    By stockman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-20-2016, 06:18 AM
  2. [SOLVED] Import Data from Webpage
    By kosti in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2015, 10:33 AM
  3. Import multiple text file into excel in tabular format
    By kr.sunny007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2013, 09:32 AM
  4. import specific data from a webpage into excel with VBA
    By wolfram13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2013, 01:26 PM
  5. [SOLVED] how to import stock price data from webpage to excel by macro ?
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2013, 09:41 PM
  6. Pull/import data from webpage into excel
    By emoandy05 in forum Excel General
    Replies: 0
    Last Post: 06-13-2012, 01:47 PM
  7. Import a data from webpage into excel
    By sarath25 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2011, 05:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1