Hi everybody,
What is the difference between AddLabel and AddTextbox ? It seems both
prduce the same results. Are there any pros and cons for choosing any of them?
IF we have both methods there must be a reason for it but I can't fingure
out in any given case which method is better.
Any thoughts?
--
Best regards,
Edward

Re: Difference between AddLabel and AddTextbox by Steve

Steve
Fri Aug 15 15:23:34 CDT 2008

In article <B575D674-B847-44DC-A4B5-53805C510D23@microsoft.com>, Edward wrote:
> Hi everybody,
> What is the difference between AddLabel and AddTextbox ? It seems both
> prduce the same results. Are there any pros and cons for choosing any of them?
> IF we have both methods there must be a reason for it but I can't fingure
> out in any given case which method is better.

The user can edit the text in the textbox control at run time.
They can't edit a label.



-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Live and in personable in the Help Center at PowerPoint Live
Sept 21-24, San Diego CA, USA
www.pptlive.com


Re: Difference between AddLabel and AddTextbox by Robert

Robert
Sat Aug 16 00:35:00 CDT 2008

Thanks Steve. What do you mean by run time? Do you mean during slide show?
I have added both text box using AddTextbox and label using AddLabel and in
normal view user can edit both and they look identical and share the same
formatting properties.

"Steve Rindsberg" wrote:

> In article <B575D674-B847-44DC-A4B5-53805C510D23@microsoft.com>, Edward wrote:
> > Hi everybody,
> > What is the difference between AddLabel and AddTextbox ? It seems both
> > prduce the same results. Are there any pros and cons for choosing any of them?
> > IF we have both methods there must be a reason for it but I can't fingure
> > out in any given case which method is better.
>
> The user can edit the text in the textbox control at run time.
> They can't edit a label.
>
>
>
> -----------------------------------------
> Steve Rindsberg, PPT MVP
> PPT FAQ: www.pptfaq.com
> PPTools: www.pptools.com
> ================================================
> Live and in personable in the Help Center at PowerPoint Live
> Sept 21-24, San Diego CA, USA
> www.pptlive.com
>
>

Re: Difference between AddLabel and AddTextbox by Steve

Steve
Sat Aug 16 11:58:14 CDT 2008

In article <3A497018-8723-4847-94E3-D055D85E7AD7@microsoft.com>, Robert wrote:
> Thanks Steve. What do you mean by run time? Do you mean during slide show?

It depends on where the label/text box are. If on a slide, then yes, during a slide
show. They can also appear on VBA forms, in which case, run time means more or less
while the code is running and the form is visible.

> I have added both text box using AddTextbox and label using AddLabel and in
> normal view user can edit both and they look identical and share the same
> formatting properties.

Look again. Rightclick, choose View Properties.
Text boxes have quite a few more properties to choose from.

>
> "Steve Rindsberg" wrote:
>
> > In article <B575D674-B847-44DC-A4B5-53805C510D23@microsoft.com>, Edward wrote:
> > > Hi everybody,
> > > What is the difference between AddLabel and AddTextbox ? It seems both
> > > prduce the same results. Are there any pros and cons for choosing any of them?
> > > IF we have both methods there must be a reason for it but I can't fingure
> > > out in any given case which method is better.
> >
> > The user can edit the text in the textbox control at run time.
> > They can't edit a label.
> >
> >
> >
> > -----------------------------------------
> > Steve Rindsberg, PPT MVP
> > PPT FAQ: www.pptfaq.com
> > PPTools: www.pptools.com
> > ================================================
> > Live and in personable in the Help Center at PowerPoint Live
> > Sept 21-24, San Diego CA, USA
> > www.pptlive.com
> >
> >
>

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Live and in personable in the Help Center at PowerPoint Live
Sept 21-24, San Diego CA, USA
www.pptlive.com


Re: Difference between AddLabel and AddTextbox by Edward

Edward
Sun Aug 17 03:31:01 CDT 2008

Soory I had to tell that I use those methods for adding textbox and label on
a slide not a userform .
here is the code:

ActivePresentation.Slides(2).Shapes.AddLabel msoTextOrientationHorizontal,
10, 10, 50, 50
ActivePresentation.Slides(2).Shapes.AddTextbox
msoTextOrientationHorizontal, 100, 10, 50, 50
the results for both are identical and even wehn we use addlabel method and
right click on the resulting shape it says textbox properties and has exactly
the same properties.
Thanks :)
--
Best regards,
Edward


"Robert" wrote:

> Thanks Steve. What do you mean by run time? Do you mean during slide show?
> I have added both text box using AddTextbox and label using AddLabel and in
> normal view user can edit both and they look identical and share the same
> formatting properties.
>
> "Steve Rindsberg" wrote:
>
> > In article <B575D674-B847-44DC-A4B5-53805C510D23@microsoft.com>, Edward wrote:
> > > Hi everybody,
> > > What is the difference between AddLabel and AddTextbox ? It seems both
> > > prduce the same results. Are there any pros and cons for choosing any of them?
> > > IF we have both methods there must be a reason for it but I can't fingure
> > > out in any given case which method is better.
> >
> > The user can edit the text in the textbox control at run time.
> > They can't edit a label.
> >
> >
> >
> > -----------------------------------------
> > Steve Rindsberg, PPT MVP
> > PPT FAQ: www.pptfaq.com
> > PPTools: www.pptools.com
> > ================================================
> > Live and in personable in the Help Center at PowerPoint Live
> > Sept 21-24, San Diego CA, USA
> > www.pptlive.com
> >
> >

Re: Difference between AddLabel and AddTextbox by Steve

Steve
Sun Aug 17 10:31:40 CDT 2008

Interesting.

This is sort of a bug in PowerPoint, it seems.

Both .AddLabel and .AddTextbox add a textbox object. That's why the properties
are the same. Neither adds a control object, by the way.

And if you need the user to edit the text during a slide show, neither will
work.

In article <4C96E0A8-950D-4CB7-B543-841113B48C7C@microsoft.com>, Edward wrote:
> Soory I had to tell that I use those methods for adding textbox and label on
> a slide not a userform .
> here is the code:
>
> ActivePresentation.Slides(2).Shapes.AddLabel msoTextOrientationHorizontal,
> 10, 10, 50, 50
> ActivePresentation.Slides(2).Shapes.AddTextbox
> msoTextOrientationHorizontal, 100, 10, 50, 50
> the results for both are identical and even wehn we use addlabel method and
> right click on the resulting shape it says textbox properties and has exactly
> the same properties.
> Thanks :)
>

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Live and in personable in the Help Center at PowerPoint Live
Sept 21-24, San Diego CA, USA
www.pptlive.com