+ Reply to Thread
Results 1 to 2 of 2

Lost macro when saving as Non-Macro Enabled Workbook

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    UK
    MS-Off Ver
    2016
    Posts
    6

    Lost macro when saving as Non-Macro Enabled Workbook

    Hi All

    I have written some macro code in a workbook, I then inadvertently saved the file as .xlsx file and not .xlsm
    I don't recall seeing the prompt that says "you must save as macro enabled" (or whatever the message is), but either way I missed it.

    When I reopen the .xlsx file the macro is still functioning, but I cannot find the code anywhere!

    I have removed all protection from the worksheets and workbook.
    The macros window (Alt+F8) shows no macros.
    The VBAproject window (Alt+F11) shows no code, in either of the two worksheets or ThisWorkbook, also there are no Modules displayed.

    I've tried saving the existing file as a Macro-Enabled workbook (.xlsm) but it acts exactly the same way as the original file I.e. no visible code, but macro functions.

    The macro itself runs automatically when a specific cell is changed.

    The code must be there somewhere because it's functioning, please help

    Many thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Lost macro when saving as Non-Macro Enabled Workbook

    If you saved it as .xlsx, then the macro has been removed - permanently, and I dont see how it can still be working if it does not exist any more?

    Perhaps the macro was saved in your Personal File?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Saving Macro-Enabled Workbooks.
    By raffyjavellana in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2015, 02:01 AM
  2. Saving Macro-enabled workbook in e-docs DM
    By Masken in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2014, 05:25 AM
  3. [SOLVED] Macro to Saving Workbook Sheets as Separate Macro-Enabled Workbooks
    By puppetpalace in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-03-2013, 01:58 PM
  4. [SOLVED] Saving workbook as 2003 xls then reopen macro enabled workbook
    By JPalms in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2013, 01:24 PM
  5. Saving just as macro-enabled Workbook possible?
    By The Intern in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-18-2011, 07:09 AM
  6. Replies: 2
    Last Post: 02-24-2011, 05:17 PM
  7. New Workbook from Macro Enabled Template Lost Sheet Protection
    By wthomas206 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-23-2009, 06:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1