VBA - Word, Insert buildingblocks without deleteing the bookmark
Hi, is there a way to insert a buldingblock without deleting the bookmarks?
The building block will be inserted from a userform with a checkbox.
It would be prefereable to do it like this with the bookmarks:
Private Sub cmdOK_Click() InsertBookmark "test4", TextBox1.ValueEnd SubSub InsertBookmark(strBookmark As String, TextToUse As String)'Insert text into bookmark without deleting Dim BMRange As Range Set BMRange = ActiveDocument.Bookmarks(strBookmark).Range BMRange.Text = TextToUse If Len(strBookmark) < 0 Then ActiveDocument.Bookmarks.Add strBookmark, BMRange 'ActiveDocument.Bookmarks.Add strBookmark, BMRangeEnd Sub
Sub InsertBookmark(strBookmark As String, TextToUse As String)'Insert text into bookmark without deleting Dim BMRange As Range Set BMRange = ActiveDocument.Bookmarks(strBookmark).Range BMRange.Text = TextToUse ActiveDocument.Bookmarks.Add strBookmark, BMRangeEnd Sub
I'm soo sorry guys for asking the same question over and over again, I seriously dont understand how to do it and what to do about this function I want...
Is it possible to hire one of you for a cheap price to get exactly what i want it to do? I guess i'm causing more frustration then any good...
Why don't you use
Open in new window
Regards