E
Edward
Hi everybody,
Im wrting a vba code to check font names in my presentation and see if they
match allowable fonts but for some reason VBA can't recognize all the fonts ,
somthing that never happened in word VBA!
Dim oSld As Slide
Dim oShp As Shape
For Each oSld In ActivePresentation.Slides
For Each oShp In oSld.Shapes
If oShp.HasTextFrame Then
If oShp.TextFrame.HasText Then
ilast=oshp.textframe.textrange.words.count
for iindex=1 to ilast
if oshp.textframe.textrange.words(iindex).font.name="Gothic"
then
' do somthing
end if
next
End If
End If
Next oShp
Next oSld
Im wrting a vba code to check font names in my presentation and see if they
match allowable fonts but for some reason VBA can't recognize all the fonts ,
somthing that never happened in word VBA!
Dim oSld As Slide
Dim oShp As Shape
For Each oSld In ActivePresentation.Slides
For Each oShp In oSld.Shapes
If oShp.HasTextFrame Then
If oShp.TextFrame.HasText Then
ilast=oshp.textframe.textrange.words.count
for iindex=1 to ilast
if oshp.textframe.textrange.words(iindex).font.name="Gothic"
then
' do somthing
end if
next
End If
End If
Next oShp
Next oSld