For Synaesthesia (Subject: Re: Macro Hassles - Of97)
<pre>Public Function strDropMacros(doc As Document) As String
' Procedure : strDropMacros
' Description: Rebuilds the current document through an RTF file,_
' dropping all code modules along the way.
' By: Chris Greaves Inc.
' Inputs: None
' Returns: None
' Assumes: Nothing
' Side Effects: May change selection point
' Tested: By the calls below.
strDropMacros = ""
Dim strFilename As String
strFilename = ActiveDocument.FullName
Dim strName As String
strName = strBreakFileString(strFilename, 2)
Dim strPath As String
strPath = strBreakFileString(strFilename, 5)
Dim boolExists As Boolean
strDropMacros = strPath & strName & ".rtf"
boolExists = boolFileExists(strDropMacros)
ActiveDocument.SaveAs FileName:=strDropMacros, FileFormat:=wdFormatRTF
Documents.Open FileName:=strDropMacros
ActiveDocument.SaveAs FileName:=strPath & strName & strcExtentDoc,_
If boolExists Then
Call doQKill(strDropMacros)
End If
'Sub TESTstrDropMacros()
' MsgBox strDropMacros(activedocument)
'End Sub
End Function