Microsoft® Excel® based database addin

 

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    CLR Guest

    Default Copy Data Validation

    XL2k....I have Data Validation in several (not all) cells from A1:J1.

    When I change the value, or insert one, in any cell down column A, I would
    like all that Data Validation information to be copied from row 1 down to the
    activerow, without changing any values in the activerow. I can do it by
    hand, but dont' seem to be able to get there with code. Any help would be
    apprecaited.

    Vaya con Dios,
    Chuck, CABGx3



  2. #2
    admin's Avatar
    admin is offline Administrator
    Join Date
    Apr 2008
    Location
    Dublin, NYC
    Posts
    333
    Blog Entries
    1

    Default

    Hi Chuck

    You should check out the Worksheet_Change event.

    This event needs to reside within the individual worksheet in question. This will give you the base event to copy the validation down to the active row. Please look around on good for a better example or for a way to copy the validation etc. An example of the parent routine is shown below.

    Private Sub Worksheet_Change(ByVal Target As Range)

    MsgBox "You have just changed " & Target.Address

    End Sub
    Hope that helps.
    SQL Drill Support
    www.sqldrill.com


Similar Threads

  1. Copy/Paste over rides data validation
    By jk in forum Excel Setup
    Replies: 1
    Last Post: 08-05-2009, 08:06 AM
  2. Data Validation - copy/paste
    By Ken Valenti in forum Programming (VBA, VB, C# etc)
    Replies: 3
    Last Post: 06-19-2009, 09:42 PM
  3. Data Validation - copy paste !
    By Christoffer Bloch Andersen in forum Worksheet Functions
    Replies: 2
    Last Post: 03-18-2009, 01:52 PM
  4. data validation and copy/paste.......
    By MPR in forum Programming (VBA, VB, C# etc)
    Replies: 3
    Last Post: 02-02-2009, 12:27 AM
  5. Copy Paste overides data validation
    By jk in forum Programming (VBA, VB, C# etc)
    Replies: 1
    Last Post: 01-31-2009, 04:54 PM

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