DEV Community

Oscar Sun(孫守真字任真)
Oscar Sun(孫守真字任真)

Posted on

Answer: MS Word picture replacement with VB.NET, error message for empty clipboard

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)