View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Running Excel macros through DOS

Guess I haven't started it from a command prompt lately. works OK in
windows 9x as I recall.

C:\"C:\Program Files\Microsoft Office\OFFICE11\Excel.exe"

did work in Windows XP. Obviously the correct path would need to be used.

Thanks for the correction.

--
Regards,
Tom Ogilvy



"Harlan Grove" wrote in message
oups.com...
Tom Ogilvy wrote...
c:\Excel.exe <cr


This is likely to produce the error message

'Excel.exe' is not recognized as an internal or external command,
operable program or batch file.

since the typical Office install doesn't put the Office program
directory in either the system or installing user's PATH. OTOH,

C:\ start excel

does work even when the Office program directory isn't in PATH - it
seems that start looks in the Registry to locate registered GUI
programs.