+ Reply to Thread
Results 1 to 6 of 6

Importing Web data into Microsoft Excel

  1. #1
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Importing Web data into Microsoft Excel

    Why is it possible to import a table from a web page into Excel but not possible to import data from a downloadable (Excel) file into Excel?
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Importing Web data into Microsoft Excel

    Because a table from a website is text so is directly parse-able, and Excel workbook is a binary object that isn't.

  3. #3
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Importing Web data into Microsoft Excel

    Quote Originally Posted by Kyle123 View Post
    Because a table from a website is text so is directly parse-able, and Excel workbook is a binary object that isn't.
    Ah, that explains why then.

    From a practical POV, I will need to manually download the Excel file from the website and then direct the VBA code to the downloaded file to bring it in, right?

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Importing Web data into Microsoft Excel

    Well you could automate the download from VBA read the data and kill the workbook if you so wished. Downloading from the web is pretty trivial, but it gets a little more complex when usernames and passwords are involved

  5. #5
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Importing Web data into Microsoft Excel

    Thanks Kyle. I'll give it a go


    Here's where I have reached so far...

    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Importing Web data into Microsoft Excel

    Solved. The function to build the array could be more efficient/neater code but it seems to do the job.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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