+ Reply to Thread
Results 1 to 3 of 3

Macro that alows only saving as .xlsm or .pdf funtion

  1. #1
    Forum Contributor
    Join Date
    06-25-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    201

    Exclamation Macro that alows only saving as .xlsm or .pdf funtion

    Hi... I have an workbook with protected VBA code and protected sheets. I know that excel environment is not safe at all and this passwords can be cracked. Either way i want to dificult a little more these from happening by not allowing the user to save the workbook in other formats than PDF or xlsm. This way (as VBA code is protected in xlsm file) they cant save the workbook in xls for then create a macro that allows them to unlock the worksheets. So if i prevent them to save the file in xls them they will have to break the VBA to write the macro to unlock the sheets. Thats way i need this macro. Is there any way of doing this? I also have a macro in a button, in a sheet, that saves 3 pages of that worksheet into PDF. Thats why i need the macro to allow save as PDF too.

    Thank you

  2. #2
    Forum Contributor
    Join Date
    06-25-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: Macro that alows only saving as .xlsm or .pdf funtion

    I think it may be something to do with this:
    Please Login or Register  to view this content.
    But this prevents ALL save as... And i want it to allow user to change name, but only if it is in file format xlsm or pdf.

  3. #3
    Registered User
    Join Date
    06-01-2011
    Location
    Minnesota, US
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Macro that alows only saving as .xlsm or .pdf funtion

    The below works for me. I can't remember where I found it. It will only allow saving as a .xlsm. It will not allow saving as .pdf except if you use "Save and Send".

    Please Login or Register  to view this content.

+ 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