ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   opening excel from cmd (https://www.excelbanter.com/excel-discussion-misc-queries/35023-opening-excel-cmd.html)

Manoj

opening excel from cmd
 
Hi all,

I want to open an excel file from CMD and dont want to loose focus from
the current application.

I am using "spawn" ( similar to SHELL ) to run commands on CMD.

If I write spawn "c:\test.xls" it opens the excel , but also set focus
to it. I do not want to loose the focus from the application.

If it is possible to hide it then it will be well and good.

Could anybody help with this?



All times are GMT +1. The time now is 03:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com