Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Compiling a macro as a .exe?

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


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
RWN RWN is offline
external usenet poster
 
Posts: 104
Default Compiling a macro as a .exe?

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


--
Regards;
Rob
------------------------------------------------------------------------
"tehwa" wrote in message
...
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


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling data from multiple Excel sheets - macro? Stephanie Mistretta Excel Worksheet Functions 2 April 23rd 08 11:44 AM
Macro compiling screen andrewbt Excel Discussion (Misc queries) 1 July 27th 07 12:04 PM
Compiling Eddy[_2_] Setting up and Configuration of Excel 1 July 8th 07 04:24 PM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
compiling? Jim Carlock[_2_] Excel Programming 3 September 25th 03 03:57 PM


All times are GMT +1. The time now is 04:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"