i want to open a word doc in vb. i have opened it by giving the file name directly,but i want the file name to be given as per the selected name in a listbox and typed character in a textbox. i have typed the following code,
but it is not working as the valuers are not coming please help!!
Code:
Private Sub Command1_Click() Dim objWord As Word.Application Set objWord = New Word.Application objWord.Visible = True objWord.Documents.Open App.Path & "List1.text" & "Text1.txt.docx" End Sub
Comment