Skip to content
Advertisement

How to automate sheet to activate/move to cell with today’s date

I’m trying to implement this script to find the current date on all viewable sheets (Not Hidden) and move to the active date range (today) on whichever tab it’s on upon open.

I found this thread but it’s now locked, https://productforums.google.com/forum/#!topic/docs/NiPjCPUOx3M

The script they used to achieve this is listed in the code section:

This code doesn’t seem to work for my sheet as my date’s are entered as calendar dates and thus are registered as a numerical value.

Could anyone help me with this?

My Sheet: https://docs.google.com/spreadsheets/d/1W3KMwE2dEqe0dkoggKJ5LRT3qHEgwD71izVKx8gJn08/edit?usp=sharing

The date ranges for each sheet are listed in: C4:I4 C51:I51 C98:I98 C145:I145

JavaScript

For the sheet to find the cell listed with today’s date and activate/move to it automatically.

Advertisement

Answer

Finding Today with RangeList

JavaScript

In your onOpen function which may have to be installable, just call findToday();

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement