How about using FormattedText property instead?
    'Button click opens my base document
    Private Sub test123_Click() '(sender As Object, e As EventArgs) Handles test123.Click
        Dim oWord As Object
        oWord = CreateObject("Word.Application")
        oWord.Visible = True
        Dim path As String = "C:\Users\user\basefile\"
        Dim file As String = Dir(path & "*.docx")
        Dim oDoc As 

 
    
Top comments (0)