This request need the help of code or add-in. To help you better, I suggest you post new threads on other forums of the link:
https://developer.microsoft.com/en-us/excel#excelcommunity
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Here are 2 links I find online, you may have a look.
how to sign a digital signature on multiple Excel files?
How to write VBA Code to add Digital Signature to protect VBAProject?
(Please Note: Since the web site is not hosted by Microsoft, the link may changed without notice. Microsoft does not guarantee the accuracy of this information.)
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.