+ Reply to Thread
Results 1 to 5 of 5

Matching data from one sheet to another and pasting data (looping problem)

  1. #1
    Registered User
    Join Date
    12-25-2015
    Location
    Greenville,SC
    MS-Off Ver
    2010
    Posts
    10

    Matching data from one sheet to another and pasting data (looping problem)

    I am trying to do the following:

    Look at column A on the 'Assign Lockers' sheet, which will have a list of locker numbers to be assigned. Column B will have the name of the person assigned to the locker.

    When CommanButton3 is clicked, it should match column A on the 'Assign Lockers' sheet with column A on the 'Lockers' sheet, and paste the name form column b on the 'Assign Lockers' sheet in the corresponding column b on the 'Lockers' sheet.

    What I have below works for the first locker, but is not continuing on to the rest, and I cannot figure out why.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,193

    Re: Matching data from one sheet to another and pasting data (looping problem)

    Ideally.....Upload a sample of your file so that we can see the conditions.....
    To attach a file, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    12-25-2015
    Location
    Greenville,SC
    MS-Off Ver
    2010
    Posts
    10

    Re: Matching data from one sheet to another and pasting data (looping problem)

    Here is the file.
    Attached Files Attached Files

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Matching data from one sheet to another and pasting data (looping problem)

    Message that the file is corrupted?
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Registered User
    Join Date
    12-25-2015
    Location
    Greenville,SC
    MS-Off Ver
    2010
    Posts
    10

    Re: Matching data from one sheet to another and pasting data (looping problem)

    Someone closed my file without saving. I am working on redoing what I have done today. I will upload the file when I get it.
    Last edited by caseylooper; 06-22-2017 at 01:39 PM.

+ 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. [SOLVED] Need a Macro for two sheets, matching and looping, to copy data over.
    By jana_wire in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2017, 03:45 PM
  2. [SOLVED] Looping Through Worksheet Finding Matching Data
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2015, 05:28 PM
  3. Problem in Copy Pasting Autofilter Data from One Sheet to Another
    By shivboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-30-2014, 03:35 AM
  4. vba matching columns of data and copy/pasting to new row on different sheet
    By maybefrog in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-27-2011, 07:36 PM
  5. problem copying pasting and looping
    By danielzambello in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2009, 08:31 PM
  6. Looping and Matching Data Problem
    By l8sk8r in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2009, 07:33 AM
  7. Looping Calculated Data and Pasting to Another Location
    By starbwoy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-23-2008, 12:42 PM

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