Compiling a macro as a .exe?

T

tehwa

I am looking for a way to format a file output by means of a macro, but
I do not want to actually open Excel. Is this possible?

Ideally, I would like to run a command from my program that outputs an
xls fila nd runs the macro that formats the workbook, then continue to
import it in it's new formatting, without having to break and wait for
confirmation from the user.

1. Program outputs .xls file
2. Macro formats .xls file
3. Program imports .xls file
4. Further instruction...

Is it possible to take your Excel macro code and somehow compile it as
an executable file, that will run the macro without showing excel, or
even run a macro from the command line (eg. c:\...\excel.exe -sheet.xls
-format.bas)?

Cheers,

tehwa
 
R

RWN

Not as smart as I thought I once was, but, no, I don't believe there's a
way to compile a VBA macro.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top