Documentation for Macro Language is now available. Click here to check it out.
is a free multi-purpose addin for Microsoft OneNote 2010 and 2013
Macroland is a repository for free macros for OneNote
Search & Replace
Search and replace text in the current page, section or notebook
Search & Replace
You need Onetastic Add-in
for OneNoteto run this macro.
for future development of Onetastic
Nov 06, 2013
Search & Replace
Search & Bold
Search & Highlight Language
Search & Highlight
Search & Replace in Hyperlinks
Search & Spell Check Off
Show uncompleted to dos
Search & Select
See all other macros
Macros by This Author
TOC in Current Notebook
Insert Monthly Calendar
TOC in Current Section
TOC in Current Page
Insert Horizontal Line
Search & Replace
Insert Double Horizontal Line
Where am I
Capitalize Each Word
Sort Pages By Date
E-mail me if someone replies
I've been using OneNote for about 2 hours and have noticed that my work is much slower since installing OneTastic because it takes up 60% of the Home tab making the normal items a bit cumbersome to work with. I'm leaving you this note in the idea you might consider passing it to the developer as you'll likely have more clout; I do understand you might disagree.hand
I certainly like having the F & R macros on the Home tab. It just seems more appropriate that OneTastic be on the Add-In tab, since that's what it is. Doing this, at least for me, would make OneNote easier and less cumbersome to work with. I've uninstalled OneTastic for this reason as F&R is something I use occasionally. I definite wish I could keep your macro handy at all times. Thanks again for giving us a very useful macro.
Just installed. Worked fine. Does seem a tiny bit slow though.
Would be great if it automatically copied highlighted text into the search field.
Thanks for a great little utility
amazing Omer. Working perfectly so far
thanks a lot
Show more comments
Hi, can you make the replacement optional,please?
And ability to just find and show me the matches as original OneNote does but in hyperlinks,could be great.
Nino: Can you share the page that has this problem with me to investigate?
There is a dialog box popup when updating the text (the searching process is done without error), giving description as "The XML is invalid". Please check.
Works fine, a very missed feature in OneNote, thanks a lot!
JoBrad, I just published an update that fixes an issue similar to this. Can you please try and see if that solves your problem?
There is a bug with this macro: I have imported lot of notes from Evernote, and they have HTML entity codes in them. If I do a find and replace, the first replace works. Subsequent runs undo the first replacement, however, and only have the last iteration's results. So, if I replace & with &, it will work. Then, if I replace ' with ', the ampersands get replaced with &, and only the apostrophes are corrected.
Hey, I had to restart to onenote for it to work. Thank you so much for this great feature! The only thing I miss now in onenote is to be able to justify text.
Also, can you add an option to search whole words or just partial words?
It did not work at all. I've tried to replace the text, but nothing. I'm using onenote 2010 - 64bits. Portuguese char set.
Daryl, thanks for the report. I can reproduce it and will hopefully fix it in the next update.
Update: this bug occurs whenever there is a container on the page that contains a shape (shapes that have been pasted into containers also containing text). When this is the case the search function still works, but the macro cannot insert text into any containers on the page. I tested this:
1) With a shape (a line) pasted in the same container as the search text - same error as in my post below
2) With a shape (a line) pasted into a container without the search text, and a second container containing search text - same error as in my post below
3) With a shape (a line) pasted outside containers on page with the same containers as in case 2 - search / replace works normally
4) With containers having text only - search / replace works normally
Not sure if there is any way around this, as all of my pages are made from formatted templates that have a container with text and shapes. Any help on this appreciated. I can send examples if the above can't be replicated.
I can't get the search/replace macro to work - for example, after running the macro I briefly see a progress bar and then get the message "12 instances of [text] replaced". After this there is briefly another progress bar and then a message box with header "Error" saying "The ink could not be inserted."
Any ideas why this is happening? I have tried a number of different search strings, the first part of the process always works but the text never actually gets replaced. Seems also to find text with search & highlight but same error and text does not highlight.
I'm using OneNote 2010 x64 on Win7
Mark, this won't replace the URLs of the hyperlinks. It will only work against regular text.
Tried this to replace invalid links after a server name change and it found nothing ??
Request a Feature or a Macro
FROM THE BLOG
Onetastic and OneCalendar Now Available in Traditional Chine...
Onetastic and OneCalendar Now Available in Dutch
Onetastic and OneCalendar Now Available in Norwegian
Onetastic and OneCalendar Now Available in Polish
Documentation for Macro Language is Now Available
The opinions and views expressed in this website are those of the author and do not necessarily state or reflect those of Microsoft.