Created
August 6, 2018 09:28
-
-
Save Max-Makhrov/b5596d29b156c13cbac7ed18002bb606 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onEdit(event) | |
{ | |
// Change Settings: | |
//-------------------------------------------------------------------------------------- | |
var TargetSheet = 'Main'; // name of sheet with data validation | |
var LogSheet = 'Data1'; // name of sheet with data | |
var NumOfLevels = 4; // number of levels of data validation | |
var lcol = 2; // number of column where validation starts; A = 1, B = 2, etc. | |
var lrow = 2; // number of row where validation starts | |
var offsets = [1,1,1,2]; // offsets for levels | |
// ^ means offset column #4 on one position right. | |
// ===================================================================================== | |
SmartDataValidation(event, TargetSheet, LogSheet, NumOfLevels, lcol, lrow, offsets); | |
// Change Settings: | |
//-------------------------------------------------------------------------------------- | |
var TargetSheet = 'Main'; // name of sheet with data validation | |
var LogSheet = 'Data2'; // name of sheet with data | |
var NumOfLevels = 7; // number of levels of data validation | |
var lcol = 9; // number of column where validation starts; A = 1, B = 2, etc. | |
var lrow = 2; // number of row where validation starts | |
var offsets = [1,1,1,1,1,1,1]; // offsets for levels | |
// ===================================================================================== | |
SmartDataValidation(event, TargetSheet, LogSheet, NumOfLevels, lcol, lrow, offsets); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment