The information in this article applies to:
SUMMARYTo 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. MORE INFORMATIONBy 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:
NOTE: Do not include the angle bracket (< >) characters in the actual text that you enter on the command line. Also, note that the command line(s) for Microsoft Office 97 applications will generally include a different path. For example:
instead of
Microsoft Word
For example, to open Microsoft Word without the Tip Of The Day and open a file called "My Test File.doc" the command line would be as follows: C:\Msoffice\Winword\Winword.exe /w "c:\My Documents\My Test File.doc" Microsoft Excel
For example, to open Microsoft Excel and specify the working directory to be "c:\My Directory" and open a file called "My File.xls" as read-only, the command line would be as follows: C:\Msoffice\Excel\Excel.exe /p "c:\My Directory" /r "My File.xls" PowerPoint
For example, to open Microsoft PowerPoint and automatically start a slide show called "c:\My Documents\Slide Show.ppt", the command line would be as follows: C:\MSOFFICE\POWERPNT\POWERPNT.EXE /s "c:\My Documents\Slide Show.ppt" Microsoft Access
REFERENCESFor 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: If you use Microsoft Excel version 7.0 Help, type: 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 |
Last Reviewed: April 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |