Is it possible to change the Excel extension of a solution I have created in Visual Studio?

Ricardo Freccero 1 Reputation point
2022-11-04T21:04:41.207+00:00

I was working on a solution in Visual Studio and I just realized that the Excel file in my solution has the .xlsx extension but I need it to be .xlsm.
I tried changing the extension directly in the solution explorer window in VS but it doesn't work since it won't let me run the Excel file after.

If this is not possible, is there any way to export the modules and Excel sheets I already have created to a new solution that has the Excel with the .xlsm extension?

Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,671 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ceasar Chen_MSFT 4,391 Reputation points
    2022-11-08T01:30:53.86+00:00

    Hi, @Ricardo Freccero
    You can change the save format of the file to .xlsm in Save As. Or try a free file format converter online.


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.


  2. Oskar Shon 866 Reputation points MVP
    2022-11-09T16:51:12.653+00:00

    You can't rename your extension just like that. That is not a letter only but deferent file structure.
    SaveAs is a right option.

    0 comments No comments