+ Reply to Thread
Results 1 to 2 of 2

Stop Users Saving Macro Enabled File as ".xlsx"

  1. #1
    Forum Contributor
    Join Date
    06-18-2007
    Location
    Kiama, Australia
    MS-Off Ver
    365
    Posts
    119

    Stop Users Saving Macro Enabled File as ".xlsx"

    Hi Folks,

    I have an Excel 2010 macro file (.xlsm).
    For some reason uneducated users are saving it as a ".xlsx" file and then complaining that the macros don't work.
    Is there any way I can stop them from doing this?
    Last edited by OzTrekker; 11-18-2012 at 07:56 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Stop Users Saving Macro Enabled File as ".xlsx"

    Add the following code to your ThisWorkbook code module. This will trap an attempt by the user to do a "Save As" and simply save the file with the existing name. The user will never see the "Save As" dialog box. However, this will also prevent the user from trying to save the file with a different name or in a different location even if they want to keep the ".xlsm" extension. (I know of no way to allow the user to bring up the "Save As" dialog but interrupt the save if he tries to use a different extension.)
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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