RE: Run Excel Macro from Command Line



There is no command line option in excel that will allow you to do this but
you shouldn't need to. How are you creating the new workbooks? I assume
you will do it programmatically from another workbook that you're working
from? If so then you can do whatever you need to do to this newly created
file from that workbook; even have it write the module to your new file.
Would probably need some more information on what you are trying to do so if
you can explain in more detail then I may have some example code to help you.

"Al Franz" wrote:

> Is there a way to run an Excel macro from a command line. Such as when you
> open up a file to have it run the macro. Since I want to do this for files
> that are newly created I can not program the file to run the macro at
> startup. Is there a command line option in excel?
>
>
>
>
.



Relevant Pages

  • RE: Activating a renamed workbook
    ... The go to tab Commands and select Macro. ... my programming experience in Outlook is very poor so please help me out. ... Then I can have a procedure in the main Excel application installing the ... because it activates the workbook always having the same name! ...
    (microsoft.public.excel.programming)
  • [NT] Cumulative Patches for Excel and Word for Windows
    ... The attacker's macro code could take any actions on the system ... * An Excel macro execution vulnerability that relates to how inline ... * An Excel macro execution vulnerability that relates to how macros are ... It is possible for macros in a workbook so invoked to run ...
    (Securiteam)
  • Microsoft Security Bulletin MS02-031
    ... Cumulative Patches for Excel and Word for Windows ... all of which could enable an attacker to run Macro code on a user's machine. ... - An Excel macro execution vulnerability that relates to how inline ... workbook so invoked to run automatically. ...
    (microsoft.public.security)
  • RE: Activating a renamed workbook
    ... Dim myInspector As Outlook.Inspector ... The go to tab Commands and select Macro. ... Then I can have a procedure in the main Excel application installing the ... because it activates the workbook always having the same name! ...
    (microsoft.public.excel.programming)
  • RE: Strange Excel Application Object Behavior
    ... I'm running a macro in Word, which opens two workbooks, copies ... But Excel doesn't behave well sometimes after this, ... When I click on the workbook icons I ... Dim obXlTestAPP As Excel.Application ...
    (microsoft.public.excel.programming)