+ Reply to Thread
Results 1 to 4 of 4

Need first statement to Loop until "False"

  1. #1
    Registered User
    Join Date
    06-03-2009
    Location
    Saskatoon, Canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    Need first statement to Loop until "False"

    I have a worksheet built that obtains info from Sheet1(ACV) and enters it into Sheet2(Payment1), however when I run the process, only Line 10 fills and then it stops. I need to loop the first statement of the code, so that it fills all of column 1 until there is no info to fill then I assume the rest of the code will fill in the worksheet accordingly.

    If anyone can help and tell me how I need to change this code, I'd appreciate it.

    Here is the code I have now for Sheet2(Payment1), I have also attached the worksheet for reference.



    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by bruce2444; 07-28-2009 at 12:19 PM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Need first statement to Loop until "False"

    Not quite sure what you're doing, but see if this works for you. Place in a normal module (Insert > Module) rather than the sheet module. Why have you got two bits of code?
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-03-2009
    Location
    Saskatoon, Canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need first statement to Loop until "False"

    First and foremost thank you.

    The code revision you provided does exactly what I was trying to accomplish with my minimal knowledge of VBA and my attempt to butcher together a code I had read here. It almost worked, but the way you wrote it is much cleaner and works seamlessly.

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Need first statement to Loop until "False"

    My pleasure.

+ 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