Abruzzo Forte e Gentile
Abruzzo Forte e Gentile

Reputation: 14869

running a OS command from a macro

I have a scalc sheet in Linux.

I need to write a macro that takes some argument from cell and calls a OS command with those arguments. I read a tutorial about how to create a libreoffice macro and how to call it in a cell.

I am not able to find which function to call WITHIN the macro to call my OS command.

Does anyone knows how to do that?

Could this command be similar to VBA EXCEL for Windows?

Upvotes: 0

Views: 1328

Answers (1)

SeanC
SeanC

Reputation: 15923

from here,

Shell("c:\windows\calc.exe",2) 

full format is Shell (Pathname As String[, Windowstyle As Integer][, Param As String][, bSync])

so to run batch q.bat with abc as an argument:

Shell("q.bat",,"abc")

Upvotes: 1

Related Questions