Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default Looping till value is 1?

How can I make this loop correct:


Dim SCell As Range

Do
Range("J24").Select
Calculate
Loop Until SCell.Value = 1

where SCell has a formula like this "if(c5c11,1,0)"

Thanks,
Jo

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default Looping till value is 1?

Is that the entire code? It looks like it would loop infinitely unless
c5 or c11 change, somehow.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default Looping till value is 1?

On Oct 3, 4:08 pm, Dave O wrote:
Is that the entire code? It looks like it would loop infinitely unless
c5 or c11 change, somehow.


Yes, they do change as they have random number built in them......

Reply
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
I need till check for duplicate in a column. LO in Sweden Excel Discussion (Misc queries) 5 October 3rd 07 02:28 PM
Calculate numbers till 60 Krishna Kumar L Excel Discussion (Misc queries) 9 July 2nd 07 01:24 PM
Auto update till...... comotoman Excel Discussion (Misc queries) 3 October 14th 05 05:25 PM
SUM C IF B=Cap... Till Next B=Cap... cradino Excel Worksheet Functions 6 October 13th 05 12:45 AM
SUM C IF B=Cap...TILL NEXT B=Cap... cradino Excel Worksheet Functions 1 October 10th 05 01:05 AM


All times are GMT +1. The time now is 06:09 PM.

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

About Us

"It's about Microsoft Excel"