D
dominik.hartung
Hello everybody,
I´m searching for a macro to
1) look for some text in the notes page of each slide in a
presentation
2) take that slide and move it to a certain position.
I already manged to get some code information, here it is:
Sub sort()
Dim pos, search As Integer
search = InputBox("Find:")
pos = InputBox("Move to position:")
For Each sld In Application.ActivePresentation.Slides
For Each shp In sld.Shapes.NotesPage
If shp.HasText Then
Set txtRng = shp.Text.TextRange
Set foundText = txtRng.Find(FindWhat:=search)
Do While Not (foundText Is Nothing)
ActiveSlide.MoveTo toPos:=pos
Loop
End If
Next
Next
End Sub
This is basically from the help in Powerpoint (example of the find
function), but I just can´t get that macro to work. I would be very
grateful if anyone could help me out.
Thanks a lot in advance
Dominik
I´m searching for a macro to
1) look for some text in the notes page of each slide in a
presentation
2) take that slide and move it to a certain position.
I already manged to get some code information, here it is:
Sub sort()
Dim pos, search As Integer
search = InputBox("Find:")
pos = InputBox("Move to position:")
For Each sld In Application.ActivePresentation.Slides
For Each shp In sld.Shapes.NotesPage
If shp.HasText Then
Set txtRng = shp.Text.TextRange
Set foundText = txtRng.Find(FindWhat:=search)
Do While Not (foundText Is Nothing)
ActiveSlide.MoveTo toPos:=pos
Loop
End If
Next
Next
End Sub
This is basically from the help in Powerpoint (example of the find
function), but I just can´t get that macro to work. I would be very
grateful if anyone could help me out.
Thanks a lot in advance
Dominik