set variable to activeworkbook

  • Thread starter Thread starter davegb
  • Start date Start date
D

davegb

A question occurred to me about setting a variable to the active
workbook. If I set the variable equal to "Activeworkbook", then later
activate another workbook, does the variable now refer to the current
active workbook, or to the same workbook as when it was assigned?
 
Hi Dave,

the variable is set to what it was set. (same workbook as it was
assigned).

You could easily test it yourself.

Regards,
Ivan
 
Ivan said:
Hi Dave,

the variable is set to what it was set. (same workbook as it was
assigned).

You could easily test it yourself.

Regards,
Ivan

Thanks for your reply, Ivan. I thought about testing it, but was afraid
that it might vary under differing conditions. If so, a simple test
might not give totally accurate results.
 

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