+ Reply to Thread
Results 1 to 2 of 2

help with looping code

  1. #1
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    help with looping code

    hi, i have this piece of code in a SHARED workbook that i wish to loop, but do not know how to do it. what it is supposed to do is check whether the unique autopopulated value in textbox17 exist in the workbook column A. Example of the value is DVI-00120. This value will increase by 1 after users log in a sample. As this is a shared workbook, other users may have already used the value, and if left unchecked, will result in duplicate values.

    the code below works only when the value in the last row of column A is the same as textbox17. if for example, i am holding onto DVI-00120 while other users have already progressed to DVI-00125, the below code only adds 1 to DVI-00120, making it DVI-00121, which is duplicating what is already in column A. So, i need the code below to keep checking until an available number is not used, which in this example is DVI-00126.

    Sorry for the lengthy explanation

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    Re: help with looping code

    i solved it

+ 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] Code Not Looping
    By Wheelie686 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2016, 01:41 PM
  2. Looping this code
    By HarryGreenwood in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2015, 09:04 AM
  3. Help with looping of vba code
    By thaykhov in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2014, 11:38 PM
  4. Looping code
    By amartino44 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2013, 10:14 AM
  5. [SOLVED] Trying to change verbose looping code into more efficient (and shorter) code please
    By dawatcher in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-03-2013, 07:43 AM
  6. [SOLVED] Code for Looping a VBA
    By Jiptastic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2012, 08:38 PM
  7. Help with Looping Code
    By JimMay in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2006, 10:45 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