+ Reply to Thread
Results 1 to 3 of 3

VBA Loop Through List - Array & Check?

  1. #1
    Forum Contributor
    Join Date
    08-22-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    161

    VBA Loop Through List - Array & Check?

    Hi everyone,

    I have a spreadsheet that has a column with "tasks" in them, there are spaces between some and not others etc (not my data set)

    Is there a way of running some VBA that looks at each task within that column against a "master list" and have it return the differences? (If there are any - maybe a msgbox that lists the differences?)

    I've attached a file that just has the alphabet on different rows and a master which has more of it.

    Thanks in advance!
    Attached Files Attached Files
    Last edited by jsneak; 05-29-2019 at 12:49 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: VBA Loop Through List

    What do you mean by differences?

  3. #3
    Forum Contributor
    Join Date
    08-22-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    161

    Re: VBA Loop Through List - Updated Code inside

    So on the check sheet it goes down to R, but the master sheet goes all the way to Z. The msg box would list S - Z as missing.

    I'm not sure if you can save them in an array or something? I hope this makes sense?

    **Update - Found out how to list differences in msgbox**

    So i've found a bit of code that does what i want - no idea how so if someone could explain it id be very grateful!

    That being said, the code doesnt work with blank rows (which my data has) Can any shed some light on this, maybe adapt the code to skip the blanks?

    Please Login or Register  to view this content.
    Last edited by jsneak; 05-29-2019 at 02:26 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. Loop through a list
    By sonyat810 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2019, 01:53 PM
  2. Replies: 13
    Last Post: 07-08-2018, 05:22 AM
  3. [SOLVED] VBA loop through list
    By neilkotze in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-10-2015, 10:08 AM
  4. [SOLVED] loop through data list
    By a.hudrea in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-23-2014, 08:15 AM
  5. Loop in list and fill in other list
    By theconscience in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-31-2013, 04:33 AM
  6. loop through all sheets in a list
    By Iamkar33m in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-09-2007, 04:35 PM
  7. Loop through drop down list
    By moglione1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2006, 11:17 AM

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