Small macro to set vertical spacing of text to percentage of character height.

I'm trying to use ChatGPT to create a small macro to look for artistic text in my document that is using points as the unit of measurement for the vertical spacing and change it to use % of the character height. When I open PDFs from outside sources the artistic text is always using points as the unit. If I resize the text, the spacing does not size with it. I have to manually change the text to use a percentage of the character height to have it resize correctly. 

This is the macro as given by ChatGPT. It runs but does not actually change the vertical spacing unit for the text. Any help would be appreciated.

Sub ConvertVerticalSpacingUnits()
Dim sr As ShapeRange
Dim s As Shape
Dim txt As Text

' Search for all artistic text shapes in the document
Set sr = ActivePage.Shapes.FindShapes(Type:=cdrArtisticTextShape)

For Each s In sr
If s.Type = cdrArtisticTextShape Then
Set txt = s.Text

' Check if vertical spacing unit is in points
If txt.Paragraphs.VerticalSpacingUnit = cdrSpacingPoints Then
' Change the unit to percentage of character height
txt.Paragraphs.VerticalSpacingUnit = cdrSpacingPercentOfCharacterHeight
End If
End If
Next s

MsgBox "All applicable artistic text shapes have been updated to use % of character height for vertical spacing.", vbInformation
End Sub