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: 36
Default Does Excel have a counting glitch? or is it more likely me?

(Win xp - Excel 2003)


Hi all,

This code (on my machine) runs correctly until the variable myFigure
reaches 1.13 then just loops as if there is no cell value with 1.13.

It also does it at 1.38 if you start with the variable myFigure at more
than 1.13. Also at 1.63 if you start at 1.39.

This is confusing the hell out of me.

Can anyone shed light on this for me.

tia

Ron



Sub FirstRun()

Dim x As Integer
Dim myFigure As Double 'also tried just Dim myFigure
' Application.ScreenUpdating = False

myFigure = 1.05



Range("i3").Select

For x = 0 To 36

ActiveCell.Value = myFigure


Range("i2").Select

Do Until ActiveCell.Value = myFigure
ActiveCell.Offset(1, 0).Select
Loop

ActiveCell.Offset(0, 1).Value = "Line " & x
ActiveCell.Offset(1, 0).Select

myFigure = myFigure + 0.01

Next
End Sub
 
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
Excel Title Bar Glitch Ryan Excel Discussion (Misc queries) 0 March 26th 08 08:07 PM
Anoying Excel 2007 glitch teepee Excel Discussion (Misc queries) 0 April 3rd 07 12:03 AM
Another odd VBA glitch in 2007 teepee Excel Discussion (Misc queries) 4 April 1st 07 09:16 PM
Excel function glitch? bdog Excel Worksheet Functions 1 April 11th 06 06:01 PM
Excel Program Glitch? Todd Huttenstine Excel Programming 5 June 10th 04 05:36 PM


All times are GMT +1. The time now is 12:57 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"