Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm a VBA begginer and i've recently faced the following problem:
Suppose we have the following sub: Sub test() Dim i For i = 0.6 To 0.8 Step 0.01 MsgBox (i) Next i End Sub Surprisingly, in the above loop the last value (0.8) does not appear. On the contrary, in the following sub (step is 0.1 instead of 0.01) Sub test2() Dim i For i = 0.6 To 0.8 Step 0.1 MsgBox (i) Next i End Sub everything is ok. How do you explain that? -- With respect, A.M. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Loop Problem | Excel Programming | |||
Excel 97 stuck in calculation loop - maximum cells problem? | Excel Programming | |||
Excel VBA - loop code problem | Excel Programming | |||
Dynamic execution of a loop | Excel Programming | |||
Excel VBA - Help with a loop, compare, delete problem | Excel Programming |