Strip Hyperlinks Bookmarks Fields : Word Bookmark « Word « VBA / Excel / Access / Word






Strip Hyperlinks Bookmarks Fields

 
  Option Explicit

  Function Strip_Hyperlinks_Bookmarks_Fields()
      Dim myLink As Hyperlink
      Dim myBookmark As Bookmark
      Dim myField As Field
      With ActiveDocument
          For Each myLink In .Hyperlinks
              myLink.Delete
          Next myLink
          For Each myBookmark In .Bookmarks
              myBookmark.Delete
          Next myBookmark
          For Each myField In .Fields
              myField.Unlink
          Next myField
      End With
  End Function

 








Related examples in the same category

1.Bookmarks
2.Bookmarks can also be used as markers for bringing in charts created in Excel