+ Reply to Thread
Results 1 to 7 of 7

macro which copies all column values based on specific string inputs

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    Guam
    MS-Off Ver
    2010
    Posts
    30

    macro which copies all column values based on specific string inputs

    Hi,

    I need a macro which copies all of the column values on the same row of a string for all the sheets in a workbook.

    1.When an user inputs a string, the macro will scan each sheet searching for an exact match of the string then copies all of the column values on the same row of the string. If there is an empty cell, the macro will return an empty cell.
    2. The macro should be able scan all of the sheets in a workbook for all matches.
    3. The macro should be able to process more than one input at a time.

    I appreciate your help.

    I've attached a sample excel file.Attachment 165606
    Attached Files Attached Files

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,307

    Re: macro which copies all column values based on specific string inputs

    This will ask for input and then search all worksheets except "inputs" and return any found to the "inputs" worksheet...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-15-2012
    Location
    Guam
    MS-Off Ver
    2010
    Posts
    30

    Re: macro which copies all column values based on specific string inputs

    I've been waiting for a solution for some time.

    Thank you so much for your contribution!!!

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,307

    Re: macro which copies all column values based on specific string inputs

    You're welcome.

  5. #5
    Registered User
    Join Date
    05-15-2012
    Location
    Guam
    MS-Off Ver
    2010
    Posts
    30

    Re: macro which copies all column values based on specific string inputs

    Hi dangelor,

    Just wondering if you could modify this slightly where instead of an input box, the macro would receive its input from a list on the first column or any one column then output the values row-wise instead of column-wise (i.e., one string value per row with its values listed on one row across columns).

    Thanks again.

  6. #6
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,307

    Re: macro which copies all column values based on specific string inputs

    Possibly...
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-15-2012
    Location
    Guam
    MS-Off Ver
    2010
    Posts
    30

    Re: macro which copies all column values based on specific string inputs

    Hi,

    There was a slight deviance with the revised code compared to the original code you programmed, but I got it figured out I suppose.

    You made my job easier!!!

    Thank you so much again.

    Please Login or Register  to view this content.
    Last edited by buntalan80; 07-12-2012 at 04:05 PM.

+ 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