+ Reply to Thread
Results 1 to 5 of 5

Return values in batch via custom web query based upon cell value?

  1. #1
    Registered User
    Join Date
    03-10-2015
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    3

    Question Return values in batch via custom web query based upon cell value?

    Hey,

    Need help with this one. I want to create a web query that is using cell values from A2 and onwards in

    the Excel thatīs provided. The data that I want to fetch is based upon the format

    www.missatsamtal.se/operator.php?nr=CELLVALUE

    Eg. If cell value A2 is 1111 then Excel shall fetch the data result from the link

    www.missatsamtal.se/operator.php?nr=1111, value A3 (the next after A2) is 2222 then
    Excel shall fetch the data result from the link www.missatsamtal.se/operator.php?nr=2222

    Pretty much what Im trying to do is to enter a bunch of phone numbers, that later on uses the URL

    "www.missatsamtal.se/operator.php?nr=" and retrives the answer for each value.

    So to summarize;

    1) I want to enter a phone number in column A (Green)
    2) I want to see what the webpage returns, and for this to be shown in column B, using either like Excel VBA, macro or Web query.

    Iīve added how the link/url should be built up, and what the webpage returns if this is done manually.

    I hope that my description is understandable

    Thank you guys so much!

    //Freddie
    Attached Files Attached Files

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Return values in batch via custom web query based upon cell value?

    This might work for you?:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    03-10-2015
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    3

    Re: Return values in batch via custom web query based upon cell value?

    Thank you for the quick response, but...

    I only get a compilation error , please see attatched image. Is there a chance that you can run the same thing to see if you get the same error, or am I doing something wrong here?

    regards,
    Freddie
    Attached Images Attached Images

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Return values in batch via custom web query based upon cell value?

    freddie,

    I actually updated my post just after submitting it, removing that line since we don't need it. But I believe even so, the next line would give an error. That is my fault I forgot to add instructions. In the VBA editor, go to Tools, References, and check the box left of "Microsoft HTML Object Library". That needs to be added to use the code. Sorry about that!

  5. #5
    Registered User
    Join Date
    03-10-2015
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    3

    Re: Return values in batch via custom web query based upon cell value?

    Thanks alot!

+ 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. Batch remove all custom cell styles using VBA
    By qaliq in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2015, 12:59 PM
  2. [SOLVED] Return a value based on other cell values
    By Ravana in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2015, 12:59 PM
  3. return several values based on cell value
    By dkensk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-30-2013, 03:13 PM
  4. [SOLVED] Batch remove all custom cell styles using VBA
    By qaliq in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2013, 07:43 AM
  5. VBA to return values based on cell formats
    By xl121 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-31-2012, 01:26 PM

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