A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Dear @FELICIA DORRUTHA STEENBERG,
I understand that you have an Excel workbook with written VBA macros. Right now, macros are disabled, so your VBA code won’t run.
To better assistance, could you please confirm following information:
- What exact message do you see in Excel?
- What is the file extension: .xlsm / .xltm / .xlam / .xlsx?
- Where is the file saved (local PC, OneDrive/SharePoint/Teams, network drive, or downloaded from email/web)?
- When you go to File > Options > Trust Center > Trust Center Settings > Macro Settings, are the options clickable or greyed out?
- Is this a school-managed Windows device (IT-managed) or your personal device signed in with a school account?
In the meantime, I recommend as below:
Step 1: Confirm macro-enabled file type
If the file is not macro-enabled, have them save as: Excel Macro-Enabled Workbook (*.xlsm)
Step 2: Enable Macros When Prompted
Open the .xlsm file in Excel.
If you see a Security Warning message at the top, click Enable Content.
If you do not see this message, the file may be fully blocked by Windows.
Step 3: Enable macros for this specific file
If you see a Security Warning bar, select Enable Content and confirm making the document trusted.
Step 4: Unblock the File in Windows
Close Excel > Right‑click the .xlsm file > Properties
On the General tab, look for an Unblock checkbox > Check Unblock > Apply and OK.
Reopen the file in Excel and click Enable Content if prompted.
Step 5: Use a Trusted Location
Instead of enabling macros repeatedly, store the workbook in a Trusted Location: Open Excel > Go to File > Options > Trust Center > Select Trust Center Settings > Trusted Locations > Click Add new location and choose the folder containing the .xlsm file.
(Optional) Enable Subfolders are also trusted.
Click OK, close Excel, and reopen the file.
Files opened from trusted locations will run macros without warnings.
Not: If the Developer tab is missing, please enable it via: File > Options > Customize Ribbon > All Tab > check “Developer” > Choose ">> Add" > OK
Please understand that the initial response does not always resolve the issue immediately. However, with your help and more detailed information, we can work together to find a solution.
Your detailed response will help us diagnose and investigate the issue more efficiently. If I misunderstood what you’re looking for, feel free to let me know or share a screenshot. I’d be happy to help further!
Thank you for your cooperation. I'm looking forward for your reply.
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.