View Single Post
 
Old 06-01-2019, 07:04 AM
~clover ~clover is offline Windows 10 Office 2013
Novice
 
Join Date: May 2019
Posts: 2
~clover is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
See http://www.gmayor.com/Userform.htm and in particular the FillBM function then you need something like.

Code:
Private Sub CommandButton1_Click()
    With ActiveDocument
        If UCase(TextBox1.Text) = "YES" Then
            FillBM "Text1", "The cow is green"
        Else
            FillBM "Text1", "The cow is not green"
        End If
    End With
    Unload Me
End Sub
This worked.. thanks so much!!
Reply With Quote