web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Excel Email after offi...
Power Automate
Unanswered

Excel Email after office script always opens to last sheet

(0) ShareShare
ReportReport
Posted on by 5

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:

ipoole_bu_edu_0-1697567520394.png

It runs some office scripts and then attaches the file to an email being sent out via:

 

ipoole_bu_edu_1-1697568357124.png

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?

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard