+ Reply to Thread
Results 1 to 7 of 7

VBA to remove data validation input message

  1. #1
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    VBA to remove data validation input message

    Hi,

    I have placed wrong input message in data validation. To remove it manual definitely will take a long time and I have to re-enter the data.

    The input message as follow. I want to remove the one in red colour message.

    Assessment scores
    must be in absolute
    number between 1 to 5

    N/A defaulted to 1
    (Consider the lowest)



    can anyone help to create VBA code to remove it automatically. The cells range is H17 to QM119. Range(H17:QM119)

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: VBA to remove data validation input message

    Put this in a standard module and run:

    Please Login or Register  to view this content.
    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Re: VBA to remove data validation input message

    Hi abousetta,

    Does it will affect another field in data validation and error alert message?


    In validation criteria source, I have placed several a code depending on Range

    e.g
    Range("H17:QM43") , Source = SCORE (use namebox function)
    Range("H108:QM119"), Source = SCORE (use namebox function)

    Range("H48:QM103") , Source = IF(AND(H67:O86="",H90:H103="",H51=""),INDIRECT($D$128))




    Please Login or Register  to view this content.
    Last edited by Faridwahidi; 09-30-2014 at 11:59 PM.

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: VBA to remove data validation input message

    Easiest way is for you to start the macro recorder. Click on the cell with the data validation >> Data >> Data Validation >> Cancel. Repeat this for all the different data unique validations your have and then copy/ paste the resulting code here and I will adjust it for you. Either that or upload a copy of your workbook and I can do that for you.

    abousetta

  5. #5
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Re: VBA to remove data validation input message

    Hi abousetta,

    I found the way you do is much better by using
    Please Login or Register  to view this content.
    I dont need to use dropdown list (1,2,3,4,5) for that purpose.


    Attached here is my workbook.

    The following range shared the same validation criteria source and error alert message

    1) Range("H17:QM43") and Range("H108:QM119")

    2) Range("H48:QM49") and Range("H57:QM61")
    3) Range("H51")
    4) Range("H53:QM56")

    5) Range("H67:QM68") and Range("H76:QM86")
    6) Range("H70")
    7) Range("H72:QM75")

    8) Range("H90:QM93") and Range("H101:QM103")
    9) Range("H96")
    10) Range("H97:QM100")
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: VBA to remove data validation input message

    Hi,

    Here is an updated macro:

    Please Login or Register  to view this content.
    I didn't know where you wanted to use the data validation method I proposed, but you can just paste that line instead of the lines in the above macro where you want it.

    abousetta

  7. #7
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Re: VBA to remove data validation input message

    Hi abousetta,

    Thanks a lot.

+ 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. Sum by Data Validation Input Message
    By plans in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2014, 09:53 AM
  2. need of pop up message dynamically using data validation input message method
    By vba_life in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2010, 09:03 AM
  3. Data Validation Input Message
    By ACM2 in forum Excel General
    Replies: 4
    Last Post: 03-07-2010, 07:32 AM
  4. Data Validation Input Message
    By Sandy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2006, 11:25 AM
  5. [SOLVED] Data>Validation>Input message
    By irresistible007 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-03-2005, 09:10 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