+ Reply to Thread
Results 1 to 5 of 5

Macro that allows a search in one column in one worksheet and moves to another

  1. #1
    Registered User
    Join Date
    04-02-2013
    Location
    tba
    MS-Off Ver
    Excel 2010
    Posts
    3

    Macro that allows a search in one column in one worksheet and moves to another

    Hi,
    In column A of worksheet "EOK1" are unit numbers (exp:2spf25006). I would like a macro that will look in another sheet named "results" and find that unit number. Once it finds that unit number it copies the column next to that unit number on the "results" sheet and paste it to a column on the EOK1 sheet named stem 3 in the same row. Can someone help me out with this it will be greatly appreciated. THIS IS TEST COPY DO NOT USE THIS (Autosaved)2.xlsm

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro that allows a search in one column in one worksheet and moves to another

    Once it finds that unit number it copies the column next to that unit number on the "results" sheet and paste it to a column on the EOK1 sheet named stem 3

    Means the same cell is copied twice: One on sheet result and then again on the same sheet column L. Is this right?

  3. #3
    Registered User
    Join Date
    04-02-2013
    Location
    tba
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro that allows a search in one column in one worksheet and moves to another

    So basically it searches the results sheet for the unit numbers found on eok1 sheet if they are there the the dates next to the column on the results sheet back into the eok1 sheet stem3 column across from that unit number. Does that make since? Let me know. Thanks for replying

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro that allows a search in one column in one worksheet and moves to another

    By next column you meant L as you have hidden columns. This code compares column D of result sheet with column B of eok1 and the return is on column L of sheet eok1.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-02-2013
    Location
    tba
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro that allows a search in one column in one worksheet and moves to another

    Quote Originally Posted by AB33 View Post
    By next column you meant L as you have hidden columns. This code compares column D of result sheet with column B of eok1 and the return is on column L of sheet eok1.

    Please Login or Register  to view this content.
    I honestly dont know how to thank you. You have taken so much time off my day! Thank you for such a fast reply and such a great code! Now if i could get the results of each indivdual page to copy to an email, I would pretty much be set. Thanks again!

  6. #6
    Registered User
    Join Date
    04-02-2013
    Location
    tba
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro that allows a search in one column in one worksheet and moves to another

    I was wondering if you can help me with something else. In that program if you notice in the tabs with an "S" at the end have columns in them that change to yes or no depending on the info put in. Was wondering if the columns say yes, which would be columns G,K,O, if it would create an email giving the unit number in column B that is due and put the reason there due. Like 2SPF32796 STEM 2 DUE, HRS ON STEM 102. Or 2SPF32796 STEM 3 DUE, STEM 3 TIME 270. Thanks

+ 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