home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / b / b420_2 / 4.ddi / EXCELINI.TX$ / excelini.txt
Encoding:
Text File  |  1992-04-01  |  11.4 KB  |  206 lines

  1. (To view best on-screen in Windows Notepad, maximize the Notepad window 
  2. and turn on wordwrap if it is not already on -- from the Edit menu, 
  3. choose Word Wrap. For best printed results, open this document in 
  4. Windows Write, Microsoft Word, or another word processor, select the 
  5. entire document and format the text in 10-point Courier before 
  6. printing.)
  7.  
  8. -----------------------------------------------
  9. The Microsoft Excel Version 4.0 EXCEL4.INI File
  10. -----------------------------------------------
  11.  
  12. When you install Microsoft Excel version 4.0, the Setup  program creates a file named EXCEL4.INI in the same directory as your WIN.INI file. Each time you start Microsoft Excel version 4.0, it checks the EXCEL4.INI file for startup settings. For example, you can use the EXCEL4.INI file to specify documents that you want opened automatically, whether you want gridlines to appear in new worksheets, or what font you want as the default font.  
  13.  
  14. Editing the EXCEL4.INI File
  15. ---------------------------
  16.  
  17. Using almost any text editor or word processor, you can edit the EXCEL4.INI file to customize your startup settings if you want to; however, you don't have to edit this file to use Microsoft Excel. When 
  18. you are finished editing the file, you must save it as a text file without any formatting. For changes to the EXCEL4.INI file to take effect, you must then restart Microsoft Excel.
  19.  
  20. Note:  If you install Microsoft Excel 4.0 on a network, Setup creates an 
  21. ----   EXCEL4.INI file on the drive and directory where you installed
  22.        Microsoft Excel, in addition to the EXCEL4.INI file it creates in
  23.        the directory containing your WIN.INI file. Do not edit this
  24.        additional EXCEL4.INI file; it is for network purposes only. To 
  25.        change your startup settings, edit only the EXCEL4.INI file that 
  26.        is in the same directory as your WIN.INI file.
  27.  
  28.  
  29. WIN.INI and the EXCEL4.INI File
  30. -------------------------------
  31.  
  32. In previous versions of Microsoft Excel, you could customize some startup settings by editing the [Microsoft Excel] section of the WIN.INI file, and customize other settings by editing the EXCEL.INI file. If you already have a [Microsoft Excel] section in your WIN.INI file, its contents -- except for OPEN= statements specifying documents you want opened automatically -- are used to create the EXCEL4.INI file during installation of Microsoft Excel 4.0. Methods for specifying documents you want opened automatically are described later in this file. The contents of an existing EXCEL.INI file are not used to create the new EXCEL4.INI file. You must open and edit your EXCEL4.INI file to include any settings from your EXCEL.INI file. After installation, Microsoft Excel version 4.0 ignores the [Microsoft Excel] section of the WIN.INI file and the EXCEL.INI file. 
  33.  
  34.  
  35. Keeping the .INI File for Previous Versions of Microsoft Excel
  36. --------------------------------------------------------------
  37.  
  38. The name of the .INI file for Microsoft Excel version 4.0 is different from the name of the .INI file for previous versions (EXCEL4.INI rather than EXCEL.INI). Therefore, you can specify startup settings for version 4.0 without changing your startup settings for earlier versions of Microsoft Excel. 
  39.  
  40.  
  41. -------------------------------------------------------
  42. Specifying Documents That You Want Opened Automatically 
  43. -------------------------------------------------------
  44.  
  45. Note:  You must use one of the following methods even if you specified  
  46. ----   the documents in the [Microsoft Excel] section of your WIN.INI
  47.        file for an earlier version of Microsoft Excel.
  48.  
  49. You can use either of the following methods to specify documents that you want opened each time you start Microsoft Excel. For each document that you want opened automatically:
  50.  
  51. ^  Place the document in the XLSTART directory. During installation, 
  52.    the XLSTART directory was automatically created in the directory 
  53.    in which Microsoft Excel was installed.
  54.  
  55. --or--
  56.  
  57. ^  Enter an OPEN= statement in the [Microsoft Excel] section of your 
  58.    EXCEL4.INI file. For example, enter OPEN=c:\win\excel4\budget92.xls
  59.    to open BUDGET92.XLS automatically. 
  60.  
  61. When entering an OPEN= statement, you can also enter any combination of the options described below to change the way the document is located or the state Microsoft Excel is in after it starts. Enter these options to the right of the equal sign in the OPEN= statement. For example, 
  62. OPEN= /r c:\win\excel4\budget92.xls opens the file BUDGET.XLS as read-only every time Microsoft Excel is started.
  63.  
  64. To enter more than one OPEN= statement, you must number them sequentially. For example, OPEN=, OPEN1=, OPEN2=, and so on. The OPEN statements must appear in ascending numerical order.
  65.  
  66.  
  67.    /f  Fast-load
  68.        Places template documents in the New dialog box on the File
  69.        menu. When used for a document containing custom functions,
  70.        places those functions in the Paste Function dialog box. When
  71.        you use one of the custom functions in a specified document, 
  72.        the macro sheet containing the function is opened. 
  73.  
  74.    /r  Read-only
  75.        Opens the specified document read-only.
  76.  
  77.  
  78. ----------------------------------
  79. Specifying Sets  of Random Numbers
  80. ----------------------------------
  81.  
  82. If you want Microsoft Excel 4.0 to generate a unique set of random numbers each time you use the RAND function, enter RANDOMIZE=1 in the [Microsoft Excel] section of your EXCEL4.INI file.
  83.  
  84.  
  85. --------------------------------------------
  86. Setting the Default Font for Microsoft Excel
  87. --------------------------------------------
  88.  
  89. To set the default font and font size used for new worksheets, enter FONT=font name,font size in the [Microsoft Excel] section of your EXCEL4.INI file. For example, FONT=MS Sans Serif,10. The font name you enter must be the name of the font spelled exactly as it appears in the dialog box when you choose the Font command from the Format menu. In Microsoft Excel 4.0, the FONT statement sets the default font used for the Normal style, for row and column headings, and for text in the Info window.
  90.  
  91.  
  92. --------------------------------
  93. Setting Other EXCEL4.INI Options
  94. --------------------------------
  95.  
  96. You can set the following options with the Options3= line in the EXCEL4.INI file. For example, you can enter Options3=8 to automatically turn cell note indicators off each time you start Microsoft Excel.  
  97.  
  98.      2  Alternate navigation keys on
  99.      4  Lotus Help on
  100.      8  Cell note indicators off
  101.     32  Global macro sheet exists
  102.  16384  Gridlines in new sheets off
  103.  
  104. To specificy more than one of these options, add together the numbers for the options you want. For example, Options3=6 turns on both alternate navigation keys and Lotus Help.
  105.  
  106.  
  107. ----------------------
  108. Specifying a User Name
  109. ----------------------
  110.  
  111. With the USER= line, you can enter a user name for your copy of Microsoft Excel. Then, if you are using a shared document and someone else on the network tries to open it, the alert message is displayed with the user name you specified.
  112.  
  113. ------------------------------
  114. Specifying a Custom Dictionary
  115. ------------------------------
  116.  
  117. With the CUSTOM DICT= line, you can specify the name and location of custom dictionaries you want to use with Microsoft Excel. The following example points to the file "custom.dic" at the specified path location.
  118.  
  119. CUSTOM DICT 1=c:\windows\msapps\proof\custom.dic
  120.  
  121. ---------------------------------------
  122. Specifying Automatic Formatting Options
  123. ---------------------------------------
  124. With the AutoFormat= and AutoFormat Options= lines, you can specify a particular default formatting choice to be used when the AutoFormat tool is clicked. For the AutoFormat= line, type a number to specify the format you want. The formats are numbered 1 through 14 according to the order in which they appear in the list in the AutoFormat dialog box. 
  125.  
  126. The AutoFormat Options= line controls which formatting attributes are applied for the format you specified in the AutoFormat= line. The formatting attributes correspond to the options in the AutoFormat dialog box. The values for the formatting attributes are:
  127.  
  128.   Number        1
  129.   Font          2
  130.   Alignment     4
  131.   Border        8
  132.   Patterns      16
  133.   Width/Height  32
  134.  
  135. For example, enter AutoFormat Options=10 to specify  that just the font and border properties of a format are applied. The number 10 is the sum of 2 (font) and 8 (border). The default value for AutoFormat Options is 63, the sum of all of the numbers, indicating that all of the formatting properties are applied.
  136.  
  137.  
  138. -----------------------------------------
  139. Defining Custom Menus and Custom Commands
  140. -----------------------------------------
  141.  
  142. You can use the [Init Menus] and [Init Commands] sections to define custom menus and commands. These custom menus and commands appear every time you start Microsoft Excel, and enable you to load add-in macro sheets or standard macro sheets after you choose the custom command.
  143.  
  144.  
  145. [Init Menus]
  146. ------------
  147.  
  148. <Keyword>=<bar>,<new_menu>,<menu_pos>
  149.  
  150. <Keyword>  A unique keyword, such as Solver1, that Microsoft Windows uses to identify menus and commands added by an INI file.
  151.  
  152. <bar>  The number of the built-in menu bar to which you want to add the menu or command.
  153.  
  154. <new_menu>  The name of the new menu.
  155.  
  156. <menu_pos>  The position of the new menu on the menu bar. May be the name of the menu after which you want to place the menu, or a number indicating the menu's position from the left of the menu bar. For example, you would type 3 to place the menu third from the left. If omitted, the menu appears at the end of the menu bar. 
  157.  
  158.  
  159. [Init Commands]
  160. ---------------
  161.  
  162. <Keyword>=<bar>,<menu>,<command_name>,<macro_text>,<cmd_pos>,<key>, 
  163. <status>,<help>
  164.  
  165. <Keyword>  A unique keyword.
  166.  
  167. <bar>  The number of the built-in menu to which you want to add the menu or command.
  168.  
  169. <menu>  The name of the menu that contains the new command.
  170.  
  171. <command_name>  The name of the new command.
  172.  
  173. <macro_text>  The command added to a menu by the EXCEL4.INI file should open an add-in macro sheet. <Macro text> is a reference to a macro on the add-in macro sheet that you want to open. Choosing the command opens the macro sheet and runs the macro specified by macro_text. The macro should delete the command created by EXCEL4.INI and replace it with a command that runs a macro that performs actions associated with the command.
  174.  
  175. <cmd_pos>  Position of the command on the menu. May be the name of the command after which you want to place the new command, or a number indicating the command's position on the menu. If omitted, the command appears at the end of the menu.
  176.  
  177. The following example shows how Solver could add two commands to built-
  178. in menu bar number 1.
  179.  
  180. [Init Commands]
  181. Solver1=1,Formula,Solver...,c:\windows\solver.xlm!Auto_Open,,,Find model 
  182. solutions,Help!35
  183. Solver2=1,Edit,Edit Solver,c:\windows\solver.xlm!Edit,,,Edits a solver 
  184. scenario,Help!35 
  185.  
  186.  
  187. [Delete Commands]
  188. -----------------
  189.  
  190. In the [Delete Commands] section of your EXCEL4.INI file, you can delete 
  191. built-in Microsoft Excel commands. The syntax of the line to delete 
  192. commands is:
  193.  
  194. <Keyword>=<bar>,<menu>,<menu_pos>
  195.  
  196. The definitions of <keyword>, <bar>, <menu> and <menu_pos> are the same 
  197. as those given in the [Init Commands] section above. 
  198.  
  199. Note: Don't delete the Exit command on the File menu unless you've
  200. ----  included another way to exit Microsoft Excel.
  201.  
  202.  
  203.  
  204.  
  205. 0392
  206.