"Arial"로 표현 된 모든 글꼴을 대체 할 매크로를 개발하려고했습니다. 지금까지 필자는 텍스트 상자, 표 및 SmartArt의 글꼴 대체에 성공했지만 그룹화 된 개체의 글꼴을 대체 할 수 없었습니다. 다음은 참조 용 코드입니다. 아무도 도와 줄 수 있습니까?그룹화 된 개체의 글꼴 바꾸기 - Powerpoint 365
하위 TextFonts()
Dim oSl As Slide
Dim oSh As Shape
Dim oTbl As Table
Dim oSmt As SmartArt
Dim oNode As SmartArtNode
Dim lRow As Long
Dim lCol As Long
Dim sFontName As String
sFontName = "Arial"
With ActivePresentation
For Each oSl In .Slides
For Each oSh In oSl.Shapes
With oSh
If .HasTextFrame Then
If .TextFrame.HasText Then
.TextFrame.TextRange.Font.Name = sFontName
End If
End If
End With
Next
Next
End With
For Each oSh In oSl.Shapes
If oSh.HasTable Then
Set oTbl = oSh.Table
For lRow = 1 To oTbl.Rows.Count
For lCol = 1 To oTbl.Columns.Count
With oTbl.Cell(lRow, lCol).Shape.TextFrame.TextRange
.Font.Name = "Arial"
End With
Next
Next
ElseIf oSh.HasSmartArt Then
For Each oNode In oSh.SmartArt.AllNodes
oNode.TextFrame2.TextRange.Font.Name = "Arial"
Next
End If
Next
다음 OSL 끝 하위
감사합니다 – Krishna