G
Guest
Hi,
From access an XLS template is opened and saved under a new name.
If it is possible, how do I do it question follows.
How do I get an explorer window or equal to open so that the user can find
and select the file - get its path. The file then becomes part of the
programme so that VBA can select cells and add to an access recordset for
latter merge to word.
Originally the location was hard wired so that the following was possible;
Set xlbook = xlapp.Workbooks.Open("C:\Database\25KgPowder\2TPH.xls")
Where the xl sheet was opened and then code selected a range etc and closed
the sheet invissibly.
Now they want
Set xlbook = xlapp.Workbooks.Open (path found from explorer window or equal)
Any ideas??????
From access an XLS template is opened and saved under a new name.
If it is possible, how do I do it question follows.
How do I get an explorer window or equal to open so that the user can find
and select the file - get its path. The file then becomes part of the
programme so that VBA can select cells and add to an access recordset for
latter merge to word.
Originally the location was hard wired so that the following was possible;
Set xlbook = xlapp.Workbooks.Open("C:\Database\25KgPowder\2TPH.xls")
Where the xl sheet was opened and then code selected a range etc and closed
the sheet invissibly.
Now they want
Set xlbook = xlapp.Workbooks.Open (path found from explorer window or equal)
Any ideas??????