+ Reply to Thread
Results 1 to 5 of 5

Closing a workbook with the menu hidden

  1. #1
    Registered User
    Join Date
    02-12-2008
    Posts
    48

    Closing a workbook with the menu hidden

    Hi. When I open up a workbook, I made the menu to be hidden so that users do not get to manipulate the functions. Question is this : how do code a command button to save & close the workbook once the user is done entering some data? Any help is greatly appreciated.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Closing a workbook with the menu hidden

    Hi

    Please Login or Register  to view this content.
    Last edited by Fotis1991; 05-08-2014 at 06:30 AM. Reason: added line for close the workbook
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    02-12-2008
    Posts
    48

    Re: Closing a workbook with the menu hidden

    Quote Originally Posted by Fotis1991 View Post
    Hi

    Please Login or Register  to view this content.
    Thanks Fotis1991, this saves the workbook but does not close it. How do I do a close and exit? Thanks!

  4. #4
    Registered User
    Join Date
    02-12-2008
    Posts
    48

    Re: Closing a workbook with the menu hidden

    OK, I tried ThisWorkbook.Close and it worked! Thanks!

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Closing a workbook with the menu hidden

    You are welcome and thanks for the feed back(Also see the edited code in my first post).

+ 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. Creating new workbook, saving as csv and then closing - but closing always fails.
    By ella626 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2014, 10:05 PM
  2. How to have open a hidden sheet / hide on closing
    By danieluk9 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-10-2014, 01:14 PM
  3. VBA Function Vlookup data from Hidden sheet in hidden workbook
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2008, 11:22 PM
  4. Why delete menu items before closing?
    By dellphinus in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-24-2008, 09:09 AM
  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