Share via

run macro from command line

Anonymous
2010-09-21T10:47:59+00:00

Hei,

I need to run a word macro from the command line.

Allso need to send inn arguments to that macro when i start it

macro is like this

sub mymacro(arg1,arg2)

anyone have any idea how to do that?

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2010-09-22T07:12:11+00:00

    hei,

    thanks for the awser but that does not help.

    i allready know how to call the macro via a vbscript so that is not a problem.

    i want to call it directy from command line with parameters allso.

    i know you can call a macro from command line using /Mmacroname but i can not make this method run silent or add parameters.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-09-21T11:18:41+00:00

    Was this answer helpful?

    0 comments No comments