+ Reply to Thread
Results 1 to 2 of 2

Need help with BeforeSave script that makes the user continue to use the workbook after

  1. #1
    Registered User
    Join Date
    01-11-2020
    Location
    Norway
    MS-Off Ver
    Microsoft Office 2019
    Posts
    74

    Need help with BeforeSave script that makes the user continue to use the workbook after

    Hi,

    So, quick background story

    I needed to secure my workbook the best way possible, in which I have done a good job except for one small "glitch" and that is if people want to save the workbook as an XLSX file and not a macro activated XLSM file, they are able to and can then access all the information that does not have macros in it.

    So, I thought that I nice way to fix this was to make sure that I password protects all the sheets when users exit or save the workbook. In short:

    If workbook is closed:

    Please Login or Register  to view this content.
    And Before saving:

    Please Login or Register  to view this content.
    So, the problem is basically with the last code... The code is working fine, but the problem is that if the user only wants to save the project and then continue working on it, he basically need to manually open all sheets again.
    Now, I have a script that opens all sheets at startup of the workbook, but I do not want to force the user to exit the workbook every time he wants to save his work.


    So, in short, is there a line or two that I can add to my code that makes it possible for the user to save his project and still be able to work in it (without manually opening all the sheets again) without exiting the file and reopen it again?

    Thanks in advance for any help regarindg this issue

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Need help with BeforeSave script that makes the user continue to use the workbook afte

    How about
    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)

Similar Threads

  1. [SOLVED] resume a macro after user makes some changes to file
    By xi603 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-14-2017, 06:09 PM
  2. [SOLVED] Workbook BeforeSave Event causing workbook to close
    By Jo2710 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-18-2014, 12:33 AM
  3. [SOLVED] Gray out cells until user makes input
    By jbeeball in forum Excel General
    Replies: 3
    Last Post: 05-21-2012, 12:48 PM
  4. BeforeSave code makes excel crash every time
    By keb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-05-2011, 03:04 PM
  5. Auto Continue Script After 1minute
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-04-2011, 04:06 PM
  6. BeforeSave and SaveAs to either save at predefined folder or let the user choose
    By Snyder in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2010, 07:18 PM
  7. Save workbook when user makes changes
    By James12 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-25-2009, 03:19 PM

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