I have some trouble when i used this code to run.. Can i someone give me some ideas to improve it? Thanks for your attention.
Sub Code()
Dim i As Integer
Dim a As Double
Dim Atan As Double
i = 43
If Cells(i, 1).Value = 0 Then
Cells(i, 6).Value = 0
Else
Do While Cells(i, 1).Value <> vbNullString
Cells(i, 6).Value = (Atn(-0.36 / (Cells(i, 1).Value * (-1.375))) / 2) * (180 / 3.141592654)
i = i + 1
Loop
End If
End Sub
Sub Code()
Dim i As Integer
Dim a As Double
Dim Atan As Double
i = 43
If Cells(i, 1).Value = 0 Then
Cells(i, 6).Value = 0
Else
Do While Cells(i, 1).Value <> vbNullString
Cells(i, 6).Value = (Atn(-0.36 / (Cells(i, 1).Value * (-1.375))) / 2) * (180 / 3.141592654)
i = i + 1
Loop
End If
End Sub
