+ Reply to Thread
Results 1 to 2 of 2

Loop through cells to match a variable

  1. #1
    Registered User
    Join Date
    04-29-2010
    Location
    trowbridge
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    21

    Unhappy Loop through cells to match a variable

    Ive been hitting excel pretty hard the past few days and now im official stopped dead!!

    what im trying to do is this;

    loop through column "AL", which will have someone's initials in it, i have these initials in a variable called "Initials" when it matches one it does a vlookup on a specific document dependant on who the initials belong to(hope your still following!) once this has been done it cycles down to the next row i.e. "AL2" and does the exact same thing.

    to my understanding this should of been simple!! but im having a really hard time getting to grips with the logic of it! i would upload the document for you to see what i mean but unfortunately all the information is confidential as its something im doing for my workplace.

    if you can think of a better idea let me know or even better if you think you know what im on about and can give me an example that would be BRILL!!!

    thanks in advance for all and any help!!

    p.s im actually using excel 2010 but that shouldn't make much difference with VB (should it lol).

    Liam

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

    Re: Loop through cells to match a variable

    "unfortunately all the information is confidential as its something im doing for my workplace."
    No one wants to see confidential information. Infact the forum rules reminding you to remove them from your data. What is required is a sample, which mimics the layout of your actual data. Remove all confidential information and replace them with dummy data.

    People are willing to help you if they could see a sample so that it would be easy to test the code.

+ 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. Replies: 6
    Last Post: 12-21-2012, 08:03 AM
  2. Why did an inner loop variable start overwriting the outer loop range suddenly?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2012, 03:24 PM
  3. Replies: 1
    Last Post: 07-14-2011, 01:57 PM
  4. Loop a column on Sheet1 and loop a row on Sheet2 to find a match
    By johnnywinter in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-13-2009, 02:09 PM
  5. [SOLVED] For Each ... Next loop - need to reference the loop variable
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2006, 01:15 PM

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