I wrote a piece of code that would attach the active word document to an outlook email. This worked fine.
Of course, the powers have asked to use Save as:
However, whenever I do this, the document saves without an extension (I have tried every file format available).
What am I missing?
Code:
myDoc.Save
With EmailItem
.subject = fileName
.Attachments.Add myDoc.FullName
.Display
End With
Of course, the powers have asked to use Save as:
Code:
myDoc.SaveAs fileName:=("Feedback_Form_" + formName), FileFormat:=wdFormatDoc
However, whenever I do this, the document saves without an extension (I have tried every file format available).
What am I missing?