+ Reply to Thread
Results 1 to 3 of 3

Data Validation comment automatically expand range

  1. #1
    Forum Contributor
    Join Date
    05-12-2021
    Location
    USA
    MS-Off Ver
    Microsoft Office 365
    Posts
    259

    Data Validation comment automatically expand range

    Hello, I have a list of names that get updated from time to time when new supervisors start working. The names are listed in a Table that will automatically assimilate any new entries entered below the last entry(Thank you Leila Gharani ). There is also an event code that will automatically sort those new entries within that existing list after they have been entered. My Table starts in cell U8 with the supervisor header and U9 begins the actual list of names. I am looking to make the worksheet a little more user friendly and wondering if it might be possible to have a data validation comment whose cell range will also expand as new names are entered just as the table range auto-expands. So if we had our last supervisor name in U28 for example, our data validation comment range would be from U9:U28. If we add a name to the list and now are at U29, I would want the DV comment range to update from U9:U29. Not sure if this is possible and is a VBA solution or if it would be a non-VBA solution?
    Last edited by PitchNinja; 09-25-2024 at 12:32 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,675

    Re: Data Validation comment automatically expand range

    The way that I do this is to just set data validation for the entire column. This does not impact performance, and doesn't significantly add to file size. It is also possible to do this dynamically with VBA but it will have to check every Change event which could affect user experience. Since your table starts with a header in U8 you would set up DV for the column then remove it from U1:U8.

    I'm not clear on what you mean by a Data Validation comment. What flavor of data validation are you trying to do in that column?

    If this does not seem to address your question then please attach a sample file.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    05-12-2021
    Location
    USA
    MS-Off Ver
    Microsoft Office 365
    Posts
    259

    Re: Data Validation comment automatically expand range

    Okay, that might make more sense then to do it that way. I wasn't sure if the file size would be affected or not, but I'm glad to know it's not significant. I'll go ahead with that solution. Also what I meant by the DV comment is just the Input message screen and how it displays a comment to remind the users of something. I think it is very helpful and handy to have that in forms that require maintenance.

+ 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. Automatically move data from one cell to another
    By nick langley in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-13-2015, 07:20 AM
  2. Automatically move cell data
    By SuddenImpact in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2015, 07:39 AM
  3. Automatically move a row of data based on cell value
    By mmogharreban in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2013, 02:37 PM
  4. Move Cell Data to Imbedded Comment
    By Hudson in forum Excel General
    Replies: 3
    Last Post: 11-02-2012, 12:20 PM
  5. Getting data from a cell into a comment or data validation text
    By steve.g in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-27-2010, 03:34 AM
  6. [SOLVED] Move Active Cell after Data Validation List
    By mcastellano@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2006, 10:20 AM
  7. [SOLVED] Data Validation Cell - Move to UserForm
    By thom hoyle in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-27-2005, 08:06 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