Positioning of UserForm via VBA

A

Andy

I am trying to position a user form adjacent to a shape. I have taken
the PinX and pinY of the shape and converted these to windows
coordinates. However, my user form appears in the wrong place.

My screen resolution is 1280 x 1024. If my shape is in the middle of
the screen, i get approximately the right windows coordinates, allowing
for scroll bars etc. But my userform appears further right and lower.
If I move my userfrom th the right hand edge of the screen, It has a
left coordinate of 960, not around 1024.

Am I missing something here, shouldn't the left coordinate be relative
to the active window. The Visio window fills the screen, with no
rulers, shape windows etc.

Thanks in advance
 

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