Methinks that if the list has headers, you need a way to have X loop to start at 1 instead of starting at zero, and increase the count by 1?
EDIT - to explain further
Code:
X = Me.List2.ListCount
y = Abs(List2.ColumnHeads)
For X = y To X - 1
Me.List2.Selected(X) = True
Next
because if headers are used, the list count grows by 1. Thus a 4 item listcount is 5 but there are only 4 items to be selected.
Last edited by Micron; 08-24-2025 at 10:36 AM.
Reason: added info
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.