Rainbow your notebooks and sections

This macro will color all your notebooks and sections as a rainbow. Feel free to enter the macro and modify the color array (also the if statements)

Download

Author(s) : Onetastic ★, Alvaro
Category : Color
Last Updated : June 05, 2021
Requirements : OneNote 2010 or above
Changelog :

June 05, 2021 (3742EE) - Onetastic ★
Fixed errors when a section is password protected or readonly. This macro will now skip those sections

November 28, 2019 (705B85) - Alvaro
Corrected the V2. There was one color that was out of order. Now good pastel color code

November 27, 2019 (67BB26) - Alvaro
New rainbow color scheme. It´s now based on pastel colors and ads 6 more categories

April 02, 2019 (FC43B0) - Alvaro
Initial Version

Comments

Name
Comment
Bronwyn - 2026-10-13
This program only did 13 notebooks and the remainder are all pink. What can I do to have this macro colour the rest of the notebooks?

Further another macro could be to rainbow color the sections within a note book.

Thank-you
lml - 2025-01-14
there is a small mistake in the code, that makes notesbooks can not loop the colors
$i = 0 should be $ni = 0
Cynthia1 - 2021-03-17
Errors out if you use password protection.