We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d9fd8 commit d5ffbe3Copy full SHA for d5ffbe3
src/sheets/main.gs
@@ -47,7 +47,13 @@ function highlightToday_sEntry()
47
let sheet = ss.getSheets()[new Date().getMonth() + 1];
48
let dd = 2 + new Date().getDate();
49
50
- sheet.getRange(dd-1, 1).setBackgroundRGB(255, 255, 255)
+ if(dd == (2 + 1)){
51
+ let sheet_old = ss.getSheets()[new Date().getMonth() + 1 - 1];
52
+ sheet_old.getRange("A31:A33").clearFormat(); // ranges from the 29th to the 31st day of the month
53
+ } else {
54
+ sheet.getRange(dd-1, 1).clearFormat();
55
+ }
56
+
57
sheet.getRange(dd, 1).setBackgroundRGB(255, 255, 0);
58
}
59
0 commit comments