+ Reply to Thread
Results 1 to 4 of 4

Lookup, Copy and Paste using a loop

  1. #1
    Registered User
    Join Date
    03-21-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    90

    Lookup, Copy and Paste using a loop

    Hello,

    I have this worksheet that is for table assignments. In column A is the number of a table that the person in column B will be sitting at. In Column E and Column H I have the table number and each table will sit 10 people. With that being said, I need help creating a macro for example to populate under table 1 in column E all the names that will be sitting in table 1 and so on. I am drawing a blank here. I guess I can use some loop to go through to find the table assignment but I'm not sure of how to structure the loop. To make it easier I guess I can have 3 separate blocks of code for each table. It will be the same code but have different ranges for the pasting portion. I attached the file below.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Lookup, Copy and Paste using a loop

    Maybe this might help

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    03-21-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    90

    Re: Lookup, Copy and Paste using a loop

    Thanks Mike. I can't get the code to work. I get a run time error saying ActiveX component can't create object.

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551
    Are you running a PC or Mac CPU? What version of excel are you running?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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