+ Reply to Thread
Results 1 to 4 of 4

Require input data in certain cells if other cells are filled before saving

  1. #1
    Registered User
    Join Date
    03-17-2013
    Location
    Surrey, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    Require input data in certain cells if other cells are filled before saving

    Hi,

    I have a spreadsheet and I need to make it mandatory to fill in F8, if there is data in D8, so it will not be possible to save the document without an option being chosen from the F8, dropdown.

    Any help on doing this would be greatly appreciated?

    Thanks,

    Mark
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Require input data in certain cells if other cells are filled before saving

    Give this a shot. This will go in the ThisWorkbook code section.

    Please Login or Register  to view this content.
    Perhaps it was the Noid who should have avoided me...
    If you are satisfied with my solution click the small star icon on the left. Thanks
    1. Make a copy of your workbook and run the following code on your copy (just in case)
    2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
    3. Paste the code from above into the empty white space. Close the VBE.
    4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".

  3. #3
    Registered User
    Join Date
    03-17-2013
    Location
    Surrey, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Require input data in certain cells if other cells are filled before saving

    Sorry but I am very new to VBA and have not done this before, where do I go to enter this code?

  4. #4
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Require input data in certain cells if other cells are filled before saving

    - With excel open, press ALT+F11 to open the Visual Basic Editor (VBE).
    - Ensure "View" > "Project Explorer" is active.
    - From the left, double-click the project carrying the file name.
    - "ThisWorkbook" should now be visible. Double-Click.
    - In the empty white space at right, copy paste the code I provided.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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