+ Reply to Thread
Results 1 to 4 of 4

Validation not moving along with sorting

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Validation not moving along with sorting

    Hi

    In the attached workbook the data is transferred from a userform.(original workbook with userform can't be uploaded due to some complexity). the validation in C column is added while the data was transferred from the useform taking the value of a control as validation message of course at run-time.

    My main problem is
    When I sort the worksheet, the validation doesn't changes its position with the sorted values. I googled the problem but can't find any solution.

    CAN WE MOVE THE VALIDATION WITH SORTING?

    Help would be highly appreciated

    Thanks in advance

    Best Regards
    Imran Bhatti
    Attached Files Attached Files
    Teach me Excel VBA

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Validation not moving along with sorting

    Your validation is to lists in external documents so I can't test or validate the issue. However, I have a suggestion that might work: Format the data as an Excel Table.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Validation not moving along with sorting

    Hi deflak thanks for the review.

    I need to move the validation of only C column which is not from outside ducument. "Show input message when cell is selected" type validation.

    And I noticed the Excel Table also fails to move the validation alsongwith sorting.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Validation not moving along with sorting

    I see the issue now. I created a short, similar set of data in another worksheet, and the validation does not move with it either, so that makes regional settings or some other settings an unlikely source of the issue.

    The validation stays locked to the cell. I think that is the way Excel is designed

    The only way I've figured out how to move the validation is to cut and paste it somewhere else. I can think of a rather clumsy way of making it happen.
    1. Make a copy of the table
    2. Sort the new table.
    3. Run code to find the person on the original table
    4. Apply the old validation to the new location

+ 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. VBA Sorting moving cell names
    By jtdew in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2013, 09:50 PM
  2. Sorting a moving range.
    By tmboggs10 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2012, 06:48 PM
  3. Sorting and moving information
    By indy31 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-04-2009, 02:31 PM
  4. Sorting values without moving formulas
    By Eckenrode in forum Excel General
    Replies: 0
    Last Post: 09-29-2008, 02:21 PM
  5. Sorting,Suming, Moving
    By Gawdwin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-16-2008, 04:52 PM
  6. [SOLVED] Moving Cell Reference after Sorting
    By [email protected] in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-11-2006, 07:15 PM
  7. Sorting/Moving
    By koba in forum Excel General
    Replies: 3
    Last Post: 02-21-2006, 11:10 PM
  8. Moving / sorting sheets in VBA
    By Michael Beckinsale in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-04-2005, 01:00 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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1