Hi all,
I have a range of values in a worksheet that the user inputs a value. Here’s my question, I don’t know where on the sheet this range is, it changes every day. What I would like to able to do is have the user input the data, and another user change the background colour to indicate it’s the status of the data, in the unknown range.
What I would like to accomplish is this, if the first name in the array is always the same(title), how would I first find that array of information? THEN display the information like I have here in this sub? Is there a built in function that I could use for this to find it?
Dim arrNames()
Range(Cells(4, 3), Cells(4, 3)).Select
Do Until Range(Cells(4 + I, 3), Cells(4 + I, 3)).Value = “”
ReDim Preserve arrNames(I)
arrNames(I) = Range(Cells(4 + I, 3), Cells(4 + I, 3)).Value
I = I + 1
Range(Cells(4 + I, 3), Cells(4 + I, 3)).Select
Loop
UserForm1.ListBox1.Clear
For I = 0 To UBound(arrNames)
UserForm1.ListBox1.AddItem arrNames(I)
Next
UserForm1.Show
End Sub
Thanks, Darryl.