+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Macros disappear after saving file, closing it and opening again?

  1. #1
    Registered User
    Join Date
    03-02-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2003
    Posts
    10

    Exclamation Macros disappear after saving file, closing it and opening again?

    Hi

    I created A workbook with a few macros. After I saved the workbook, close it and ope it all the macros have gone.
    when i click on a button (assigned to a macro) it says "cannot run the macro "workbook.xlsx'!Nextinvoice'. The macro may not be available in this workbook or all macros are disable."
    after that another error comes up saying "an error occurred while initializing the VBA libraries (40040)"

    I tried reinstalling ms office 2007 and still doesnt work
    can you please help?

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Macros disappear after saving file, closing it and opening again?

    You need to save your workbook in macro-enabled format which has the suffix .xlsm
    Martin

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macros disappear after saving file, closing it and opening again?

    You must be getting and ignoring a message alerting you to the file format required
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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