Getting back to file A from file B

  • Thread starter Thread starter Gordon Humphreys
  • Start date Start date
G

Gordon Humphreys

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?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top