# Bookmark in footnote

Hello,

I did insert bookmark in the existing footnote in the existing document.

I was trying to access this bookmark and replace text in the footnote:

doc.Range.Bookmarks["ifStateNJ"].Text = "replace text in footnote";

Got error: "Object reference not set to an instance of an object."

Code did not find this bookmark.

What another way to access text of specific footnote with Aspose?

Thanks,

Rudolf

Hello

Thanks for your request. I cannot reproduce the problem on my side using the latest version of Aspose.Words (10.1.0) and the following code for testing:

Document doc = new Document("C:\\Temp\\in.docx");

doc.Range.Bookmarks["FootNoteBookmark"].Text = "replace text in footnote";

doc.Save("C:\\Temp\\out.docx");