batch file to open multiple worksheets

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to run a batch file to open multiple Excel worksheets but if I
put the path to both sheets, it only opens the first one. What am I doing
wrong?

I'm using Excel 2003 SP-1
 
I should also add that once I close Excel, then the second worksheet opens.
 
Use start rather than just running them:


c:
cd\
start poly.xls
start qwerty.xls
exit


If you just run them, the bat file hangs until you finish the first
application and then runs the second application. "starting" something
allows no waiting
 
That did the trick. Thank you Gary.

Gary''s Student said:
Use start rather than just running them:


c:
cd\
start poly.xls
start qwerty.xls
exit


If you just run them, the bat file hangs until you finish the first
application and then runs the second application. "starting" something
allows no waiting
 
You are very welcome.

b.t.w. if you do a lot of bat files, you should checkout Windows Scripting
Host. It's just as much fun as DOS 6.22
 

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

Back
Top