14
Views
1
Comments
Launch a Excel (.xlsm) File and Execute a Macro with Parameters
Question
Application Type
Reactive
Service Studio Version
11.55.14 (Build 64054)

Hi all,

I'm working on a use case where we need to trigger a macro-enabled Excel workbook (.xlsm) on the user's local machine and execute it with parameters from the UI.

Use Case:

When the user clicks a button or link from the UI:

  • The application should open an Excel .xlsm file from a given URL (e.g., SharePoint)

  • The file should open in the user’s local Excel instance

  • It should pass two parameters: Premium and Rate

  • A macro inside the workbook should run automatically (triggered on workbook open)

Regards,

Sudharshan


2025-03-11 05-02-41
Ragu Vasu

Hi Sudharshan T,

Regarding your queries:

Point 1: Opening the Excel .xlsm file in the user’s local Excel instance

                Since you are working with a Reactive Web App in OutSystems, when a user clicks a button or link, the .xlsm file can only be downloaded. Opening it directly in the local Excel application is not possible due to browser limitations. Browsers typically allow files to be downloaded, not opened directly in external applications like Excel.

Point 2: Automatically running a macro inside the workbook

               OutSystems does not support the execution of macros within Excel files. Macro execution must be triggered manually by the user after opening the file in Excel on their system.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.