+ Reply to Thread
Results 1 to 2 of 2

Required fields pop up message when trying to save/close

  1. #1
    Registered User
    Join Date
    05-22-2022
    Location
    Texas City, TX
    MS-Off Ver
    2016
    Posts
    30

    Required fields pop up message when trying to save/close

    I would like to have a pop up message for required fields when users are trying to save/close the spreadsheet

    However, I have 3 worksheet tabs of required fields

    The same excel file is to be shared by 3 different users, that will use their own specific worksheet tab. (Operator/Forklift/Maintenance)

    The guy I'm doing this for insists on only 1 excel file because the users might have to do work in other tabs if someone is not at work.

    Is it possible to have a pop up message on each tab and it not conflict with the required fields on the other tabs?
    For example, work is only entered in Operator tab and not the other 2 tabs.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Required fields pop up message when trying to save/close

    The code to check for missing fields can be a lot more sophisticated.... this just gives you the general idea.

    1) Copy this code.
    2) Open the VBE (press Alt-F11)
    3) Select your workbook in the project explorer
    4) Double-click the ThisWorkbook object
    5) Paste the code into the window that appears.
    6) Save the file as a macro-enabled .xlsm file.

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 07-15-2022 at 02:35 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. VBA required to save all changes open PDF & close it
    By amb2301 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-19-2017, 12:44 PM
  2. Macro to close and save file with message box - error button to be clicked twice
    By Martijn79 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-18-2017, 05:32 AM
  3. [SOLVED] Need help with making fields required before save/print/close
    By tnsvolley in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-07-2016, 07:01 PM
  4. Make multiple fields required in form before save
    By tclemente in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-03-2014, 12:34 PM
  5. Macro-Verify required fields before proceding with routine (save)
    By pjbassdc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-13-2012, 01:48 AM
  6. Won't Save if Required Fields are not Filled out
    By bronkista in forum Excel General
    Replies: 1
    Last Post: 07-29-2011, 04:10 PM
  7. How to disable save message when I click the cross to close the file
    By hon123456 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2006, 02:20 AM

Tags for this Thread

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