A alaric Registered User. Local time Today, 16:26 Joined Sep 6, 2004 Messages 50 Oct 17, 2004 #1 Hi, I want to build my counter to count like above number sequence? doubling the previous value how to do this in vba? any hint or tips thx in advance Al Last edited: Oct 17, 2004
Hi, I want to build my counter to count like above number sequence? doubling the previous value how to do this in vba? any hint or tips thx in advance Al
W WayneRyan AWF VIP Local time Today, 15:26 Joined Nov 19, 2002 Messages 7,122 Oct 17, 2004 #2 alaric, Code: Dim i As Long Dim j As Long For i = 0 to 20 j = 2 ^ i Next i Wayne
2 24sharon Registered User. Local time Today, 07:26 Joined Oct 5, 2004 Messages 147 Oct 17, 2004 #3 and this vba code give you all the numbers Code: Dim i As Long Dim j As String For i = 1 To 20 j = j & "," & 2 ^ i Next i j = Right(j, Len(j) - 1) MsgBox j
and this vba code give you all the numbers Code: Dim i As Long Dim j As String For i = 1 To 20 j = j & "," & 2 ^ i Next i j = Right(j, Len(j) - 1) MsgBox j
A alaric Registered User. Local time Today, 16:26 Joined Sep 6, 2004 Messages 50 Oct 18, 2004 #4 Thank you both! it works Al