ActiveWindow.Select throws an error...

M

Mac

This cal:
Call ActiveWindow.Select(remoteShp, visSelect)

gives me an 'Inappropriate target object for this action' error. The
remoteShp object has been properly (I guess) assigned before by:
Set remoteShp = cnct.FromSheet.Connects(1).ToSheet

I really don't see where there might be problem...ahhh...why me!!!
 
M

Mac

Solved!!!
So for anyone interested: this thing happens if you try to programatically
select a shape which is a sub-shape of a group, so in my case I had to go up
one level and get the ContainingShape of the ToSheet shape..
Now it seem pretty obvious to me but at first the text of the message was
really confusing.
 
Top