Word automation - selecting a part of the document
-
I'm using Word automation to open a document that has some areas protected. I'm trying to figure out how to select the unprotected area of the document. How can this be done? As a solution I recorded a macro inside Word that presses F8 five times which selects the unprotected section as I want. The marco code shows the following: Selection.Extend Selection.Extend Selection.Extend Selection.Extend Selection.Extend What is the syntex in C# if I wanted to use Selection.Extend?
-
I'm using Word automation to open a document that has some areas protected. I'm trying to figure out how to select the unprotected area of the document. How can this be done? As a solution I recorded a macro inside Word that presses F8 five times which selects the unprotected section as I want. The marco code shows the following: Selection.Extend Selection.Extend Selection.Extend Selection.Extend Selection.Extend What is the syntex in C# if I wanted to use Selection.Extend?
-
dptalt wrote:
What is the syntex in C# if I wanted to use Selection.Extend?
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.selection.extend(office.11).aspx[^]