Description | : | Sort notebooks by after the first 6 characters of name |
Download |
---|---|---|---|
Author(s) | : | Omer Atay | |
Category | : | Samples | |
Last Updated | : | October 01, 2016 | |
Requirements | : | OneNote 2010 or above | |
Screenshot | : | ||
![]() Sample - Custom Sort Notebooks No screenshot available for this macro. |
|||
Changelog | : | October 01, 2016 (D9E3DB) - Omer Atay |
------------------------------------------------------------------------------
If (String_Substring($notebook.nickname, 5, 1) == "-")
$sortKey = ""
Else
$sortKey = String_Substring($notebook.nickname, 6, (String_Length($notebook.nickname) - 6))
Array_PushBack($sortKeys, $sortKey)
So now I am getting greedy, but is there also a way to find notebooks that do not start with a number and put them on top? For instance, I have two notebooks 12345-ABC and Nicole's Notebook. I would like Nicole's to be at the top and the numbered ones to sort alphabetically under that!
Thank you so much for this one, you have made my life so much easier!