ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Getting back to file A from file B (https://www.excelbanter.com/excel-programming/390895-getting-back-file-file-b.html)

Gordon Humphreys[_2_]

Getting back to file A from file B
 

How do I store the name of a currently active file [one of several]
before activating another file containing macros and some data stored in
its cells, so that I can return to the first file for entering more
data?


*** Sent via Developersdex http://www.developersdex.com ***

Zone[_3_]

Getting back to file A from file B
 
This seems a simple matter. Maybe I'm not understanding your
situation.
Dim FirstBook as string
FirstBook=activeworkbook.name
'your stuff here
workbooks(FirstBook).activate

James

On Jun 7, 10:39?am, Gordon Humphreys
wrote:
How do I store the name of a currently active file [one of several]
before activating another file containing macros and some data stored in
its cells, so that I can return to the first file for entering more
data?

*** Sent via Developersdexhttp://www.developersdex.com***





All times are GMT +1. The time now is 07:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com