+ Reply to Thread
Results 1 to 13 of 13

Get data from web to my worksheet with the help of a code.

  1. #1
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Get data from web to my worksheet with the help of a code.

    Hello code experts.
    I am trying to get the data from the web from a particular web site into my excel sheet. I can do this manually. If it is possible to write a code and get the same result it would just be cool. Can anyone tell me whether it is possible.?
    I have to copy the ID number from my workbook and paste it on the site in a particular box and it will display the result. Then there is an option in the page to download the data in an xls format.
    I want to insert a button in the sheet so that when I press the button to run the code, it should open that particular site, copy the ID's from the workbook and paste it in that particular box, run the button on the web to get the result and get the data in xls in my workbook.
    Last edited by RAJESH SHAH; 06-07-2022 at 04:47 PM. Reason: #Solved

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,633

    Re: Get data from web to my worksheet with the help of a code.

    Yes it is possible.
    A lot depends on the webpage itself (is it just html, javascript, ...)
    To start you can watch: https://www.youtube.com/watch?v=T6HRjiAdW38
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Get data from web to my worksheet with the help of a code.

    Will check out the link and Will revert back Thanks Kaper.

  4. #4
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Get data from web to my worksheet with the help of a code.

    Kaper, The link you shared is just amazing. I was able to open the required site and was able to reach the box in the page where I want to paste some data in it. The data is in my excel sheet which contains some ID's and I want to get the full details of those ID's from this web page. If I enter the Id's in the box of the web page, I will get the full details of those ID's. Then there is an option in the web page to download the details in xls format. I am stuck here now. How do I paste the Id's in the web page, next how to get that xls sheet in my workbook.

  5. #5
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Get data from web to my worksheet with the help of a code.

    All webpages are constructed differently. Can you provide actual webpage? Most people use Selenium to get web data. There is an addin for Excel called SeleniumBasic. The problem with using Microsoft Internet Controls is MS is discontinuing IE and many webservers won't work with it. Many of Microsoft's webservers don't work on IE.
    Last edited by mogul; 06-07-2022 at 12:27 PM.

  6. #6
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Get data from web to my worksheet with the help of a code.

    I have already shared this query on another forum. I hope it is not an issue if I share the link here.
    Last edited by RAJESH SHAH; 06-07-2022 at 12:39 PM.

  7. #7
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Get data from web to my worksheet with the help of a code.

    I have managed to get the first data in cell C2 in the web page with this code. If any one can edit the code to select the whole column and display it to the web page will complete my step2.
    HTML Code: 
    Range C2, column C has data till C500. I want the code to display all the rows in C2:C500

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,924

    Re: Get data from web to my worksheet with the help of a code.

    I have already shared this query on another forum. I hope it is not an issue if I share the link here.
    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until you provide a link or, for members with fewer than 10 posts, a comment telling us where else you have posted this query.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  9. #9
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Get data from web to my worksheet with the help of a code.

    Alan. I understand the rules. The question I posted is a part of the query which I shared on another forum. It was a mistake. Sorry. I will just wait for one more day and then post the link if I do not receive any response from the other forum. Sorry once again.

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,924

    Re: Get data from web to my worksheet with the help of a code.

    Please post the link now so that others here do not waste time. If you understand the rules, then follow them now. It is common courtesy.

  11. #11
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Get data from web to my worksheet with the help of a code.


  12. #12
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Get data from web to my worksheet with the help of a code.

    With the help of Kaper's link, I have managed to get the data into the web as shown in post #7. The rest is still pending.

  13. #13
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Get data from web to my worksheet with the help of a code.

    This is to inform you that the query has been solved.
    HTML 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. [SOLVED] VBA Code to transfer Data From One Worksheet To Another Worksheet
    By Buddy8 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-24-2016, 12:23 PM
  2. Replies: 13
    Last Post: 10-05-2015, 08:59 AM
  3. [SOLVED] Macro/VBA code to Copy data from primary worksheet to a worksheet opened by macro
    By MHamid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2013, 11:10 AM
  4. VBA -- pouse code to enter data in a worksheet, and then resume code
    By jcm4ccc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-26-2013, 12:59 PM
  5. Enter data to worksheet code
    By herukuncahyono in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-05-2010, 07:47 PM
  6. Code to Copy Data From one Worksheet to Another
    By Gos-C in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-04-2008, 01:00 AM
  7. Code to Copy Data From one Worksheet to Another
    By Gos-C in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2008, 09:47 PM

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