How to start excel from a batch file

jkpd2000

Board Regular
Joined
May 8, 2002
Messages
91
Hi ,

I have to open an excel file say RESULTS
from a batch file. because i am scheduling the batch file to run automatically.

Any thoughts.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Don't know how to write the batch, might be thew wrong site...but have you considered starting xl automatically with the windows task scheduler?
 
Upvote 0
Hi Nimrod. Is this how we write .bat files?

In any case, to open a certain file on XL launch, copy the file or a shortcut of the file and paste it in your xlstart folder. Should be on your c: drive. Give it a search.

_________________
Cheers,<font size=+2><font color="red"> Nate<font color="blue">O</font></font></font>
wave.gif

This message was edited by NateO on 2002-05-10 15:37
 
Upvote 0
Hi NateO !
You write bat files in notepad or any other PlainText editor and then save with the extention ".bat".

Same concept as writing a Kix or vbs script ... only the commands and syntax are different.
ShortCuts are nothing more then one method of initiating a script... and there are many ways to initate scripts.
 
Upvote 0
nimrod,

Call results.xls is working. but i am getting enable macros popup which i dont want to be asked.

is there a way to suppress that
 
Upvote 0
Thru your toolbar ... tools...macro..security

_________________
NOTE: Testing performed on Win2K utilizing Office 2000. Solutions may need tweaking for other versions.
This message was edited by Nimrod on 2002-05-10 15:45
 
Upvote 0
Another cool thing that you can do is actually open a office app. AND start running a particular macro.... I'm not sure what the switch is in excel but in word it's /m
ie call word.exe /mMACRONAME
 
Upvote 0

Forum statistics

Threads
1,213,506
Messages
6,114,024
Members
448,543
Latest member
MartinLarkin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top