Skip to content

Instantly share code, notes, and snippets.

@varunsrin
Created May 27, 2011 16:51
Show Gist options
  • Save varunsrin/995662 to your computer and use it in GitHub Desktop.
Save varunsrin/995662 to your computer and use it in GitHub Desktop.
import win32com.client
oneNoteApp = win32com.client.gencache.EnsureDispatch('OneNote.Application')
oneNoteApp.GetHierarchy("",win32com.client.constants.hsNotebooks, result)
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment