Not sure if you can add a Word document (.doc file) if that is what you mean, since MODI is designed to show images. Try these steps:
1. If not already there, add the MODI Viewer to the Controls Toolbox in VB by right-clicking Controls Toolbox - Additional Controls... and select Microsoft Office Document Imaging Viewer Control 11.0.
2. Put the MODI Viewer control on your userform. This is named MiDocView1 by default.
3. Use this code to load the viewer with an image file:
Code:
Private Sub UserForm_Initialize()
Dim MiDoc As MODI.Document
Set MiDoc = New MODI.Document
'Open existing document image
MiDoc.Create "C:\excel\temp\test.tif"
'Attach document to viewer
MiDocView1.Document = MiDoc
End Sub