LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default nested while not working any more...


This works in Excel 2002, but fails at the second "while" in Excel
2003....


Range("n50").Select
target = -3
j = 12
K = 36
Cells(j, 1).Select
Reading = ActiveCell
Cells(j, 4).Select
ActiveCell.FormulaR1C1 = Reading
Cells(j, 1).Select
While ((target <= -2.5) And (j < 500))

While (((Reading - target) < 0) And (Not (Reading = "")))
j = j + 1
Cells(j, 1).Select
Reading = ActiveCell
Cells(j, 3).Select
ActiveCell.FormulaR1C1 = Reading
Cells(j, 2).Select
CLD = ActiveCell
Cells(j, 1).Select

Wend
Cells(K, 18).Select
ActiveCell.FormulaR1C1 = CLD
K = K + 1
target = target + 1
j = 12
Wend


________________________________________________
TIA,
Crim


--
criminalspeed
------------------------------------------------------------------------
criminalspeed's Profile: http://www.excelforum.com/member.php...o&userid=37909
View this thread: http://www.excelforum.com/showthread...hreadid=574383

 
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
Nested IF isnt working right..Why? Curtis Excel Worksheet Functions 1 October 30th 09 10:08 PM
Nested IF not working..... Patrick Excel Worksheet Functions 5 October 1st 08 04:18 AM
Nested IF Function not working Paula Excel Worksheet Functions 11 July 4th 08 03:31 AM
Outlining in nested subtotals not working Debi C Excel Worksheet Functions 1 October 28th 06 07:57 PM
Nested IF(AND is not working Todd F. Excel Worksheet Functions 13 June 24th 05 10:20 PM


All times are GMT +1. The time now is 02:52 PM.

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"