+ Reply to Thread
Results 1 to 7 of 7

how to fix code for multiple cells to have error message

  1. #1
    Registered User
    Join Date
    03-20-2013
    Location
    Grimesland, North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    16

    how to fix code for multiple cells to have error message

    I found this code and would like to use this will multiple cells.

    Please Login or Register  to view this content.
    Next cell would be (for example) A2 - Message = You must fill in A2. I have 139 cells that I need to do this for.

    Thank you

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,783

    Re: how to fix code for multiple cells to have error message

    try this:
    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: how to fix code for multiple cells to have error message

    Here!

    Please Login or Register  to view this content.
    Deep
    Cheers!
    Deep Dave

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: how to fix code for multiple cells to have error message

    But the above code will activate for absolutely any cell.. Are the 139 cells you mentioned about specific?

  5. #5
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: how to fix code for multiple cells to have error message

    Try this:-
    It will work for cells "A1 to A139"
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-20-2013
    Location
    Grimesland, North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: how to fix code for multiple cells to have error message

    The cells are specific

    D8:D22,D24:D37,D39:D46,D49:D58,D60:D82,D85:D121,D124:D155

  7. #7
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: how to fix code for multiple cells to have error message

    Try this:-
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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