Goran Level: Moderator

 Registered: 16-05-2002 Posts: 1681
|
Re: Opening a Word document from a VB form
If the user will highlight documents name with full path to it, then it will be quite easy
| OpenFile Text1.SelText, Me.hWnd |
If it will hold only the name of the document, but you already know the path to folder where it resides, then this will do
| OpenFile FolderPath & Text1.SelText, Me.hWnd |
.... assuming that folder path finishes with backslash (\).
But I guess it would be better to have those document names placed in listbox, for example.
____________________________
If you find the answer helpful, please mark this topic as solved.
|