I have a really simple OC function that I am running from the script window. It has a body basiclaly like this:
void merge(string strSource, string strTarget){
Worksheet wksSource;
Worksheet wksTarget;
wksSource.Attach(strSource);
wksTarget.Attach(strTarget);
// do some other stuff.
wksSource.Destroy();
}
The wksSource.Destroy(); line has the desired effect of deleting the source worksheet, but it aslo seems to remove the focus from the script window. Is this by design?
How can I run this code and still have a blinking cursor in the script window waiting for new input when it is done?
Thanks for any help.
J...