View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
mangesh_yadav[_311_] mangesh_yadav[_311_] is offline
external usenet poster
 
Posts: 1
Default How do you loop NON-SEQUENTIALLY?


Try this:

Private Sub CommandButton1_Click()

myArr = Array(1, 3, 11, 12, 30, 40, 99)

For i = 1 To 7
For j = 0 To UBound(myArr) - 1
Cells(myArr(j), "a") = "testing"
Next
Next
End Sub


Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=378912