March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Since importing the Office Theme Colors from "%appdata%\Microsoft\Templates\Document Themes\Theme Colors" is not possible, I have created an Excel file and some VBA that converts the selected Office Theme Colors into a Power BI Desktop Report Theme. Simply follow these four easy steps:
Select the color palette you want to convert via Page Layout > Themes > Colors
The Report Theme JSON file needs the color codes in hexadecimal format. Just click the button “Generate Hex-Codes for Colors” and a few lines of VBA will fill the cells D9 to D20. Since the JSON file needs the hexcodes in double quotes and prefixed by a hashtag, the VBA code adds them as well.
Enter a name for your theme in cell F18. The JSON file will be saved (see step 4) under this name so refrain from using special characters.
The formula in B25 uses the hexcodes from cells D9 to D20 to create the text for the JSON file:
Now click the “Save as JSON” button and select a folder where you want to save it.
If you have any suggestions for improvements, I am more than happy to hear from you and implement them!
Dominik Petri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.