Help!

Shape handles don't release after grouping some lines

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Drawing Graphics RSS
Next:  Spell Check Meomory  
Author Message
MathTeacher
External


Since: Dec 31, 2009
Posts: 3



PostPosted: Thu Dec 31, 2009 3:26 pm    Post subject: Shape handles don't release after grouping some lines
Archived from groups: microsoft>public>word>drawing>graphics (more info?)


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
Back to top
macropod
External


Since: Jan 10, 2009
Posts: 157



PostPosted: Fri Jan 01, 2010 11:10 pm    Post subject: Re: Shape handles don't release after grouping some lines [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi MathTeacher,

Have you tried collapsing the selection?

--
Cheers
macropod
[Microsoft MVP - Word]


"MathTeacher" wrote in message
> 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
>
Back to top
MathTeacher
External


Since: Dec 31, 2009
Posts: 3



PostPosted: Wed Jan 06, 2010 5:58 pm    Post subject: Re: Shape handles don't release after grouping some lines [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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:

> Hi MathTeacher,
>
> Have you tried collapsing the selection?
>
> --
> Cheers
> macropod
> [Microsoft MVP - Word]
>
>
> "MathTeacher" wrote in message
> > 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
> >
> .
>
Back to top
MathTeacher
External


Since: Dec 31, 2009
Posts: 3



PostPosted: Wed Jan 06, 2010 6:40 pm    Post subject: Re: Shape handles don't release after grouping some lines [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.
"MathTeacher" wrote:

> 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:
>
> > Hi MathTeacher,
> >
> > Have you tried collapsing the selection?
> >
> > --
> > Cheers
> > macropod
> > [Microsoft MVP - Word]
> >
> >
> > "MathTeacher" wrote in message
> > > 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
> > >
> > .
> >
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Drawing Graphics All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum