+ Reply to Thread
Results 1 to 6 of 6

how to end for/next loop?

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    PH
    MS-Off Ver
    2013
    Posts
    31

    how to end for/next loop?

    Need help to stop the procedure if the next row is blank:

    here's the code:

    Please Login or Register  to view this content.

    thanks in advanced!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to end for/next loop?

    Use this inside the for statement

    Please Login or Register  to view this content.
    Change this to your actual cell

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    06-18-2014
    Location
    PH
    MS-Off Ver
    2013
    Posts
    31

    Re: how to end for/next loop?

    Please Login or Register  to view this content.
    it says compile error

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to end for/next loop?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-18-2014
    Location
    PH
    MS-Off Ver
    2013
    Posts
    31

    Re: how to end for/next loop?

    It worked! Thanks.

  6. #6
    Registered User
    Join Date
    06-18-2014
    Location
    PH
    MS-Off Ver
    2013
    Posts
    31

    Re: how to end for/next loop?

    I have another problem when i run the code, it converts to pdf with the filename base on the dropdown menu but the data is not the one for that name the data content is the content of the next row.

    Thanks

+ 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. HOW TO: Pause loop, fix error on a popup UserForm, continue loop
    By AndyMachin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-19-2014, 04:37 PM
  2. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  3. 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
  4. Macro Loop Broken. Detects Max but doesn't continue loop
    By herchenbach in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2011, 12:17 PM
  5. 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

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