+ Reply to Thread
Results 1 to 2 of 2

Keep Application hidden when Userform and Workbook gets closed

  1. #1
    Registered User
    Join Date
    03-22-2014
    Location
    Montreal
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1

    Keep Application hidden when Userform and Workbook gets closed

    Hi,

    I have created a Userform and I use Application.Visible = False (also tried Application.Left = -999). I ask for the Application to become visible with Before_Close event. The problem is that the Workbook stays opened (in the toolbar). If you then try to close it, it asks to SAVE CHANGES (even if I added the code Application.DisplayAlers = False) and the hidden worksheet becomes visible to users. Since the information in the back is confidential, I have to make sure it always stays hidden. I'm getting pretty frustrated since I can't find an answer anywhere. Does anyone have a solution for me?

    Thanks in advance!



    See attached file.
    Attached Files Attached Files

  2. #2
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Re: Keep Application hidden when Userform and Workbook gets closed

    Try this PAYOUT.xlsm

    I took he liberty of editing your UserForm code to add an option of allowing you the administrator to edit the sheet.

    To do so type "admin" where the userform requests the employee number and the workbook becomes visible again.

    One thing I noticed was that the employee number box only allows a maximum of 7 digits but all your employee numbers are 8 digits.

    Let me know if you have any questions.
    If your questions has been answered to your satisfaction please don't forget to do the following:

    Add Reputation ... and ... Mark Thread as Solved

    Thanks,

    Ma 10:8b Freely you have received; freely give.

+ 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. Worksheets are not protected when workbook is closed via Application.OnTime Method
    By Shanthan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2013, 12:06 AM
  2. [SOLVED] Close application if last workbook is closed
    By Rob* in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2012, 02:52 AM
  3. Hidden Userform shows instead of Worksheet after Application.Goto
    By bdoodle in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-06-2012, 01:54 PM
  4. Getting Data from closed workbook into userform
    By www.butterflysystems.co.uk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-19-2006, 05:00 PM
  5. Closing Hidden Workbook when Active Workbook is Closed
    By SusanK521 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-23-2005, 08:05 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