|
楼主 |
发表于 2023-2-7 23:26
|
显示全部楼层
- Public Sub Test()
- Dim oSlide As Slide, txtRng, De, shp, n As Integer,foundText as TextRange,foundText2 as TextRange
- For Each oSlide In Application.ActivePresentation.Slides
- For Each shp In oSlide.Shapes
- If shp.HasTextFrame Then
- Set txtRng = shp.TextFrame.TextRange
- Set foundText = txtRng.Find(FindWhat:="Wholesale")
- Set foundText2 = txtRng.Find(FindWhat:="$")
- If Not foundText Is Nothing Then
- foundText.line(1,2).delete
- End If
- If Not foundText2 Is Nothing Then
- foundText2.line(1,2).delete
- End If
- End If
- Next
- Next
- End Sub
复制代码 |
|