Click here to Skip to main content
15,662,426 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

I am trying to open a specific excel spreadsheet using batch command like this. But its not opening the correct spreadsheet , can anyone please help me.


"C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE" "G:\Path\MyFile.xlsm" /e/SpreadSheetName

Sergey Alexandrovich Kryukov 3-Aug-15 2:55am    
Off-topic, sorry. This is a site for software engineers, not for those who did not yet master using the system at the level of advanced non-programming users.
Arjun Menon U.K 3-Aug-15 5:05am    
With all due respect Sir.
So, you are saying am not a qualified software engineer? If so sorry for bothering you.
Sergey Alexandrovich Kryukov 3-Aug-15 9:43am    
I don't know if you are qualified or not. Sorry. I only refer to the kind of the question.

1 solution

That's would be simply
@echo off
start yourExcelWorkbookDocument.xlsx

Share this answer
Arjun Menon U.K 3-Aug-15 5:11am    
i want to open a specific excel sheet
Arjun Menon U.K 3-Aug-15 5:18am    
I opened one specific sheet. But after that which ever sheet name i am giving its opening the same one again

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900