refer to unknown window name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Im writing a code for a workbook which will freqently be copied and renamed.

In part of the code for this workbook it goes outside the workbook and then
has to reselect it

Windows("????????").Activate

How can I get it to know the name of the workbook the code is in?

Thanks,

Ciara
 
but the thing is i go out of the workbook - into another excel file - and
then go back into the orignal one - but i dont' know the originals name!
 
What do you mean by "going out"? If it is just "activate" then
Thisworkbook should be OK.
As I know Thisworkbook means the workbook the code is running from no
matter what and where it is doing.
 

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