my excel sheet is being constantly blocked!

Iulia Pintrijal 20 Reputation points
2025-08-08T10:06:09.4166667+00:00

I have been having this issue for months now but my patience is running thin. I am paying for a business license to be able to use Python on excel. This way, I got an email address with @onmicrosoft.com. I am logged in in my excel. I did go to trust center and gave all the permissions. One day it works, next day it doesnt....for months! I dont have any "unblock" button in the file properties.

It tell me that my file is a security risk even though its created on my PC. It tells me upload is blocked cause they are not sure i have permission and i should sign in. When i try to sign in, tells me i cant use a work or school account even though is A BUSINESS ACCOUNT. So i log in with the personal one...works util the first save. And no, i dont have autosave on either. Like i have tried everything. Can someone please give e a proper answer as to why this is still happening, please?

Thank you!

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. Alina-Le 1,040 Reputation points Microsoft External Staff Moderator
    2025-08-08T13:34:47.9933333+00:00

    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.
    • User's image

    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

    1. In Excel, go to "File" -> "Save As".
    2. You’ll see a list of locations:
      • OneDrive & Your Company Name → This is your business cloud storage.
        • This PC - This is your local computer.

    If your file is already saved, Excel will show the current location at the top of the Save As window.

    User's image

    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 User's image
    • 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.User's image


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.