VBA code help

VBA code help, variables?

hey guys i've been working on this code for a while and can't seem to get the right answer, it keeps stopping where one of the variables im trying to find is zero but i want it to calculate that still, i just want it to stop once it finds a blank cell in one of the variables like the last cell which is normally blank, what can i do to fix this?

Sub power()
Dim i As Double
Dim j As Double
i = 3
While Cells(i, 6) <> 0
Debug.Print Cells(i, 6)

Cells(11, 2) = Cells(i, 6).Value
Debug.Print Cells(12, 2)
Cells(i, 8) = Cells(12, 2)
Debug.Print Cells(i, 8)
i = i + 1

Wend

En

More on hypeanswer.com

    More on Wikipedia

    Answers

      News

        Syndicate content