J
Jeff Roper
I have just started using Excel 2003 and VBA in Excel. So I hope no one
laughs at me. Ok I have a worksheet that I am working with that changes
a percentage (increases by .001%) so that two numbers equal each other.
The Percent amount starts at 1% (which doesn't need to be shown in the
code).
I've been working with this subroutine:
Sub AddPercentage()
Dim NumberA, NumberB, Percent As Integer
Number1 = Range("I16")
Number2 = Range("K16")
Percent = Range("L7")
If Not Number1 = Number2 Then
Percent = Percent + 0.00001
End If
End Sub
Can someone help me out here? I would really appreciate it.
laughs at me. Ok I have a worksheet that I am working with that changes
a percentage (increases by .001%) so that two numbers equal each other.
The Percent amount starts at 1% (which doesn't need to be shown in the
code).
I've been working with this subroutine:
Sub AddPercentage()
Dim NumberA, NumberB, Percent As Integer
Number1 = Range("I16")
Number2 = Range("K16")
Percent = Range("L7")
If Not Number1 = Number2 Then
Percent = Percent + 0.00001
End If
End Sub
Can someone help me out here? I would really appreciate it.
