I am having an issue where I run office scripts to do some manipulation in creating and editing a file.
At the end of these scripts, no matter what I include, it *always* opens to the last sheet rather than the one which has been last used.
I don't want to default the sheet opening via VBA, but I have found no way of causing the workbook to open in a different manner.
The flow works like this:
It runs some office scripts and then attaches the file to an email being sent out via:
I have tried everything I can think of in office scripts. Adding sheets removing sheets, changing sheets, changing position, setting active.
Has anyone ran into this or had a similar issue?

Report
All responses (
Answers (