In your example you're incrementing both at the same time. In your code you're incrementing y for each value of x. Which way do you want to do it?
If the code is correct, try thisIt producesCode:Dim x As Single Dim y As Single Open "D:\data.txt" For Output As #1 For x = 2.9 To 2.95 Step 0.01 For y = 101.75 To 101.8 Step 0.01 Print #1, Format$(x, "#.00") & " " & Format$(y, "###.##") '& ";" & "60" no idea what this is for Next y Next x Close #1Code:2.90 101.75 2.90 101.76 2.90 101.77 2.90 101.78 2.90 101.79 2.91 101.75 2.91 101.76 2.91 101.77 2.91 101.78 2.91 101.79 2.92 101.75 etc.




Reply With Quote