Programming the lasso selection tool

J

Jacco

Hi all,

I am looking for a way to select all shapes within a certain location.
These shapes will be in different layers, and the shapes on the page
(and within each layer) are not limited to the area that I want to
select. Basically, what I want is to replicate the lasso selection
tool in VBA, selecting all shapes that lie within the are defined by
(X1, Y1) - (X2 - Y2). Has anybody ever tackled this before?

Cheers,

Jacco
 
J

JuneTheSecond

You might use Shape.SpatialNeighbors property.
You can draw rectangular by (x1,y1) and (x2,y2), or any other closed curves
for a trup. you could analyse which shapes are included in your trap,
Help for SpatialNeighbors has good example code.
 

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