Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array Questions
I would like to be able to click a button and display the next element in an
array. Currently I have a loop that just cycles through the elements of the array on a single click of the button, here is my code Sub Array_Owners() Dim arrOwners As Variant Dim strCurrOwner As String Dim intX As Integer Dim intY As Integer Dim intCtr As Integer intX = 1 intY = 1 arrOwners = Sheet1.Range("S3:S12").Value For intCtr = 1 To 10 'MsgBox "On the Clock: " & arrOwners(intY, intX) Sheet1.Cells(1, 7) = arrOwners(intY, intX) intY = intY + 1 Next intCtr End Sub thanks in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Answers to questions posing more questions in a workbook | Excel Worksheet Functions | |||
View Questions and Answer to questions I created | Excel Discussion (Misc queries) | |||
meaning of : IF(Switch; Average(array A, array B); array A) | Excel Worksheet Functions | |||
Excel CHALLENGE...3 questions(indirect,rank,array formula)... | Excel Worksheet Functions | |||
Array Functions - Two Questions | Excel Worksheet Functions |