litLIB Help
Product pages :
litLIB
Quick links:
help index
forums

Excel - CommandLine

Syntax:
CommandLine()

Description:
Displays the commandline and arguments with which Excel was started. 

This function can be used to capture parameters that are sent to Excel. For example you can start Excel with an unknown command switch /_ to send Excel some data. Example:
Excel /_PassingThisValue

Example:
=CommandLine()
Result:  "C:\Program Files\Microsoft Office\Office\EXCEL.EXE"