How can i move the scroll to a certain shape?

B

beerka

Windows XP SP3

Visual Studio 2008 SP1

Visio 2003 SP3


How can i move the scroll to a certain shape?

I tried to use this:

fooshape.Application.ActiveWindow.ScrollViewTo(x,y);

where x, y are the shape's PinX and PinY property values.

But this code jumps to wrong place...
 
J

JuneTheSecond

Hi,
x and y need to be in inches,
for example
x=fooshape.cells("pinx")
or
x=fooshape.cells("pinx").result(visinches),
but
x=fooshape.cells("pinx").result(millimeters) leads to wrong place.
 

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