+ Reply to Thread
Results 1 to 7 of 7

Change "Do Until"

  1. #1
    Registered User
    Join Date
    03-01-2009
    Location
    Woodmere, New York
    MS-Off Ver
    Excel 2007
    Posts
    31

    Change "Do Until"

    Hi Guys,

    I have a Macro that finds in Column F duplicates and adds an Alpha Character (A-Z) to the last right position in the filed.(1-12 Alpha/Numeric) .

    It's set to check all rows until a specific number of rows are reached. The current code does this until intCount and intRow equals 1500. The number of rows vary in each file.

    Can anyone help in revising this code to do until the first blank in Column D.
    Here is the part of the Macro that performs the above:

    Please Login or Register  to view this content.
    Thank you in advance
    Last edited by tallguy6354; 05-11-2009 at 06:26 PM. Reason: Trying to add Tags to Code

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Change "Do Until"

    I can't test this
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    03-01-2009
    Location
    Woodmere, New York
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Change "Do Until"

    Thanks for the help. When i replace your macro code with mine I get an error at (DupNo) in SubFix Dups.

    I have tried to attach my xls file to enable you to test your fix.
    Attached Files Attached Files

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Change "Do Until"

    See if this works
    Please Login or Register  to view this content.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Change "Do Until"

    This might be neater as well
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-01-2009
    Location
    Woodmere, New York
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Change "Do Until"

    Thank you,

    Works fine now.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Change "Do Until"

    Or ...
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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