Try this
Sub toSpanish() Dim osld As Slide Dim oshp As Shape For Each osld In ActivePresentation.Slides For Each oshp In osld.Shapes If oshp.HasTextFrame Then oshp.TextFrame.TextRange.LanguageID = msoLanguageIDSpanish End If Next oshp For Each oshp In osld.NotesPage.Shapes If oshp.HasTextFrame Then oshp.TextFrame.TextRange.LanguageID = msoLanguageIDSpanish End If Next oshp Next osld End Sub