Please forgive the ambiguity! Here is the situation. We create new Excel 2003 data files every day for funeral arrangements. The structure of these files is identical, so for instance the first name field is always Data!E1 ("Data" is the name of the worksheet in this multi-worksheet file). The way the file is named is "nnnnnnnn lastname, firstname.xls" (the n's are the account number). Each file therefore has a different filename, but the data fields are always in the same place.
So, what I need to be able to do is, with one particular datafile open, for example "20098765 Smith, John.xls" I need to pass this filename as a variable (because it is different for every person's file), as I click a link within it to open my form.
When my form file (also Excel) opens, then, it will take the filename variable and populate its fields with data from that file. The cell reference (Data!E1) will always be the same, but the filename from which the data is passed will be the name of the open file, which as far as the form is concerned, will vary.
To look at it from the point of view of the Form, when the form is open, it needs to know which Data file to use when it pulls the information for its "First Name" field. In that field I need a reference to [variableOpenDatafile]Data!E1. This form will be opened by a link within the Datafile containing the information.
To give an example, I have an Excel form called "VA Form.xls", and this file is NOT open. At 9:00 AM, I have just finished creating the data file called "20091234 Smith, John.xls", and now I am going to click a link within that file to open "VA Form.xls". When this Form opens, I want to see the first name field with the name "John" that comes from the open data file at cell "Data!E1", along with a few other pieces of data. I will then print that form out and close both files.
Then at 10:00 AM, my co-worker finishes creating a data file called "20091235 Jones, Stella.xls", and now he will click a link within that file to open the same "VA Form.xls" that was opened earlier. When the Form opens this time, he needs to see the first name field with the name "Stella" that comes from this open data file.
Etc. Does this help? Thank you! -Ed