+ Reply to Thread
Results 1 to 6 of 6

Looping the macro until it meet the condition.

  1. #1
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Looping the macro until it meet the condition.

    Hey,

    Please Login or Register  to view this content.
    Please help me to loop (repeat) above macro until Range("F1").Value => 1.

    I tried with integer but not success.

    Regards,
    ebincharles
    Last edited by ebin charles; 07-29-2015 at 03:36 AM.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Looping the macro until it meet the condition.

    Put your code into a Do Loop. I.e....

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Looping the macro until it meet the condition.

    Thanks for suggestion.

    But i am not getting exactly.

    Below is the full macro.

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Looping the macro until it meet the condition.

    So, you want to print once the value is F1 is >= 1 right?

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Looping the macro until it meet the condition.

    Yes you are right, I want to print when F1 is => 1.

    Many thanks it works.

  6. #6
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Looping the macro until it meet the condition.

    Not a problem.

    If this resolves your question, please mark the thread as Solved by clicking Thread Tools above your first post, and select "Mark your thread as Solved".

+ 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. Looping through data and finding cells that meet criteria
    By pbarry in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-12-2013, 10:11 PM
  2. Replies: 3
    Last Post: 09-12-2013, 06:50 PM
  3. Replies: 1
    Last Post: 05-11-2013, 02:58 AM
  4. Entire Row Blink when condition meet
    By waqarqrl in forum Excel General
    Replies: 9
    Last Post: 08-06-2012, 02:28 PM
  5. MIN of only cells that meet condition
    By jbc242 in forum Excel General
    Replies: 4
    Last Post: 06-27-2011, 12:18 PM
  6. Average cells which meet condition
    By raydaw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-02-2008, 11:26 AM
  7. Show if any cell has meet condition
    By Danielle123 in forum Excel General
    Replies: 4
    Last Post: 03-25-2008, 03:19 PM
  8. Prevent print macro unless condition meet
    By jimmy@9830 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-06-2007, 05:22 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