+ Reply to Thread
Results 1 to 3 of 3

can't combine VBA elements

  1. #1
    Registered User
    Join Date
    11-05-2011
    Location
    hexham, england
    MS-Off Ver
    Excel 2010
    Posts
    2

    can't combine VBA elements

    Hi,

    what I need to accomplish is a macro that will loop to take variables from say, A1:A50, concatenate that onto the end of URL that ends in = , do the lookup., have the Destination (in plain text OK) as Sheet2 B1 and then append each other lookup in the loop in the same column on Sheet2, after the previous. Each lookup result will vary in length, I've seen a very long macro to append at the end wherever that happens, but an Offset of around 150 lines between should do. I've looked at lots of macros and can find elements to do the concatenation, loop, lookup and append, but each example is specific to another purpose and I can't figure how to put it altogether, any help greatly appreciated

    mtia
    Mark

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: can't combine VBA elements

    Hello Mark,

    Welcome to the Forum!

    It would be helpful to see some before and after examples. Can you provide a few?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    11-05-2011
    Location
    hexham, england
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: can't combine VBA elements

    Quote Originally Posted by Leith Ross View Post
    Hello Mark,

    Welcome to the Forum!

    It would be helpful to see some before and after examples. Can you provide a few?
    Hi Leith,

    This code works but outputs to 10 different worksheets, I need it to append on one w/s. As I said it does work but there is an error at the end with the debug showing the line RefreshBackgroundQuery highlighted in yellow..

    I've found a bit of code that finds the LastRow as a way of appending, but can't figure out how to work this in, any help appreciated.

    Please Login or Register  to view this content.
    Last edited by cdn.mark; 11-11-2011 at 04:19 AM.

+ 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