+ Reply to Thread
Results 1 to 3 of 3

Prevent saving unless the data is filled

  1. #1
    Registered User
    Join Date
    02-04-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Post Prevent saving unless the data is filled

    Hi,

    I have a query regarding VBA
    i have a range of data which consists of Loan number, Loan type, Lender name, Status, Reviewer Name, ID, date & timings
    i want to create a vba code by which if the Loan number has been entered then all the fields adjacent to it has to be filled, if its not then vba will not allow to save the excel and pop up should show suggesting that all the fields has to be entered.workdir.xlsworkdir.xls

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Prevent saving unless the data is filled

    Put this code in the ThisWorkbook code module
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: Prevent saving unless the data is filled

    hi AlphaFrog .You 'mist' a 'must' there!
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

+ 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. [SOLVED] Password to Prevent Saving
    By prjt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2014, 02:43 PM
  2. [SOLVED] Prevent clicking the submit button until all fields are filled out
    By rbpd5015 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2014, 02:08 PM
  3. VBA to prevent saving if any cells are filled with a certain color
    By ks26 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-29-2014, 04:53 PM
  4. Require input data in certain cells if other cells are filled before saving
    By Jenkins86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 08:07 PM
  5. prevent a sheet from saving
    By CappyLarou in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2011, 09:08 AM
  6. Prevent saving
    By LydiasDad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-11-2011, 02:40 PM
  7. How to prevent cursor from moving behind filled cells
    By Spreadsheet Slave in forum Excel General
    Replies: 1
    Last Post: 04-04-2005, 09:06 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