JamesHayek
New Member
- Joined
- May 24, 2016
- Messages
- 20
Hello All!
I am using Bookmarks and a UserForm to populate data in Word. My apologies if this is on the wrong forum. I am using VBA and assumed it is similar.
After setting my bookmarks and creating a user form, I can populate text in my word document with the following:
Where WSP01_700LTE is my checkbox name and Freq01a is my bookmark.
The line oRng05.Text = "700 LTE" will populate the Word document with 700 LTE
But what if I want that line removed if the check box is unchecked?
Thanks in advance!
I am using Bookmarks and a UserForm to populate data in Word. My apologies if this is on the wrong forum. I am using VBA and assumed it is similar.
After setting my bookmarks and creating a user form, I can populate text in my word document with the following:
Code:
Private Sub WSP01_700LTE_Click()
If Me.WSP01_700LTE.Value = True Then
Set oRng05 = ActiveDocument.Bookmarks("Freq01a").Range
oRng05.Text = "700 LTE"
ActiveDocument.Bookmarks.Add "Freq01a", oRng05
End If
End Sub
Where WSP01_700LTE is my checkbox name and Freq01a is my bookmark.
The line oRng05.Text = "700 LTE" will populate the Word document with 700 LTE
But what if I want that line removed if the check box is unchecked?
Thanks in advance!