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 Automate
Answered

Remove post

(0) ShareShare
ReportReport
Posted on by 164

removed

 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    @Alphadrag 

    Use the "Get all Excel worksheets" and then "Set active Excel Worksheet" and then go to each of the sheets.

    Also check and tell whether "Get all Excel worksheets" also shows hidden worksheets or not?

     

     

  • Verified answer
    VJR Profile Picture
    7,635 on at

    For unhiding refer this MSFT link

    https://docs.microsoft.com/en-us/power-automate/desktop-flows/how-to/unhide-excel-worksheets-vbscript

     

    - So 1st you need to unhide

    - Then "Get all Excel worksheets"

    - and then "Set active Excel Worksheet" to go to that particular sheet

  • Alphadrag Profile Picture
    164 on at

    removed

  • VJR Profile Picture
    7,635 on at

    The vbscript code shows that it has a code to open the Excel. So this is in conflict with the Launch Excel.

    Call the vbscript before the Launch Excel. 

  • Alphadrag Profile Picture
    164 on at

    removed

     

  • Verified answer
    VJR Profile Picture
    7,635 on at

    The line number 3 in vbscript shows that it is trying to open excel file contained in variable -> %ExcelFile%.

    Check if you are passing the correct file to the variable.

     

    Before "Run vbscript", use Set variable ExcelFile to the file coming from AllFiles.

  • Alphadrag Profile Picture
    164 on at

    removed

  • VJR Profile Picture
    7,635 on at

    The issue is because you have removed the two lines of code from the script shared in the MSFT link.

    You cannot remove something from the code and expect it to work fine 🙂

     

    Add those two lines and 

    also make objExcel.Application.Visible = False

    so that the opening and closing of Excel by vbscript will not be visible.

     

     

  • VJR Profile Picture
    7,635 on at

    Also Launch Excel should happen after the Run vbscript. Only then the Excel with all unhidden sheets will be launched.

  • Alphadrag Profile Picture
    164 on at

    removed

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 308 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 171 Super User 2026 Season 2

#3
Haque Profile Picture

Haque 137 Super User 2026 Season 2

Last 30 days Overall leaderboard