+ Reply to Thread
Results 1 to 3 of 3

Save program and back to main menu issue ?

  1. #1
    Registered User
    Join Date
    06-06-2017
    Location
    London, Ontario
    MS-Off Ver
    2007
    Posts
    7

    Save program and back to main menu issue ?

    I am using the code below in ThisWorkbook to lock cells on a sheet when the program is saved, and it works perfectly.
    Ideally, when the user exits this sheet with the 'Main Menu' button, it would save at that point, then go to the main menu tab.

    Every variation of adding a save option to the 'Main Menu' button (which is simply 'Sheets("main menu").Select) does not seem to work.
    It seems to run the first Sub but not the second one.

    Any thoughts?

    Please Login or Register  to view this content.
    Hopefully it is something simple that I'm overlooking, but I've run out of my own thoughts.

    Thank you !
    Last edited by Rodger Colmar; 06-25-2017 at 01:31 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Save program and back to main menu issue ?

    It's got to be:

    Please Login or Register  to view this content.
    You cannot change the event code name!
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    06-06-2017
    Location
    London, Ontario
    MS-Off Ver
    2007
    Posts
    7

    Re: Save program and back to main menu issue ?

    Hey, Thanks for getting back so fast!
    The code change you suggested actually stopped the process from working.
    Normally it asks to lock the cells where inputs were made, and locks them. With the change, it no longer asks, or locks the cells.

    The code was working fine as is when I hit the 'save' button, but if I add a 'save' command to a CMD button, it doesnt work the same.

+ 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. Main Menu
    By inteliits in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2015, 07:29 PM
  2. Closing sheets as I jump back to main sheet
    By dollydoodah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2011, 09:45 AM
  3. comparison criteria before main program
    By alexander_lazo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2010, 12:39 PM
  4. [SOLVED] How take form based data entry back to main sub?
    By Chet in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2006, 04:45 PM
  5. [SOLVED] [SOLVED] How take form based data entry back to main sub?
    By Chet in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2006, 03:59 PM
  6. Main Menu
    By Syed Haider Ali in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-24-2005, 02:58 AM
  7. Main menu is missing
    By Deb G in forum Excel General
    Replies: 3
    Last Post: 05-10-2005, 03:06 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