G
Guest
Hi
I am doing Simulation in powerpoint using Visaul Basic...... i am apllying
the code for zorder but its now working properly.
Means wht i want is i want to set zoder,means if some one add picture to the
slide then i shld make its order as 1 then when rectangles come then the
zorder for them is 1,then i want to set the order of text as 1.why i want
this is bcos if some one add picture to it first it shld show picture then on
the picture it shld show rectangles with the text.......
If any one know the procedure how to do it plz help me.i am attaching the
code for it which i am using...
Public Sub Set_ZOrder()
On Error Resume Next
Dim Counter As Long, i As Long
For Each sld In App_.ActivePresentation.Slides
ReDim Shapes_(sld.Shapes.Count)
Counter = 0
For Each shp In sld.Shapes
shp.ZOrder msoSendToBack
Next
For Each shp In sld.Shapes
If InStr(shp.Name, "CustRec") > 0 Then
shp.ZOrder msoSendBehindText 'msoBringToFront
End If
Next
For Each shp In sld.Shapes
If InStr(shp.Name, "CustText") > 0 Then
shp.ZOrder msoBringToFront
End If
Next
Next
End Sub
i am trying this but some time rectangle come on the picture some time even
rectangle with text r comin on picture....
Currently i am doing my coding in Visual Basic .
Thanks
Amrish
I am doing Simulation in powerpoint using Visaul Basic...... i am apllying
the code for zorder but its now working properly.
Means wht i want is i want to set zoder,means if some one add picture to the
slide then i shld make its order as 1 then when rectangles come then the
zorder for them is 1,then i want to set the order of text as 1.why i want
this is bcos if some one add picture to it first it shld show picture then on
the picture it shld show rectangles with the text.......
If any one know the procedure how to do it plz help me.i am attaching the
code for it which i am using...
Public Sub Set_ZOrder()
On Error Resume Next
Dim Counter As Long, i As Long
For Each sld In App_.ActivePresentation.Slides
ReDim Shapes_(sld.Shapes.Count)
Counter = 0
For Each shp In sld.Shapes
shp.ZOrder msoSendToBack
Next
For Each shp In sld.Shapes
If InStr(shp.Name, "CustRec") > 0 Then
shp.ZOrder msoSendBehindText 'msoBringToFront
End If
Next
For Each shp In sld.Shapes
If InStr(shp.Name, "CustText") > 0 Then
shp.ZOrder msoBringToFront
End If
Next
Next
End Sub
i am trying this but some time rectangle come on the picture some time even
rectangle with text r comin on picture....
Currently i am doing my coding in Visual Basic .
Thanks
Amrish