$$Excel-Macros$$ Re: need help with excel macro

2009-10-03 Thread RolfJ
Assuming that you already populated the listbox (named ListBox1) with the file path names of Excel workbooks you could place this ListBox click event handler in the VBA module of the UserForm containing your listbox: Private Sub ListBox1_Click() If Dir(ListBox1.Value) <> "" Then Workbooks.Ope

$$Excel-Macros$$ Re: need help with excel macro

2009-10-03 Thread RolfJ
Assuming that you already populated the listbox (named ListBox1) with the file path names you would need to add this ListBox click event handler to the VBA module of the UserForm containing the listbox: Private Sub ListBox1_Click() If Dir(ListBox1.Value) <> "" Then Workbooks.Open (ListBox1.Va