Hello there
First time writing in this forum. I’ve already got some very valuable hints for scripting in word, but here I need more substantial help.
I have 3 main VBA macros that I use profusely in Powerpoint: one that changes slide language, one that deletes all notes from slides, and the last one that sets notes text to “noproofing” (so that the spell checker ignores them). I had already got help to have them translated into VBA and now I am of course completely unable to convert them!
Does anyone know if there are applescript that already exist and that I can use, or point me towards a solution, or who feel like taking up the challenge?
Thank you so much for any help. Here below some details about what I am after.
Nicos
For the first one, the VBA code changes all slides to English (but it would be good if I could do this only on previously selected slides):
Sub IntoEnglish()
’
scount = ActivePresentation.Slides.Count
For j = 1 To scount
fcount = ActivePresentation.Slides(j).Shapes.Count
For k = 1 To fcount
If ActivePresentation.Slides(j).Shapes(k).HasTextFrame Then
ActivePresentation.Slides(j).Shapes(k).TextFrame.TextRange _
.LanguageID = msoLanguageIDEnglishUK
End If
Next k
Next j
End Sub
For the second one, the VBA code deletes notes from all slides (this can be done for the whole file, no need to act on just selected slides)
Sub DeleteAllNotes()
Dim objSlide As Slide
Dim objShape As Shape
For Each objSlide In ActivePresentation.Slides
For Each objShape In objSlide.NotesPage.Shapes
If objShape.TextFrame.HasText Then
objShape.TextFrame.TextRange = “”
End If
Next
Next
’
End Sub
And finally, for the third macro, the VBA codes selects the note text (I have therefore to be in note view) and sets it to no spelling (again, here, it can do it over the whole file)
Sub NoProofing()
’
ActiveWindow.Selection.TextRange.LanguageID = msoLanguageIDNoProofing
End Sub