Search & Replace

Description : Search and replace text in the current page, section or notebook

Download

Search & Replace

You need Onetastic Add-in
for OneNote to run this macro.
Download Onetastic
Author(s) : Omer Atay
Category : Find
Last Updated : June 20, 2017
Rating :
(10)
Download(s) : 16571
Screenshot :

Search & Replace

Find what
Replace with
Scope
Changelog :

June 20, 2017 (5DF85B) - Omer Atay
Added option to search in selected pages in the current section. Useful if you want to search and replace only in certain pages in the current section.

June 20, 2016 (F98703) - Omer Atay
Re-written with the new Macro Language to take advantage of cleaner syntax and performance improvements

These versions are no longer supported:

November 06, 2013 - Omer Atay
Added option to search under Current section, Current notebook and All notebooks

March 02, 2013 - Omer Atay
Initial version

Comments

Name
Comment
Dan - 2017-06-21
Thank you Omer,

this recent Update  is AWESOME !!
I have been trying to make loads of macros for selected pages only :(
But I dont have to do that any more
Super
:)
Dan - 2016-11-24
Thank you so much Omer,

You have been a great help as always.

It's really helpful for me to do all my stuff in onenote, otherwise I
Have to copy and paste pages and pages to word, then do it there, then bring back to onenote, so its a lot of work every day, but this will help me.

Thank you and have a good day :)
Omer Atay - 2016-11-23
Dan: You are using variables $i and $j which you haven't even initialized. What are you expecting to get from $Term[$i] and $Term[$j]? You could perhaps do something like:
$SearchArray = Array(1, 2, 3)
$ReplaceArray = Array("A", "B", "C")
$i = 0
While ($i < Array_Length($SearchArray))
    $Search = $SearchArray[$i]
    $Replace = $ReplaceArray[$i]
    // Do what you need to do here
    $i += 1