Nilem - Thanks for that.
I thought the following be the best way to cover any size data list,
.Range("A1").CurrentRegion.Copy .Range("A1048576")
With .Range("A1048576").CurrentRegion
What would be the correct way to make sure it covers a data list of anysize......... or does the 200 refer to somthing else?
Private Sub UserForm_Initialize()
Application.ScreenUpdating = False
With Sheets(1)
.Range("A1").CurrentRegion.Copy .Range("A200")
With .Range("A200").CurrentRegion
x = .Value
.Clear
End With
End With
Application.ScreenUpdating = True
Label60 = UBound(x) - 1 & " Records found": TextBox2.SetFocus
CurRec = 2: Call ViewRecord
End Sub
Sub ViewRecord()
Dim j&
For j = 1 To UBound(x, 2)
Me("TextBox" & j).Value = x(CurRec, j)
Next j
End Sub
Confusion = Not 100% sure I understand how this works - I think it looks at the range - copies to computer memory (CurRec)
Then ViewRecord brings it back out........????
Bookmarks