+ Reply to Thread
Results 1 to 1 of 1

Stop data entry if adjacent cell is blank - VBA code

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    Montreal
    MS-Off Ver
    Office 2007
    Posts
    9

    Stop data entry if adjacent cell is blank - VBA code

    Hello,

    This may be easy for some of you but I am a bit stuck. I created a database table where users do data entry in excel.

    What I am kindly requesting help on is the following: if a cell in Column A is blank, they shouldn't be able to input any data to the corresponding adjacent cell in Column B. I want to implement this constraint from A to AH. I have data from A to AH but a macro that will loop through all columns will be great. I know that this is possible through Data Validation but I already created drop-down lists for data validation for those columns. The only way I can do this seems like VBA.

    Also I really appreciate if someone can help me out with putting specific criteria for some columns. Let's say if repair result in one column is failed, it is either scrap or rework. Likewise, all the data generated through drop down lists.

    I tried the following but it doesn't seem like working:

    Please Login or Register  to view this content.
    Last edited by iecbso; 10-29-2015 at 08:47 AM.

+ 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. Stop Code From Running If A Cell is Blank
    By djfatboyfats in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-18-2014, 07:05 AM
  2. restrict data entry basing on adjacent cell value
    By tkraju in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2014, 01:45 PM
  3. [SOLVED] Code to list cells with adjacent blank cell in userform listbox.
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 6
    Last Post: 12-24-2013, 10:27 PM
  4. Prohibit data entry based on adjacent cell
    By davemus in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-15-2013, 03:30 AM
  5. Replies: 0
    Last Post: 07-25-2012, 05:40 PM
  6. Replies: 1
    Last Post: 07-12-2012, 03:41 PM
  7. Move to next cell (not adjacent) for data entry
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-11-2007, 06:48 AM
  8. How do I stop text displaying in blank adjacent cells?
    By CathyMcK in forum Excel General
    Replies: 3
    Last Post: 02-21-2005, 11:06 AM

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