Replace criteria code is not working across multiple sheets

KaelynZ 0 Reputation points
2023-10-12T17:43:07.2833333+00:00

I have a shared excel sheet where I have dropdown criteria "Yes" and "No" across two columns (P:Q), on 2 different sheets. I am trying to figure out the code so that i can automate it to change from "Yes" to "No" at midnight. I tried recording actions and using find and replace button under "editing" but it said my actions could not be recorded so I can't automate the task. I had used the below code previously on a different document and it worked, but only when there was only yes/no criteria on one sheet rather than two. Any help is greatly appreciated!!!

https://learn.microsoft.com/en-us/javascript/api/office-scripts/excelscript/excelscript.replacecriteria?view=office-scri

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,176 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,339 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.