+ Reply to Thread
Results 1 to 2 of 2

[SOLVED] Problem with Querytable destination, using Web Query with multiple URLs

  1. #1
    Registered User
    Join Date
    04-03-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2003
    Posts
    2

    [SOLVED] Problem with Querytable destination, using Web Query with multiple URLs

    Hi All,

    I am trying to use a web query to convert a chemical abstracts number (CAS) to SMILES string using the translator at NCI. To do this, a URL is formatted like so: "http://cactus.nci.nih.gov/chemical/structure/100-00-5/smiles", where 100-00-5 is a CAS number. Going to that link will return the SMILES string for that chemical (1-chloro-4-nitrobenzene) which is C1=C([N+]([O-])=O)C=CC(=C1)Cl.

    Starting at D3 and going down the column, I have several hundred unique URLs which I concatenated from the CAS number and are formatted to return a SMILES string. I want to return the SMILES for each chemical in the adjacent cells located in Col E. When I tested the following code (just for the chemicals in D3:D5), it returns the SMILES code but places them in E3, F3, G3 rather than filling the adjacent cells down Column E.

    I've searched around for a solution, but am fumbling around in the dark. This is my first attempt at VBA as you can tell. Any help is very much appreciated.

    Please Login or Register  to view this content.
    Last edited by rdkyote; 04-03-2013 at 03:20 PM.

  2. #2
    Registered User
    Join Date
    04-03-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Problem with Querytable destination, using Web Query with multiple URLs

    Ok think I solved my issue after another hour of Google. I replaced old code with this:

    Please Login or Register  to view this content.
    And added x = x + 1 after End With.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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