A
admin4office
The following macro opens PowerPoint files in C:\src\ and saves them as text
files in C:\dest\. (The goal is to index the text using Perl). Unfortunately,
the saved files contain lots of markup language. Does anyone know how to
remove this markup language? The line that does the saving is marked with
"<===**". Many thanks.
Sub mSavePPt()
Dim srcPath As String
Dim destPath As String
Dim sName As String
Dim pt As Presentation
srcPath = "C:\src\"
destPath = "C:\dest\"
sName = Dir(srcPath & "*.ppt")
Do
Set pt = Presentations.Open(srcPath & sName)
ActivePresentation.SaveAs destPath & pt.Name & ".txt", _ <===**
FileFormat:=ppSaveAsRTF
<===**
ActiveWindow.Close
sName = Dir()
Loop While sName <> ""
End Sub
files in C:\dest\. (The goal is to index the text using Perl). Unfortunately,
the saved files contain lots of markup language. Does anyone know how to
remove this markup language? The line that does the saving is marked with
"<===**". Many thanks.
Sub mSavePPt()
Dim srcPath As String
Dim destPath As String
Dim sName As String
Dim pt As Presentation
srcPath = "C:\src\"
destPath = "C:\dest\"
sName = Dir(srcPath & "*.ppt")
Do
Set pt = Presentations.Open(srcPath & sName)
ActivePresentation.SaveAs destPath & pt.Name & ".txt", _ <===**
FileFormat:=ppSaveAsRTF
<===**
ActiveWindow.Close
sName = Dir()
Loop While sName <> ""
End Sub