Insert File

  • Thread starter Thread starter JayM
  • Start date Start date
J

JayM

I currently have a macro(written for MS Word) which inserts a selected file
from a directory.

Sub GeneralUsertextClauses()
With Dialogs(wdDialogInsertFile)
..name = varUSERTEXT
..Show
End With
End Sub

varusertext is referenced as follows:
Global Const varUSERTEXT As String = "w:\zzword97\usertext\"

How can I ensure that the selected file isn't an attachment when used with
Outlook but is just inserted into the body of the text (word is my editor)?

JayM
 
You can't. You'd need to be using the Outlook object model and adding an
attachment using Outlook code.
 
Back
Top