I can't save excel after edited the code

Anonymous
2022-06-23T10:36:26+00:00

I am getting this message before saving my work on excel workbook.

Please explain why this happen and what shall I do please.

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Rory Archibald 18,875 Reputation points Volunteer Moderator
    2022-06-23T10:40:16+00:00

    If you need to keep the code, you will have to save the workbook in a macro-enabled format (eg xlsm rather than xlsx). If you don't need the code, just press Yes.

    0 comments No comments
  2. Anonymous
    2022-06-23T11:52:32+00:00

    Thank you Rory for your swift reply.

    I chose yes because I want to keep the macro, but what does it mean (macro free) please?

    I clicked save but the macro disappeared. I want to keep the macro please.

    0 comments No comments
  3. Rory Archibald 18,875 Reputation points Volunteer Moderator
    2022-06-23T12:31:00+00:00

    Clicking Yes removes the macro (that's what macro-free means). You needed to click no, and then use the File - SaveAs option to save the file as a macro enabled file.

    1 person found this answer helpful.
    0 comments No comments