I want to select the text in a field but I cannot make it work. I found this code in Microsoft dev center but I cannot make it work. How and when CreateNavigator, NamespaceManager and CurrentView are declared? https://msdn.microsoft.com/en-us/library/office/aa944234.aspx
' Create XPathNavigator and select field.
Dim textNode As Xml.XPath.XPathNavigator = CreateNavigator().SelectSingleNode("/my:myFields/my:field1", NamespaceManager)
' Select text in specified field.
CurrentView.SelectText(textNode, "CTRL2")
