Description | : | Search and replace text in the current page, section or notebook | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Author(s) | : | Omer Atay | |||||||||||
Category | : | Find | |||||||||||
Last Updated | : | June 20, 2016 | |||||||||||
Requirements | : | OneNote 2010 or above | |||||||||||
Screenshot | : | ||||||||||||
![]() Search & Highlight
|
|||||||||||||
Changelog | : | June 20, 2016 (B42779) - Omer Atay These versions are no longer supported: May 01, 2014 - Omer Atay March 09, 2013 - Omer Atay |
Thanks!
Search&Highlight works fine, thank you.
It would be awesome if it would show a list of pages, where the keyword occurs... (for scope selected Current section, Current notebook ...)
Thanks, regards
Yay it worked!!
What makes sense to me does not always work in the program, as I'm not good with the syntax, and I get stuck for a long time.
I am happy I can do a search and replace in only certain paragraphs in OneNote now, I don’t have to paste to word and edit now.
I hate having to paste to word and then paste back - I always lose all my formatting and then have to spend time re-editing and aligning all the bits again - busy people don't have time for this.
Thanks for all the great tips!
And I will see you in the new year, enough macros for me this year!
Stay Happy and well my friend
Happy 2017!
:)
And Have a Great Weekend!
Hope you are good.
I am trying to target paragraphs that ONLY have the word EDIT in them to do a search and replace.
The below should work but it does not for some reason, I tried a lot of things :(
<Macro name="Paragraph Text" category="Test" description="" publishDate="00-00-00T00:00:00.000Z" version="14">
<Comment text="Search and Replace in EDIT Paragraphs" />
<ForEach var="Paragraph">
<Array>QueryObjects("Paragraph", GetCurrentPage())</Array>
<If>
<Condition>String_Contains($Paragraph.text, "EDIT", true)</Condition>
<ForEach var="Text">
<Array>QueryText(GetCurrentPage(), "Baseball", true)</Array>
<Expression>$Text.value = "Football"</Expression>
</ForEach>
</If>
</ForEach>
</Macro>
I set it up correctly?
When you have a moment please advise
Thank you
Examples: there, theory, them, either, theories, their, rather etc.
Thanks a lot for the onestatic, I really loved it. The search & replace / highlight macros are a boon to me. However a small request : Could you please write a macro for search & apply custom style ? (This is a larger version of the search & highlight) as I want my own formatting for the searched key words instead of a simple yellow shade on them. This will be very useful to visually glance through the page and find my key words with right set of formatting applied to them.
You are an excellent programmer and this would be a piece of cake to you, but I am a layman with no knowledge of coding. I tried to edit your search & highlight macro but was not successful. Please help me in this regard. Hope you would reply at least and consider this request.
I was wondering is there anyway to search and bold?