+ Reply to Thread
Results 1 to 8 of 8

Companies House API - search for companies, populate spreadsheet.

  1. #1
    Registered User
    Join Date
    12-09-2016
    Location
    berlin
    MS-Off Ver
    Office365
    Posts
    4

    Companies House API - search for companies, populate spreadsheet.

    Kyle123 did some amazing work writing a lot of code to access the Companies House API within Excel. See the thread here: http://www.excelforum.com/showthread.php?t=1123818

    While this works great for individual companies, it all gets a bit harder if you have a list of several thousand companies.

    Would there be a way to make Excel take what is in column A, search for it, ask the human to select an option if there is more than 1 and then populate columns B-G from the results?

    A B C D E F G
    Company Name CRN SIC Sector Segment Postcode Address
    Heptares Therapeutics
    OXFORD NANOPORE TECHNOLOGIES
    Immunogen International

    Really appreciate your help!

    Thank you

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

    Re: Companies House API - search for companies, populate spreadsheet.

    Here's something to get you started, I'm not sure what some of the fields are that you're after, namely Sector and Segment.

    SIC isn't in my wrapper, but can be added easily

    Please Login or Register  to view this content.
    Userform ufChooser
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Kyle123; 12-13-2016 at 01:57 PM.

  3. #3
    Registered User
    Join Date
    12-09-2016
    Location
    berlin
    MS-Off Ver
    Office365
    Posts
    4

    Re: Companies House API - search for companies, populate spreadsheet.

    Wowser! Kyle, you're a star! Thank you so much for helping me with this. You've save me! Can I buy you a beer somehow?

  4. #4
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Companies House API - search for companies, populate spreadsheet.

    Kyle,

    I got an error on this line Set searchResults = api.companySearch(cl.Value2, 100, 0) saying that the operation timed out.
    Please consider:
    Be polite. Thank those who have helped you.
    Click the star icon in the lower left part of the contributor's post and add Reputation. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

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

    Re: Companies House API - search for companies, populate spreadsheet.

    Try swapping:
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    In CompaniesHouseRequest

  6. #6
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Companies House API - search for companies, populate spreadsheet.

    Thanks Kyle. I did and i got the same error on the same line.

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

    Re: Companies House API - search for companies, populate spreadsheet.

    Then I'm afraid I can't help, it's a config issue at your end on the network or your machine. PS, you shouldn't really be asking here - it's against the rules since it's not your thread

  8. #8
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Companies House API - search for companies, populate spreadsheet.

    ok thanks!

+ 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. UK Companies House API Code
    By 19marc87 in forum Excel Programming / VBA / Macros
    Replies: 46
    Last Post: 12-17-2021, 07:53 AM
  2. UK Companies House API
    By Kyle123 in forum Tips and Tutorials
    Replies: 38
    Last Post: 03-24-2020, 11:08 AM
  3. Count red values from certain companies
    By Justmegan93 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2015, 06:26 PM
  4. Replies: 1
    Last Post: 12-17-2014, 12:25 AM
  5. match items across companies
    By gaack in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2014, 05:25 PM
  6. Consolidating companies
    By ab585 in forum Excel General
    Replies: 1
    Last Post: 10-01-2013, 12:43 AM
  7. Replies: 14
    Last Post: 07-28-2013, 10:44 AM

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