F
Flemming Dahl
Hi,
I have the below code in ThisModule of severel templates. It calls and
add-in that do some stuff.....
Now I would like the finished documents to be without code in ThisModule, so
that when a user mails the documents to a customer or.... the documents will
not be stopped in AntiVirus systems, that does not allow VBA code.
Can I delete all the code in ThisModule in run-time ?
Thanks,
Flemming
-----
Private Const msNAME As String = "EN.dot"
Private msFullFileName As String
Private Sub Document_New()
' Code
' Code
'DELETE IT ALL........
End Sub
Private Function FileExists(ByRef sFullPathAndFileName As String) As Boolean
' Returns True if the file exists
FileExists = CBool(Len(Dir(sFullPathAndFileName)))
End Function
I have the below code in ThisModule of severel templates. It calls and
add-in that do some stuff.....
Now I would like the finished documents to be without code in ThisModule, so
that when a user mails the documents to a customer or.... the documents will
not be stopped in AntiVirus systems, that does not allow VBA code.
Can I delete all the code in ThisModule in run-time ?
Thanks,
Flemming
-----
Private Const msNAME As String = "EN.dot"
Private msFullFileName As String
Private Sub Document_New()
' Code
' Code
'DELETE IT ALL........
End Sub
Private Function FileExists(ByRef sFullPathAndFileName As String) As Boolean
' Returns True if the file exists
FileExists = CBool(Len(Dir(sFullPathAndFileName)))
End Function