View Single Post
 
Old 02-13-2022, 10:11 AM
JohnWilson JohnWilson is offline Windows 10 Office 2019
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Shapes do not have a Caption. Maybe you have found Windows code using ActivX shapes. Macs do not support this

With a shape you would need something like

Code:
Sub add10()

Dim osld As Slide
Dim oshp As Shape
Set osld = SlideShowWindows(1).View.Slide
Set oshp = osld.Shapes("ascore")
If oshp.TextFrame.TextRange = "" Then oshp.TextFrame.TextRange = "0"
oshp.TextFrame.TextRange = oshp.TextFrame.TextRange + 10
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote