Don't trust data validation in Excel! | Excel Off The Grid

Поделиться
HTML-код
  • Опубликовано: 27 янв 2025

Комментарии • 32

  • @TSSC
    @TSSC 10 месяцев назад +3

    Another source for breaking data validation is if the user select multiple cells and uses ctrl+enter to update all the selected cells. The validation of the active cell is evaluated, but not the validation rules in the other cells in the selection.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  10 месяцев назад

      Yes, that’s another good one.

    • @TSSC
      @TSSC 10 месяцев назад

      @@ExcelOffTheGrid Or bad one. A VBA prevention method would be to put Target.Cells(1).Select in Worksheet_SelectionChange.

  • @ivanmamchych5802
    @ivanmamchych5802 10 месяцев назад +2

    Thank you for the video. Suppose one of the future Excel upgrades will contain something like a new option in the "Protect Worksheet" list: "Prevent paste/drop to validated cells" or so

  • @rodolforibeiro6853
    @rodolforibeiro6853 10 месяцев назад +1

    I noticed this situation yesterday. Thank you very much for the tips!

  • @GrainneDuggan_Excel
    @GrainneDuggan_Excel 10 месяцев назад +2

    Being aware of the issues around data validation is a major step in ensuring our data is valid

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  10 месяцев назад +2

      I agree 100%. Knowing the limitations allows us to create suitable processes to handle it. 👍

  • @chriswall4795
    @chriswall4795 10 месяцев назад +3

    Copy paste has always been an issue with validation: constant irritation in my work! Thank you for this, but not sure we can use it because of restrictions on use of VBA

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  10 месяцев назад

      Even if you allow VBA in your organization, if a user does not click Enable Macros, then a user can still do anything.
      A solid review process is key.

  • @mrbartuss1
    @mrbartuss1 2 месяца назад +1

    It seems macros do not work in Sharepoint. Any alternatives?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  2 месяца назад

      Office Scripts & Power Automate were designed to be the alternative.
      I've got a course about it, if you're interested: exceloffthegrid.com/office-scripts-course

  • @ziggle314
    @ziggle314 10 месяцев назад +1

    I have certainly been caught by the cut-and-paste issue multiple times. Since my organization frowns on VBA, I will likely use conditional formatting. Thanks!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  10 месяцев назад +1

      Even I would be uncomfortable with the VBA option in here. I think conditional formatting and a solid review process is the best option.

  • @alterchannel2501
    @alterchannel2501 10 месяцев назад

    I have applied conditiinal formatting and created a simple macro that loops the cells to check the background color and clear that cell with a msgbox

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  10 месяцев назад +1

      That's a very good technique. I'm guessing it took a while to find out how to do that.

    • @alterchannel2501
      @alterchannel2501 10 месяцев назад

      @@ExcelOffTheGridin my experience, there is never a unique way of solving issues, it always depends on the situation. Your channel has helped me a lot to find solutions for problems, so thanks a lot

  • @maciejkopczynski55
    @maciejkopczynski55 10 месяцев назад +1

    Awesome stuff! One off-topic thing confused me though. How is it that our Worksheet subprocedures are set to “Private” and we still get to reference them inside a Workbook code section?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  10 месяцев назад +1

      Because I used the "Run" command and referenced the module.
      Run enables us to exclude any Private macro as long as we know the name of it.

    • @maciejkopczynski55
      @maciejkopczynski55 10 месяцев назад

      @@ExcelOffTheGridAwesome Mark! Thank you so much!

  • @scottjezard6447
    @scottjezard6447 10 месяцев назад +1

    Would CTRL+R cause issues, or would the prevent copypaste catch it?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  10 месяцев назад

      I think CTRL + R would break it - as you're not selecting another cell.

  • @ExcelWithChris
    @ExcelWithChris 10 месяцев назад

    As far as I know, VBA does not work in SharePoint environment? Is this true?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  10 месяцев назад

      Correct - it will only work in the desktop version.

    • @mrbartuss1
      @mrbartuss1 2 месяца назад

      Have you found a solution?

  • @andrewcharlesmoss
    @andrewcharlesmoss 9 месяцев назад +1

    I've only just discovered that the moving dashed line around a cell is called 'marching ants'. 😮 🐜🐜🐜

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  9 месяцев назад +1

      I always assumed there was a proper name, but apparently it’s a common term in software design… en.m.wikipedia.org/wiki/Marching_ants

  • @Rice0987
    @Rice0987 10 месяцев назад +1

    Data validation is not about paste actions. Cause copied cell also copy all properties with itself. :)

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  10 месяцев назад +2

      Excel 365 it doesn’t copy ALL the properties, it changes about 12 months ago.
      On a protected sheet the DV list is no longer over written by a paste.

  • @yulinliu850
    @yulinliu850 10 месяцев назад