Forum Discussion
Man Fai Chan
Aug 17, 2019Iron Contributor
VBA to trust macro in another workbook
I know how to use VBA to open another workbook. However, if the opened workbook is macro-enabled and NOT being trusted before, is it possible to open it with trust? For example, there are two fil...
Aug 18, 2019
Man Fai Chan This behaviour is by design and it is meant to protect you. If it were possible to trust another macro-enabled workbook, just by opening it using a trusted file's VBA, that could be exploited by people with malicious intent and wreak havoc.
So, if you want to run the code in the other workbook, trust it first.