Request a New Macro
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 OneNote to run this macro.
for future development of Onetastic
Nov 06, 2013
Search & Replace
Other Related Macros
Search & Replace in Hyperlinks
Search & Spell Check Off
Show uncompleted to dos
Search & Select
Search & Highlight
See all other macros
E-mail me if someone replies
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.
Show more comments
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
Request features for Onetastic and OneCalendar
Onetastic and OneCalendar Now Available in Italian
Onetastic and OneCalendar Now Available in Brazilian Portugu...
Onetastic and OneCalendar Now Available in French - With mor...
Onetastic and OneCalendar Now Available in Russian - With so...
The opinions and views expressed in this website are those of the author and do not necessarily state or reflect those of Microsoft.