J
Joe Dillon
I can access a Bookmark from my c# .net project (when the bookmark is in the main part of the word document) without a problem
BUT how can I access a Bookmark in the Header? This is the code I have tried (does not work)
object what = (int) Word.WdGoToItem.wdGoToBookmark
WordApp.ActiveWindow.ActivePane.View.SeekView = mso.Word.WdSeekView.wdSeekCurrentPageHeader
WordApp.Selection.GoTo(ref what, ref missing, ref missing, ref "MyBookMarkName" )
WordApp.Selection.TypeText( "I want to insert this value" )
The error I get is "Word cannot find the requested bookmark.
Help will be greatly appreciated
Thanks
Jo
BUT how can I access a Bookmark in the Header? This is the code I have tried (does not work)
object what = (int) Word.WdGoToItem.wdGoToBookmark
WordApp.ActiveWindow.ActivePane.View.SeekView = mso.Word.WdSeekView.wdSeekCurrentPageHeader
WordApp.Selection.GoTo(ref what, ref missing, ref missing, ref "MyBookMarkName" )
WordApp.Selection.TypeText( "I want to insert this value" )
The error I get is "Word cannot find the requested bookmark.
Help will be greatly appreciated
Thanks
Jo