Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-2025, 04:01 AM
Guessed's Avatar
Guessed Guessed is offline Is Customizing Word's Ribbon UI Safe? Windows 10 Is Customizing Word's Ribbon UI Safe? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default


You've asked a bunch of questions and some are relatively painless to answer.
Quote:
Are there modern alternatives to RibbonX Editor?
Yes, there are relatively inexpensive tools that you can buy to edit ribbons with.
Quote:
Is there any way to edit the XML other than using RibbonX Editor? For example, can I change the .dotm file to a .zip, edit its XML code, repackage it as a .zip, and then change it back to a .dotm file? I tried this, but it didn’t work.
Absolutely, you can edit the zip file's xml components but as you discovered, it won't work if you make a mistake with the code. Editing the zip file is easy but it is also easy to make a mistake which prevents the ribbon code from loading.

Quote:
How can we verify template security?
It is possible to create ribbon customisations that don't require vba code. So in that case your dotx/docx file is already safe and therefore trusted. However most customised ribbons do make use of code and the authoring of vba code is easier than the authoring of ribbons. Assuming your customisation requires code then (as recommended by Italophile) you would sign the code in the file and install the public key certificate on your user's machines so they can see the file is trusted.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #2  
Old 01-18-2025, 05:24 AM
syl3786 syl3786 is offline Is Customizing Word's Ribbon UI Safe? Windows 10 Is Customizing Word's Ribbon UI Safe? Office 2019
Advanced Beginner
Is Customizing Word's Ribbon UI Safe?
 
Join Date: Jan 2023
Posts: 97
syl3786 is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
You've asked a bunch of questions and some are relatively painless to answer.

Yes, there are relatively inexpensive tools that you can buy to edit ribbons with.

Absolutely, you can edit the zip file's xml components but as you discovered, it won't work if you make a mistake with the code. Editing the zip file is easy but it is also easy to make a mistake which prevents the ribbon code from loading.


It is possible to create ribbon customisations that don't require vba code. So in that case your dotx/docx file is already safe and therefore trusted. However most customised ribbons do make use of code and the authoring of vba code is easier than the authoring of ribbons. Assuming your customisation requires code then (as recommended by Italophile) you would sign the code in the file and install the public key certificate on your user's machines so they can see the file is trusted.
Thanks for the detailed explanation!

I’ve been thinking about how to handle deploying macros in an organization, especially with the rise of AI-generated code. Do you have any suggested workflows for rolling out new macros to multiple users?

I ask because I’ve seen cases where users rely on AI to generate VBA code, and while it’s great for quick solutions, it can also lead to security issues. For example, I once came across a Word macro that someone created using AI—it automatically searched selected text on Google. At first glance, it seemed harmless, but it ended up triggering antivirus alerts because it was flagged for potentially malicious behavior (turned out there was a trojan in the code).

So, I’m curious:

How do you balance the convenience of AI tools with the need for secure, reliable macros?

Do you have any tips for ensuring macros are safe before deploying them across an organization?

Looking forward to hearing your thoughts!
Reply With Quote
  #3  
Old 01-18-2025, 07:29 AM
Italophile Italophile is offline Is Customizing Word's Ribbon UI Safe? Windows 11 Is Customizing Word's Ribbon UI Safe? Office 2021
Expert
 
Join Date: Mar 2022
Posts: 555
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Quote:
Originally Posted by syl3786 View Post
How do you balance the convenience of AI tools with the need for secure, reliable macros?
Ban the use of code generated by Artificial Idiocy.

Quote:
Originally Posted by syl3786 View Post
Do you have any tips for ensuring macros are safe before deploying them across an organization?
  • Always write the code yourself.
  • Never use code from the internet unless you fully understand what each line does.
  • Get a code signing certificate and sign your code.
  • Set macro security to "Disable all macros except digitally signed macros"
  • Accept that there is no such thing as "safe", there are only managed risks.
  • Accept that it will be necessary to educate the organization's IT staff as they will be risk averse by default.
Reply With Quote
  #4  
Old 01-19-2025, 07:02 AM
syl3786 syl3786 is offline Is Customizing Word's Ribbon UI Safe? Windows 10 Is Customizing Word's Ribbon UI Safe? Office 2019
Advanced Beginner
Is Customizing Word's Ribbon UI Safe?
 
Join Date: Jan 2023
Posts: 97
syl3786 is on a distinguished road
Default

Quote:
Originally Posted by Italophile View Post
Ban the use of code generated by Artificial Idiocy.


  • Always write the code yourself.
  • Never use code from the internet unless you fully understand what each line does.
  • Get a code signing certificate and sign your code.
  • Set macro security to "Disable all macros except digitally signed macros"
  • Accept that there is no such thing as "safe", there are only managed risks.
  • Accept that it will be necessary to educate the organization's IT staff as they will be risk averse by default.

Thank you for sharing your insights and advice on balancing the convenience of AI tools with the need for secure and reliable macros.

Your emphasis on understanding code, using code signing certificates, and managing risks is invaluable. I also appreciate your practical tips, such as setting macro security to disable unsigned macros and the importance of educating IT staff.

Your perspective on managed risks and the proactive steps you outlined are incredibly helpful for anyone navigating this space. Thanks again for your thoughtful contribution!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Customizing Ribbon to load Templates Paralegal101 Word 1 12-10-2020 06:13 AM
Customizing the ribbon: Message tab on reply oleander Outlook 0 10-15-2018 10:17 AM
How to import the customized ribbon to Word without overwriting the existing Ribbon? SharonSh Word VBA 0 09-26-2013 11:47 PM
Is Customizing Word's Ribbon UI Safe? Customizing Ribbon in Excel Mixer Excel 3 03-19-2013 01:52 AM
Is Customizing Word's Ribbon UI Safe? Word won't open except safe mode netmouse Word 2 02-25-2009 06:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft