+ Reply to Thread
Results 1 to 2 of 2

Rechecking data validation, without the use of pressing f2 in every cell.

Hybrid View

  1. #1
    Forum Contributor rajeshturaha's Avatar
    Join Date
    08-22-2012
    Location
    Assam, India
    MS-Off Ver
    Excel 2003, 2007
    Posts
    236

    Rechecking data validation, without the use of pressing f2 in every cell.

    Hi to all,
    I have a excel sheet that contain data validation for checking character lenth. If i copy / paste a value in that cell the validation doesn't check, until i press f2 for rechecking. The file contain around 1000 cell in each colomn with several rows with different validation viz date check, number check, and every time i have to press f2 in each cell. Any other option, plz help

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Rechecking data validation, without the use of pressing f2 in every cell.

    Copy paste will override the data validation. Data Validation will work when manual input occurs. So just add a piece of code to disable copy paste In The Validation Range.

    Try some thing like this to restrict copy/paste.

    Do right click on sheet tab and paste the below code. Return to excel and check.


    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    
    If Intersect(Target, Range("A1:A5")) Is Nothing Then Exit Sub
    Application.CutCopyMode = False
    
    End Sub


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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. Data Validation: Navigating list by pressing first letter ..
    By jaymanwani7 in forum Excel General
    Replies: 6
    Last Post: 11-05-2012, 01:33 PM
  2. Replies: 0
    Last Post: 05-09-2012, 09:26 AM
  3. validation rules not working when someone copy paste data on validation cell
    By jthakrar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-17-2010, 03:36 AM
  4. Replies: 2
    Last Post: 04-03-2009, 02:17 PM
  5. [SOLVED] Validation Data using Validation Table cell range.....
    By Dermot in forum Excel General
    Replies: 10
    Last Post: 01-30-2006, 09:35 PM

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