文章編號: 291288 - 上次校閱: 2007年5月7日 - 版次: 4.7

描述啟動切換為 Excel

系統提示本文適用於您使用的作業系統之外的作業系統。與您不相關的文章內容已停用。

在此頁中

全部展開 | 全部摺疊

結論

Microsoft Excel 接受數目可用來控制如何在程式啟動的選擇性參數。本文列出參數,並提供每個開關的描述。

其他相關資訊

交換器

下表列出可用來控制 Excel 的啟動方式的參數。參數是不區分大小寫 :/O是/o 一樣。在某些案例中您可以使用一個以上的參數,一次。 如果您一次使用一個以上的參數,您必須切換參數以空格分隔--例如: /s/o/s
   Switch           Function
   ----------------------------------------------------------------------

   /e, /embedded    Forces Excel to start without displaying the 
                    startup screen and creating a new workbook 
                    (Book1.xls).

                    Example: /e or /embedded

   /m               Forces Excel to create a new workbook that
                    contains a single macro sheet.

                    Example: /m

   /o               Forces Excel to re-register itself. Specifically, 
                    the following key is rewritten in the registry:

                    Excel 97: HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Excel
 
                    Excel 2000: HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Excel

                    Excel 2002: HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Excel

                    Excel 2003: HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel

                    NOTE: If this key contains values that are not valid,
                    they are not corrected by using this switch. This 
                    switch only replaces missing values.

                    Example: /o

   /p <folder>      Forces Excel to use the path that you specify as the active
                    path instead of the default path. 

                    Example: /p "C:\Windows"

   /r <file name>    Forces Excel to open the specified file in
                    read-only mode.

                    Example: /r "C:\My Documents\Test.xls"

   /s, /safemode    Forces Excel to bypass all files in the Application Data\Microsoft\Xlstart folder,
                    the default XLStart folder located in the directory where Excel or Office is installed, 
                    and the alternate startup file location specified on the General tab of the Excel Options dialog box. 
                    It also forces Excel 
                    to bypass the toolbar file (Excel.xlb or 
                    <username>.xlb). You see "Safe Mode" in the 
                    Excel title bar. Use this switch when you want to 
                    start Excel in safe mode.

                    Example: /s or /safemode
				
     /t                Forces Excel to use the specified file as a
                    template for the default workbook. 

  /regserver        Forces Excel to register itself and then quit. Use this 
                    switch when you want Excel to rewrite all its 
                    registry keys and reassociate itself with Excel files, 
                    such as workbooks, charts, and others.

                    Example: /regserver


   /unregserver     Forces Excel to unregister itself and then quit.

                    Example: /unregserver
				

如何使用參數,當您啟動 Excel 時

如何將參數加入至 Microsoft Excel 捷徑

將參數新增到 Microsoft Excel 捷徑:
  1. 用滑鼠右鍵按一下 [開始]、 按一下 [開啟舊檔,然後再連按兩下 [程式集] 資料夾。
  2. 在捷徑上按一下滑鼠右鍵,Microsoft Excel,並按一下 [內容],然後按一下 [捷徑] 索引標籤。
  3. 在 [目標] 方塊中,鍵入您想執行 Excel.exe 的命令後的參數。比方說如果您要啟動,而不會建立一個新的活頁簿的 Excel,並且 Excel.exe 檔案安裝在預設位置,請在 [目標] 方塊中輸入下列:
    C:\Program Files\Microsoft Office\Office\Excel.exe/e
  4. 按一下 [確定]

    附註您快速鍵如果 內容] 對話方塊中的 [捷徑] 索引標籤上的選項沒有可用,是 Windows 安裝程式的捷徑。 如更多有關如何修改這些捷徑,按一下 [下面的文件編號,檢視 「 Microsoft 知識庫 」 中的發行項]:
    290379? (http://support.microsoft.com/kb/290379/ ) 辦公室捷徑] 索引標籤是無法使用

如何執行其中一個 Excel 時間與藉由使用命令列參數

如果想偶爾執行 Excel 搭配使用一個參數,您可以在命令列中加入該參數。如果要執行這項操作:
  1. 按一下 [開始],然後按一下 [執行]。
  2. 在 [開啟] 方塊中輸入 Excel.exe,到路徑,然後再新增您想要使用命令列結尾處的參數。比方說如果您想略過啟動資料夾中的所有檔案,而且 Excel.exe 檔案安裝在預設位置,您可以輸入下列命令:
    C:\Program Files\Microsoft Office\Office\Excel.exe/s
  3. 按一下 [確定]

這篇文章中的資訊適用於:
  • Microsoft Office Excel 2003
  • Microsoft Excel 2002 Standard Edition
  • Microsoft Excel 2000 Standard Edition
  • Microsoft Excel 97 Standard Edition
關鍵字:?
kbmt kbinfo KB291288 KbMtzh
機器翻譯機器翻譯
重要:本文是以 Microsoft 機器翻譯軟體翻譯而成,而非使用人工翻譯而成。Microsoft 同時提供使用者人工翻譯及機器翻譯兩個版本的文章,讓使用者可以依其使用語言使用知識庫中的所有文章。但是,機器翻譯的文章可能不盡完美。這些文章中也可能出現拼字、語意或文法上的錯誤,就像外國人在使用本國語言時可能發生的錯誤。Microsoft 不為內容的翻譯錯誤或客戶對該內容的使用所產生的任何錯誤或損害負責。Microsoft也同時將不斷地就機器翻譯軟體進行更新。
按一下這裡查看此文章的英文版本:291288? (http://support.microsoft.com/kb/291288/en-us/ )
Microsoft及(或)其供應商不就任何在本伺服器上發表的文字資料及其相關圖表資訊的恰當性作任何承諾。所有文字資料及其相關圖表均以「現狀」供應,不負任何擔保責任。Microsoft及(或)其供應商謹此聲明,不負任何對與此資訊有關之擔保責任,包括關於適售性、適用於某一特定用途、權利或不侵權的明示或默示擔保責任。Microsoft及(或)其供應商無論如何不對因或與使用本伺服器上資訊或與資訊的實行有關而引起的契約、過失或其他侵權行為之訴訟中的特別的、間接的、衍生性的損害或任何因使用而喪失所導致的之損害、資料或利潤負任何責任。