
Good day @Iulia Pintrijal
Welcome to Q&A forum!
Thank you for bringing this to our attention. I agree that it's unacceptable for you to encounter inconsistent behavior despite having a business account.
To make sure we're on the same page, please confirm a few things so I can address your issue correctly:
- Could you provide the exact error message related to the "security risk" in your Excel file? (If possible, you can share screenshots to help me understand the issue better.)
- Does this issue occur only with this specific Excel file, or does it happen with other files as well? (You can try creating a new file to see if the problem continues.)
During the confirmation period, I’d also like to share a few troubleshooting steps to see if they help resolve the issue. Let’s work together to identify the root cause and find the best way to support your use of Python in Excel.
1. Update Excel
- To get started, please log in to your business account
- Go to File -> Account -> Update Options -> Update Now.
- Make sure you’re on the latest version — Python in Excel is still evolving and updates often fix bugs.
-
You can see the latest update for Excel here: Release notes for Current Channel
2. Start Excel in Safe Mode:
- Press Windows Key + R to open the Run dialog.
- Type:
excel /safe
- Press Enter.
Excel will open in Safe Mode. Try opening your Python-enabled file and see if the issue persists.
Start Excel in Safe Mode - Microsoft Support
3. Check File Location
- In Excel, go to "File" -> "Save As".
- You’ll see a list of locations:
- OneDrive & Your Company Name → This is your business cloud storage.
- This PC - This is your local computer.
- OneDrive & Your Company Name → This is your business cloud storage.
If your file is already saved, Excel will show the current location at the top of the Save As window.
3. Clear cached Credentials
First, you need to sign out all accounts in Excel
- Go to File -> Account.
- Click Sign out from all listed accounts.
- Close your Excel completely.
Open Windows Credential Manager:
- Press Windows Key + S, type Credential Manager, and open it.
- Go to Windows Credentials.
- Click on any entries related to: MicrosoftOffice, Excel, OneDrive, your @onmicrosoft.com or your personal account, etc and choose Remove
- Credential Manager in Windows
- After that, you can use only your @onmicrosoft.com business account.
- Make sure it shows as licensed under “Product Information.”
4. Check Your License Type
Just in case your license wasn't assigned correctly to your business account.
- Visit My account
- Confirm that your business account has a Microsoft 365 Business Standard or higher license.
(Please understand that while we may not be able to resolve your issue in our initial response, but we’re committed to working with you to clarify the situation and provide as much support as possible.)
Looking forward to hearing from you!
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.