Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default text in shape group

Please help:

I grouped several shapes into a group, which contains a label. I want to
use this group shape as a template to dynamically duplicate it and assign a
different text to the label item inside the group shape.

for example, "Gshape" is group shape contains a label, a circle and a
rectangle.

the following will cause error:
Gshape.groupitems(1).TextFrame.Characters.Text = "new text"
(assuming item 1 is the label, this is known when you group the shapes)

Thanks.


--
pshen
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default text in shape group

Hi pshen

The only way I have ever been able to change text in a group item shape is
first to ungroup. Change the text then regroup.

Regards,
Peter T


"pshen" wrote in message
...
Please help:

I grouped several shapes into a group, which contains a label. I want to
use this group shape as a template to dynamically duplicate it and assign

a
different text to the label item inside the group shape.

for example, "Gshape" is group shape contains a label, a circle and a
rectangle.

the following will cause error:
Gshape.groupitems(1).TextFrame.Characters.Text = "new text"
(assuming item 1 is the label, this is known when you group the shapes)

Thanks.


--
pshen



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default text in shape group

Hi pshen,
in your group you find "groupitems", and there are "item"s. And there you
find "name" for the textbox' name and "alternative text" for the text in the
box. But look at all in this attribute. Don't forgot "Textbox: " previous the
text.
regards, and excuse my terrible english
andre

"Peter T" wrote:

Hi pshen

The only way I have ever been able to change text in a group item shape is
first to ungroup. Change the text then regroup.

Regards,
Peter T


"pshen" wrote in message
...
Please help:

I grouped several shapes into a group, which contains a label. I want to
use this group shape as a template to dynamically duplicate it and assign

a
different text to the label item inside the group shape.

for example, "Gshape" is group shape contains a label, a circle and a
rectangle.

the following will cause error:
Gshape.groupitems(1).TextFrame.Characters.Text = "new text"
(assuming item 1 is the label, this is known when you group the shapes)

Thanks.


--
pshen




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
my curser changed from arrow shape to a cross shape???? bj New Users to Excel 1 February 5th 07 02:47 PM
Change Shape Text rhani111 Excel Worksheet Functions 2 July 14th 06 02:31 PM
Get the name of a group given the reference to a shape within the group Andrew[_16_] Excel Programming 5 January 1st 04 01:08 AM
Reference oleobject within shape group Andrew[_16_] Excel Programming 4 December 24th 03 02:31 AM
shape grouping text Tom Ogilvy Excel Programming 0 July 15th 03 09:01 PM


All times are GMT +1. The time now is 03:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"