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.
 

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

Top