Office: Using Startup Switches for Programs on Shortcut BarID: Q134742
|
To customize a button on the Office Shortcut Bar (OSB) so that it performs a specific action when you click it, add a startup switch to the command line for the icon.
By default, the target or command line in the properties dialog box contains only the path to and the name of the application's executable file. To add a startup switch for the application on the Office Shortcut Bar, use the following method:
C:\Program Files\Microsoft Office\Office\Excel.exe
C:\Msoffice\Excel\Excel.exe
To start Microsoft Word Startup switch
-------------------------------------------------------------------
Open an existing document <filename>
Start with no document open /n
Run a macro and prevent the AutoExec macro /m <macroname>
from running
Prevent the AutoExec macro from running /m
Load a Word add-in /l <addinpath>
Prevent add-ins and global templates /a
(including the Normal template) from loading
With no Tip of the Day /w
Create a file from a template /t <templatename>
C:\Msoffice\Winword\Winword.exe /w "c:\My Documents\My Test File.doc"
To start Microsoft Excel Startup switch
--------------------------------------------------------------------
Open a specific file <filename>
Without a new, unsaved workbook /e
Specify a working directory /p <path>
Open a file read-only /r <filename>
C:\Msoffice\Excel\Excel.exe /p "c:\My Directory" /r "My File.xls"
To start Microsoft PowerPoint Startup switch
--------------------------------------------------------------------
Open a specific file <filename>
Run a slide show automatically /s <filename>
Print the presentation /p
Create a new presentation /n
C:\MSOFFICE\POWERPNT\POWERPNT.EXE /s "c:\My Documents\Slide Show.ppt"
To start Microsoft Access Startup switch
--------------------------------------------------------------------
Open a specific database <database>
Open the database exclusively /Excl
Open the database as read only /Ro
Start using a user name /User <user name>
Start with a specific password /Pwd <password>
Use a specific user profile /Profile <profile>
Compact a database and close Microsoft Access /Compact <database>
Repair the database and close Microsoft Access /Repair
Convert database from an earlier version /Convert <database>
Run a specific macro /X <macro>
Specify return value for the Command function /Cmd
Start without displaying the startup dialog /Nostartup
Start in run-time mode /Runtime
Start using the specified workgroup information /Wrkgrp <file>
file (Microsoft Access 97 only)
For more information about using command line switches with earlier versions of Microsoft Office, please see the following article in the Microsoft Knowledge Base:
Q121866 Using Startup Switches for Application in MOMFor more information about using command line switches with Microsoft Office version 7.0 applications, choose the Index tab in Help and type the keyword appropriate for the application you use to access Help:
Starting ApplicationsIf you use Microsoft Excel 97 Help, type:
starting, Microsoft ExcelIf you use Microsoft Word version 7.0 Help, type:
Startup SwitchesIf you use Microsoft Word 97 Help, type:
startup optionsIf you use Microsoft PowerPoint Help, type:
Starting PowerPointIf you use Microsoft Access version 7.0 Help, type:
Command-line Startup OptionsIf you use Microsoft Access 97 Help, type:
command-line options
Additional query words: 8.00 97 osb
Keywords : kbualink97 offwin offhelp offosb xlhelp
Version : WINDOWS:7.0,97
Platform : WINDOWS
Issue type :
Last Reviewed: April 23, 1999