+ Reply to Thread
Results 1 to 1 of 1

copy loop array to a column

  1. #1
    Registered User
    Join Date
    05-20-2015
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    3

    copy loop array to a column

    Hello, I'm trying to make a macro for updating a source list. Sheet1 has a list of items with different attributes (attributes are listed in column B, separated by commas). All these attributes are also listed in column A on Sheet2, each unique attribute in its cell (for reference, as a "Glossary").
    I want to have a macro which, when run, will analyze Sheet1 column B for attributes that are not listed in column A of Sheet2, add them to that column and paint them red.
    I have come up with a code which does it, with attributes from column B of Sheet1 stored in an array. Array is temporary copied to column A of Sheet3 and used as a reference for pasting data into Sheet2.
    The only problem I have is that the array is a loop and it copies only the last instance of the loop into Sheet3, overwriting all the previous loops.
    Can someone help me deal with that?
    See attached file (module 2, sub updt).
    Here's the code:

    Please Login or Register  to view this content.
    *****issue resolved here: http://www.mrexcel.com/forum/excel-q...ay-column.html*****
    Attached Files Attached Files
    Last edited by raufbold; 05-25-2015 at 06:07 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] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  2. [SOLVED] Loop-copy cell values from a row, and then copy them into a column
    By vukovicnikola in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2012, 06:03 AM
  3. Last Used Column in Loop Data Copy
    By gsurge in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2011, 01:29 PM
  4. Replies: 1
    Last Post: 05-06-2011, 03:08 AM
  5. Copy in a loop down column
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-21-2010, 05:57 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