Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Shape handles don't release after grouping some lines

0 views
Skip to first unread message

MathTeacher

unread,
Dec 31, 2009, 6:26:01 PM12/31/09
to
using Word 2000 on Vista;
Within VBA I plot a function by creating many (about 200) very short
straight lines to simulate the curved graph. I group the lines, then show
another userform, but the shape handles are still on all the short lines. If
I close the userform the handles disappear (and the lines are grouped), but I
need the handles to disappear with the userform still on the screen.

Here's the significant code. The ArrayOfLines contains all the names of the
individual lines:

ActiveDocument.Shapes.Range(ArrayOfLines).Select
GraphGroup = Selection.ShapeRange.Group.name

macropod

unread,
Jan 1, 2010, 10:41:23 PM1/1/10
to
Hi MathTeacher,

Have you tried collapsing the selection?

--
Cheers
macropod
[Microsoft MVP - Word]


"MathTeacher" <MathT...@discussions.microsoft.com> wrote in message news:CA08F536-5F8B-496F...@microsoft.com...

MathTeacher

unread,
Jan 6, 2010, 8:58:05 PM1/6/10
to
Thanks for the suggestion, but I have already tried that. I should have told
you that in my first posting.

I have managed to get the handles to release, but in a brute force way, by
selecting another shape already on the document.

ActiveDocument.Shapes.Range(GridGroup).Select 'try to get the shape handles
to release
Selection.Collapse

This has been working consistently, but it sure doesn't seem very elegant,
and if I need to release the handles but don't have another shape to select,
I'm afraid I might be dead in the water.

I'd still like to find a better way to release those shape handles.

"macropod" wrote:

> .
>

MathTeacher

unread,
Jan 6, 2010, 9:40:01 PM1/6/10
to
Oops! I just doublechecked and found that the code that selects another
shape in an effort to release the shape handles does NOT seem to be working
tonight. I don't know what's different. I also tried nudging the grouped
shape up and down with ".IncrementTop" but still with no success.

Once the sub that creates the grouped lines finishes, my userform has a
command button that calls a sub to "nudge" all the shapes up by a few pixels
using .IncrementTop -- when I do this, the handles disappear. If I make a
call to the sub that does the increment from WITHIN the sub that creates the
grouped lines, however, the handles don't disappear. The nudge up only works
after I have finished the sub doing the creating.

Maybe you have another suggestion, but in the meantime I'm going to strip
down the code to some bare basics to see if I can get a better "handle" on
this problem.

0 new messages