Sure for a listbox just use the "item names" property to store and retrieve the filenames which will be a 1-D array and the value of the listbox to index the array then do the rest as you have already done.
For a table you'll need to index the 2-D array.
I've attached an example using the listbox.
_______________________________________
Systems Test Engineer
Certified LabVIEW Architect (CLA)