+ Reply to Thread
Results 1 to 4 of 4

My loop doesn't work why not

  1. #1
    Registered User
    Join Date
    12-05-2007
    Posts
    2

    My loop doesn't work why not

    My loop doesn't work. It has something to do with the placement of "do"

    I am trying to repeat this function to the end of the data.

    I also think the Range "b3", should be some kind of step down one.

    I have Excel 2000 (gulp)

    Please Login or Register  to view this content.
    Last edited by VBA Noob; 12-06-2007 at 04:23 AM.

  2. #2
    Registered User
    Join Date
    09-07-2007
    Posts
    43
    I hope i'm not stating in the obvious, but if you copy/pasted there's an apostrophe before the "do" part of the loop...which would cause it to not be recognized. Other than that, I would check to make sure that you're moving the selected cell correctly. at the end of the loop you're selecting the same cell (B3), so if C3 is empty, it'll stop running every time after one run. I think you may want to put in an

    ActiveCell.Offset(_,_)

    before your "Loop Until" statement so that the selected cell actually changes and doesn't just keep being B3...naturally you'll have to take out the Range("B3").Select

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    ljh66

    Welcome to excelforum

    Please read forum rules & wrap your VBA code

    A thread with the rules is available at the top of each forum or see links below

    If you do not understand the VBA code wrap instructions have a look at my last reply in this thread
    http://www.excelforum.com/showthread.php?t=583950
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Registered User
    Join Date
    12-05-2007
    Posts
    2

    Smile thank you so much

    Thanks a lot. I feel like I'm back in college and my computer guy friends are helping me.

    LJH

+ 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