Description | : | Sorts selected paragraphs or list items |
Download |
---|---|---|---|
Author(s) | : | Omer Atay | |
Category | : | Sort | |
Last Updated | : | June 20, 2016 | |
Requirements | : | OneNote 2010 or above | |
Screenshot | : | ||
![]() Sort Selected Paragraphs No screenshot available for this macro. |
|||
Changelog | : | June 20, 2016 (AC98C6) - Omer Atay These versions are no longer supported: February 07, 2015 - Omer Atay May 24, 2014 - Omer Atay |
I am still trying to learn how to delete paragraphs - large blocks of text
Any text or paragraphs between #100 and #200
<Expression>$text = ""</Expression>
<Expression>$FirstParagraph = ""</Expression>
<ForEach var="Paragraph">
<Array>QueryObjects("Paragraph", GetCurrentPage())</Array>
<If>
<Condition>!$Paragraph.selection == "none"</Condition>
<Continue>1</Continue>
</If>
<If>
<Condition>String_StartsWith($text, "#100 ", true) && String_EndsWith($text, "#200 ", true)</Condition>
<Expression>$text += " "</Expression>
</If>
<Expression>$text += $Paragraph.text</Expression>
<Expression>$Paragraph.text = ""</Expression>
<If>
<Condition>$FirstParagraph == ""</Condition>
<Expression>$FirstParagraph = $Paragraph</Expression>
</If>
</ForEach>
How can I delete any thing between these 2 points - I have tried a lot of things and cant make it work :(
Currently, when you start putting notes on a page, each time you add a new note, it goes to the bottom of the page (like writing in a normal notebook). I want new notes to go to the top of the page, so that the oldest notes are right at the bottom and the newest are at the top.
Hope this makes sense, and is it possible to do ? I've downloaded 'sort all paragraphs', but I don't think this is what I want..... Help please