active doc question
Posted: 2014-05-03 06:53:40
I have an open document called "MYDOC". I would like to test whether it is active and if not make it active. I wrote
What's wrong with this? The macro doesn't complain. But whether MYDOC is actually active or not, I always get the answer that it is.
Code: Select all
$doc = Document.active
if $doc = "MYDOC"
prompt "$doc is active"
else
Document.setActive $doc
end