The attached files were tested in Excel 2003. You may be able
to use some of the methods in your application. The code behind
the form opens specific workbooks, where the file name starts
with "House", gets all the data and copies back into a "Workspace"
sheet, in the workbook where the code and form reside. A combo box
is populated with a list of real estate properties, and when you
choose a property, another combo is filled with associated
client names. Click OK and the data for the specific property
and client is copied to the main worksheet from the Workspace sheet
and the form closes.
I hope this runs in your version of Excel, and it may not
apply to your application, but could be useful in learning
how workbooks can be opened and data retrieved in VBA code.
I am posting just the form Activate event code. If you decide
to test it, copy all three files into the same folder and open
Master Template.xls.
Bookmarks