Alex-Weazel
New Member
- Joined
- Jun 15, 2009
- Messages
- 9
Hello All, first post, be gentle 
____
Scenario: Book1 is a form. Book 2 is a data storage file.
I have a macro that copies the values input into Book1 into a single line within Book2. The macro then also needs to Save As Book1 but with the value of a specific cell (Say, ABC.xls).
(Not a problem so far...)
My problem arises where my users want to occasionally go back to a saved file (ABC.xls), update some values and resend the data to Book2. Of course my storage macro references "Book1.xls" whenever it needs to switch back to copy the cells so the procedure stops.
Is there a function or procedure that stores the Active Workbook's filename so that the code can reference that value and not use Windows("Book1.xls").Activate as it does at the moment?
Thanks for any insights, Alex.

____
Scenario: Book1 is a form. Book 2 is a data storage file.
I have a macro that copies the values input into Book1 into a single line within Book2. The macro then also needs to Save As Book1 but with the value of a specific cell (Say, ABC.xls).
(Not a problem so far...)
My problem arises where my users want to occasionally go back to a saved file (ABC.xls), update some values and resend the data to Book2. Of course my storage macro references "Book1.xls" whenever it needs to switch back to copy the cells so the procedure stops.
Is there a function or procedure that stores the Active Workbook's filename so that the code can reference that value and not use Windows("Book1.xls").Activate as it does at the moment?
Thanks for any insights, Alex.
