View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
joel joel is offline
external usenet poster
 
Posts: 9,101
Default Create executable file to run excel macro

Make the macro an Workbook open macro or call your macro from a workbook open.

Next create a BAT file to open the workbook and run the Bat.

Here is a sample of the bat file

"C:\Program Files\Microsoft Office\Office10\excel.exe" c:\temp\book1.xls

"Pawan" wrote:

Hi

I have written a complex macro in excel and now have to distribute it to
co-workers. However, I want to create an executable file which will run the
macro directly (will open the userform in my macro).

Is there any chance of doing so?

Thanks in advance

Regards,
Pawan