Private Sub button1_Click(sender As Object e As System.EventArgs)' Use the open file dialog to choose a word documentIf Me.openFileDialog1.ShowDialog() DialogResult.OK Then' set the file name from the open file dialogDim fileName As Object openFileDialog1.FileNameDim readOnly As Object FalseDim isVisible As Object True' Here is the way to handle parameters Dim missing As Object System.Reflection.Missing.Value' Make word visible so you can see what's happening WordApp.Visible True' Open the document that was chosen by the dialogDim aDoc As Word.Document WordApp.Documents.Open(fileName missing [readOnly] missing missing missing missing missing missing missing missing isVisible) ' Activate the document so it shows up in front aDoc.Activate();' Add the copyright text and a line breakWordApp.Selection.TypeText( Copyright C# Corner )WordApp.Selection.TypeParagraph()End IfEnd Sub 'button1_Click