private static void ReplaceBookmarkText2(Microsoft.Office.Interop.Word.Document doc, string bookmarkName, Word.Table text)

        {
            if (doc.Bookmarks.Exists(bookmarkName))

            {
                Object name = bookmarkName;

                Microsoft.Office.Interop.Word.Range range = doc.Bookmarks.get_Item(ref name).Range;

                range.Text = text.ToString();

                object newRange = range;

                doc.Bookmarks.Add(bookmarkName, ref newRange);
            }
        }