Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.
Sub Add_Table_Bookmarks() Dim tbl As Table Dim b As Integer Dim rng As Range Dim Bookmark1 As Variant Dim Bookmark2 As Variant If MsgBox("Would you like to create bookmarks in certain cells of all the tables?" & vbCrLf & vbCrLf & _ "These bookmarks form the basis for TOC items!" & vbCrLf & _ "Normally the MOH-Codes and Set Descriptions are the ones to be bookmarked", vbYesNo + vbQuestion, "Create bookmarks in table!") = vbNo Then Exit Sub End If Bookmark1 = InputBox("Please indicate the first cell to be bookmarked!", "first cell to be bookmarked") If Bookmark1 = "" Then Exit Sub Bookmark2 = InputBox("Please indicate the second to be bookmarked!", "second cell to be bookmarked") If Bookmark2 = "" Then Exit Sub b = 1 With ActiveDocument For Each tbl In .Tables ' new requirement: the macro should only run on table 5, 13, 19, 23, 27, 44, 54, 73 Set rng = tbl.Cell(2, Bookmark1).Range 'first cell rng.MoveEnd wdCharacter, -1 .Bookmarks.Add ("bookmark_" & b), rng Set rng = tbl.Cell(2, Bookmark2).Range 'fourth cell rng.MoveEnd wdCharacter, -1 .Bookmarks.Add ("bookmark_" & b + 1), rng b = b + 2 Next tbl End With End Sub
|Ability to store text on the iPad?||10||67|
|Numerous files can not be opened anymore||17||60|
|Re-indent word doc||5||33|
|Word 2016 - View two documents on top and bottom of screen||9||22|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
11 Experts available now in Live!