Onetastic Macro Documentation >
Navigates the given window to the provided location. The location can be a , id of a hierarchy object, or a "onenote:" URL. OneNote may display UI while navigation is under way. This function returns true if the navigation is successful or false if the location is not found or navigation is cancelled by the user.
- Window window
- The window to navigate to.
- Mixed location
- The location to navigate to. Expected types are: Notebook, SectionGroup, Section, Page, or a String for id of one of those objects or a URL that starts with "onenote:". Navigating to URLs are slower than navigating with an object or object id.
$window = Window_GetCurrent()
$page = GetCurrentSection().pages