@Maju Madhusudanan, Thanks for posting in Q&A. Based on my researching, a macro is a series of commands used to automate a repeated task and can be run when you have to perform the task.
It seems the word you open contain macro. So when you set VisualBasicMacroExexutionState with value DisabledwithWarnings in Intune policy, the warning will come. The issue is not on the script but on the file.
Hope the above information can help.
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.