View Single Post
 
Old 08-10-2023, 12:16 PM
JohnWilson JohnWilson is offline Windows 10 Office 2019
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,913
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

This sort of thing maybe - you should add some error checking.
Code:
Sub trans_text()
Dim oshp As Shape
Dim otxr2 As TextRange2
Dim L As Long
Set oshp = ActiveWindow.Selection.ShapeRange(1)
If oshp.HasTextFrame Then
Set otxr2 = oshp.TextFrame2.TextRange
For L = 1 To otxr2.Characters.Count
otxr2.Characters(L).Font.Fill.Transparency = Rnd * 1
Next L
End If
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote