> I am using PowerPoint 2000. Thanks for your time.
>
[quoted text clipped - 46 lines]
> > >> > How do I activate or show a different slide for the data for each
> > >> > day?
Thanks it did work without the parenthesis (but that is how it is in the help
file)
I still have a problem though because it is now nnot selected so I can not
change nay of its properties. How do I make it selected. Please and Thank
you.
> In article <DDF89308-E5A5-45DB-8BAC-FDDD1C2DDE6F@microsoft.com>,
Bill DaTutor
> wrote:
> > I tried :
[quoted text clipped - 67 lines]
> PPTools: www.pptools.com
> ================================================
David M. Marcovitz - 06 Feb 2008 17:51 GMT
Yes, the parentheses issue is a weird one. When you put parentheses
around the parameters of a function, VBA is expecting the function to
return a value. When you leave off the parentheses, no value is
returned. Thus, when you add a shape with the parentheses, you need to
return some kind of value. You could do something like:
Dim oShp As Shape
Set oShp = ActivePresentation.Slides(#).Shapes.AddTextbox(...)
Then, you can do whatever you want with the shape by using oShp... For
example, oShp.TextFrame.TextRange.Text = "Hello"
--David

Signature
David M. Marcovitz
Microsoft PowerPoint MVP
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
=?Utf-8?B?QmlsbCAgICBEYVR1dG9y?= <BillDaTutor@discussions.microsoft.com>
wrote in news:349727A7-1C9F-48BD-BB14-116040E787B5@microsoft.com:
> Thanks it did work without the parenthesis (but that is how it is in
> the help file)
[quoted text clipped - 78 lines]
>> PPTools: www.pptools.com
>> ================================================
Bill DaTutor - 06 Feb 2008 18:31 GMT
You hit it on the head . Many Thanks, I will drink a beer to your health.
> Thanks it did work without the parenthesis (but that is how it is in the help
> file)
[quoted text clipped - 76 lines]
> > PPTools: www.pptools.com
> > ================================================
Steve Rindsberg - 06 Feb 2008 20:12 GMT
> Thanks it did work without the parenthesis (but that is how it is in the help
> file)
> I still have a problem though because it is now nnot selected so I can not
> change nay of its properties. How do I make it selected. Please and Thank
> you.
Better not to select it at all:
Dim oSh as Shape
Set oSh = ActivePresentation.Slides(Slide_Num).Shapes. _
AddShape(msoShapeRectangle, Left, vertical, Time, 7#)
With oSh
' set properties
.Left = 0
.Top = 0
End With
> > > where Slide_Num is defined in the main loop and has scope over all the module.
> > > It prints all the objects for day 1 but for the first input of day 2 it
[quoted text clipped - 62 lines]
> > PPTools: www.pptools.com
> > ================================================
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================