Share via

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

Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

Your answer

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