Search & Replace

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


Search & Replace

You need Onetastic Add-in
for OneNote to run this macro.
Download Onetastic
Author(s) : Omer Atay
Category : Find
Last Updated : January 23, 2018
Requirements : OneNote 2010 or above
Screenshot :

Search & Replace

Find what
Replace with
Changelog :

January 23, 2018 (4B1DA4) - Omer Atay
Now remembers the previous values of Search, Replace, Scope and Match case

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


Omer Atay - 2018-08-10
Nick: See this macro for replacing in hyperlinks:
Nick - 2018-08-09
Search and Replace works well, but what if I want to change a URL that is in OneNote? This macro seems to only modify the actual "Text to Display", but not the underlying URL itself. Is this an enhancement that can be made to this macro?
djj - 2018-07-17
So far the macro itself works great, but after the message "found x entries and replaced them" shows, there is this progress bar which just won't go away. You can't close or cancel the box, since it thinks I interrupted the macro, which at that point already completed. At that point I have to restart OneNote.

Any thoughts on why this is happening?