S
spenningzahl
I have a large template, consisting of many bookmarks. The template
has a userform consisting of 8 tabs with apprx. 4 questions on each.
You can choose what to select quite randomly, and do not have to
select a question on each tab. To explain you can for instance only
pick 2 questions out of 32 or you can chose 15, 16 etc. In my template
I have the bookmarks set up like this Bkm1[space]Bkm2[space]Bkm3[space]
Bkm4[space].... and so on.
If I do not select a question I get all the spaces (from the bookmarks
I have not selected in front of first section like this.:
[space][space][space][space]MyHeading
Does anyone know how to fix this?
I have tried many codes, but nothing works. The last I have tried goes
something like this:
Dim bmk As Bookmark
Dim rng As Range
If Opt2_5_Ja.Value = False Then
Set bmk = ActiveDocument.Bookmarks(bm2_5_1)
Set rng = bmk.Range
rng.Words(1).Delete
End If
Thanks, Karin
has a userform consisting of 8 tabs with apprx. 4 questions on each.
You can choose what to select quite randomly, and do not have to
select a question on each tab. To explain you can for instance only
pick 2 questions out of 32 or you can chose 15, 16 etc. In my template
I have the bookmarks set up like this Bkm1[space]Bkm2[space]Bkm3[space]
Bkm4[space].... and so on.
If I do not select a question I get all the spaces (from the bookmarks
I have not selected in front of first section like this.:
[space][space][space][space]MyHeading
Does anyone know how to fix this?
I have tried many codes, but nothing works. The last I have tried goes
something like this:
Dim bmk As Bookmark
Dim rng As Range
If Opt2_5_Ja.Value = False Then
Set bmk = ActiveDocument.Bookmarks(bm2_5_1)
Set rng = bmk.Range
rng.Words(1).Delete
End If
Thanks, Karin