Share via

"The following features cannot be saved in macro-free workbooks"

Anonymous
2012-10-23T08:31:10+00:00

Original Title: Save without macro

Hi

I have a excel template with a macro in it (to set a static date)

I want to save it as a workbook without the macro and without the warning:

"The following features cannot be saved in macro-free workbooks"

Please help

Jacob

Microsoft 365 and Office | Excel | For home | 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
Answer accepted by question author
  1. Anonymous
    2012-10-23T22:54:25+00:00

    Hi Jacob

    Presumably the macro runs when a new file is opened from the template?  If so, put something like this at the end of the macro:

    Application.DisplayAlerts = False

    ActiveWorkbook.SaveAs "C:\My File.xlsx", xlOpenXMLWorkbook

    Application.DisplayAlerts = True

    Setting DisplayAlerts to False stops the warning from being displayed.

    Obviously replace the path & filename with something appropriate.  If you want to prompt the user to choose the file name & path you will need to adopt something like this to retrieve it.

    Cheers

    Jeff

    10 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful