LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default returning back to loop check condition without completing theloop

On Mar 18, 8:30*pm, Dave Peterson wrote:
Do While some_condition = TRUE

* * * '-----Some Code----

* * * *If this_condition = TRUE then
* * * * * *'do nothing
* * * *else
* * * * * *'some code here
* * * *End If

* * * *'no code here!!!!
loop





ashish128 wrote:

Hi All,


I apologise if this question has been posted before but to be true, I
could not find it.


I have a very little question. Please see below


Do While some_condition = TRUE


* * * '-----Some Code----


* * * *If this_condition = TRUE then


* * * * * * * ' Here I would like to send the execution back to "Do
While some_condition = TRUE"
* * * * * * * ' and bypass all succeeding lines of code


* * * *End If


* * * '-----Some Code----


loop


Kindly let me know if this is supported / possible in VBA.


Regards


Ashish


--

Dave Peterson- Hide quoted text -

- Show quoted text -


Dear Dave,

My question is to break the process flow in middle of a loop and
restart it from the loop condition checking.

Regards
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loop through column(s) to check values, perform action based on check ward376 Excel Programming 4 November 6th 07 03:21 PM
Add a second condition to loop Casey[_112_] Excel Programming 5 July 6th 06 11:59 PM
Loop or condition? To check down the rows KH_GS Excel Programming 4 March 29th 06 09:42 AM
Using For loop to condition bundyloco[_6_] Excel Programming 1 August 19th 05 07:25 PM
two-condition loop Jamie Martin[_2_] Excel Programming 0 October 6th 03 11:47 PM


All times are GMT +1. The time now is 10:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"