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 / Running a macros in in...
Power Automate
Unanswered

Running a macros in invisible mode

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

Running macros in invisible mode gives error, does it have to visible ?

Please note macros is in personal workbook, works perfectly but only in visible mode.

 

@MichaelAnnis 

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    No sir, mine worked in visible mode:

    MichaelAnnis_0-1648573796024.png

    I did run into 2 possible issues trying to set this up.

     

    1)  you have to Save and Close the Excel Instance.  You can't see the Excel Instance, so you can't save it.

    2)  The macro workbook has to be in a trusted place, so the "enable content" warning does not appear, or the warnings have to be turned off.

     

    Hopefully these help.

  • UK_Mike Profile Picture
    on at

    "No sir, mine worked in visible mode:"   

    So does mine, was asking if it works in " invisible "  😁

     

    Running in " invisible " gives me this error...  

     

    Screenshot 2022-03-29 191848.png

     

     

     

     

     

     

     

     

     

    My simple flow...

     

    Screenshot 2022-03-29 192053.png

     

     

     

     

     

     

     

     

     

     

    Params...

     

    Screenshot 2022-03-29 191920.png

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I meant invisible.😂😂😂. I wonder if your personal xlsb isn’t accessible in invisible mode. Try saving your personal workbook out there as an xlsm and rerunning in invisible mode against the xlsm. Good luck. 

  • UK_Mike Profile Picture
    on at

    😂😂😂

     

    Changing from xlsb to xlsm, will that mess up anything as im reluctant, its got all my macros....not that I dont trust you 😍

     

    Was hoping to achieve what Power Query can do, refreshing a query from umpteen workbooks without opening them. Ive got circa 20 workbooks that need refreshing a couple of times a week, thought it would be quicker when they are hidden / invisible plus allowing me to do other stuff without inadvertently interfering with the flow.

     

    Ooooh just thought of something, all my workbooks etc are in OneDrive, make a difference ?

    Ooooh part 2, what about if I do have to open the workbooks, could I minimise, not tried that one yet, although something tells me it will open maximised / previous state and then minimise.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Well when I said save your personal workbook, I meant save as. So your personal.xlsb should still exist where it always had. You would just use the xlsm for this one instance. 

    im hoping one drive isn’t the issue, but who knows. 

  • UK_Mike Profile Picture
    on at

    Think I will revisit this one another time, I made of copy of my personal workbook, so one with xlsm, other xlsb.

    Every Excel I open manually gives the below shot, this is before I ran the automation.

    Might be OneDrive, thanks anyway Mike 😁

     

    Screenshot 2022-03-30 162656.png

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    You may need to change the name. If opening Excel opens your Personal.xlsb, it may not allow you to also open Personal.xlsm. The extensions our different, but the workbook name is the same, and I’m pretty sure, you can’t have two workbooks open with the same name. 

    good luck!

  • UK_Mike Profile Picture
    on at

    Youre right, I thought with different extensions it wouldnt matter 🙄

    Currently frying bigger fish, will revisit...

     

  • MajorAly Profile Picture
    2 on at

    Hello,

    Wondering if you ever found a solution for this.

     

    I'm having the exact same issue, where I want to run a Macro on an Excel instance which I want to not be visible so I can work on different things without interrupting the flow but if I hide the instance and the macro gets executed, it gives an error.

    Whereas no issues when the instance is visible.

     

    I have an upward of 700+ files (that will continue to grow) and would like to run the Macro without Excel opening up again and again.

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 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 198

#3
David_MA Profile Picture

David_MA 197 Super User 2026 Season 2

Last 30 days Overall leaderboard