My [ost]R[ecently][Use[d] application has been around for at least twelve years, and the basic concept - MRUse presents a drop-down list to the user, the user clicks on a file, and MRUse opens that file - has been working very well. In the example shown above I would like to open the Calendar.doc from T:\Blotter\, but only on the first use of the toolbar MRUse returns the first item on the listbox - the file Concordance.059.
I have issued logging statements to track this.
I load MSWord[2003] and regardless of which file I select, the logging on that first attempt always reports .ListIndex as being set to one - which is why, on the first attempt, I always open Concordance.059.
With Concordance.059 open, I immediately re-select my file Calendar.doc, and MRUse opens Calendar.doc
All subsequent uses of the listbox in the current MSWord session have the desired result - the .ListIndex has the correct value and the desired file is opened.
Only on the first use of the listbox after loading MSWord am I forced to open Concordance.059 and then re-select the desired file.
I will insert here the traditional disclaimer "I haven't changed anything related to the listbox"
If anyone can suggest a .ListIndex trick to sample the index and then discard it and re-sample it, I will give that a try.
If anyone wants to try running MRUse I can supply a copy and identify a suitable break-point in the code.
Thanks for any suggestions.
Chris
