C H A P T E R 36 | Part 6 Microsoft Office Architecture | Microsoft Office Resource Kit |
Microsoft Excel Architecture |
In This Chapter
How Microsoft Excel Is Structured
How You Can Customize Microsoft Excel
How Microsoft Excel Resolves
Conflicts
This chapter describes the structure of Microsoft Excel 97 for Windows and Excel 98 for the Macintosh. It also explains how the various components of Excel work together, and how the application handles changes that users make to those components. An understanding of the architecture of Excel can help you take advantage of its features and may help you troubleshoot problems.
See Also
|
Excel documents are called workbooks. A workbook is a collection of worksheets, chart sheets, and Visual Basic for Applications modules. The worksheet is the primary location for storing data in a workbook. Each worksheet can contain cells that store data and formulas, and charts, which present data graphically. Each cell and chart item can have associated formatting, such as fonts, colors, and layout options.
You can save a workbook as a template. A template provides a pattern for creating new workbooks. You can also save workbooks as addins, which programmatically add custom features to Excel. The following illustration shows how Excel components fit together to create a workbook.
Workbooks
The workbook in Excel is analogous to the document in Microsoft Word, or the presentation in Microsoft PowerPoint. The workbook stores data in the Excel file format. Excel workbook files have the extension .xls (Windows) or the file type Excel Document (Macintosh).
The various components of Excel, such as cell data and formulas, are stored in the workbook file. Some components, such as cell data and charts, are stored on worksheets in the workbook. Other components, such as macros, booklevel security settings, and page settings, are stored in the workbook file but not on worksheets.
Cell Data
Cell data consists of constant values stored in cells and can be either of the following:
The way Excel displays numeric values in a cell depends on the number format assigned to a cell. The numeric value displayed may differ from the actual value Excel stores, which is with 15 digits of accuracy. By default, Excel makes calculations based on the stored value. Such calculation is known as full precision calculation. However, you can have Excel calculate based on displayed values. To do this type of calculation, click Options (Windows) or Preferences (Macintosh) on the Tools menu, click the Calculations tab, and then select Precision as displayed.
Calculating with precision as displayed does the following:
Cell Formulas
Formulas use cell references when performing calculations on your data, and are part of the data that is stored in the workbook. Cell references in a formula can be relative, absolute, or mixed references in any of the following reference styles:
Both A1 and rowandcolumn reference styles refer to data by position. Using these styles, you may experience difficulty with formulas if you reposition or delete cells. One way to avoid this problem is to reference cells by name.
Name References
You can use a name as a reference to a cell, a group of cells, a value, or a formula. Name references can be accessible to an entire workbook or restricted to a worksheet. When a name reference is restricted to a worksheet, it can be repeated on more than one sheet so that it defines related cells on different sheets in the same workbook. A booklevel name reference, on the other hand, cannot be repeated on more than one worksheet. Instead, it can be used throughout the workbook to refer to cells on one worksheet. Using booklevel names eliminates the need to recreate names for each new worksheet or to type worksheet references in formulas. Sheetlevel names override booklevel names when used on the sheet where they are defined.
To use booklevel name references, you enter the name you want to use in the name box on the formula bar. To use sheetlevel name references, however, you must include the name of the sheet when you enter the name, such as Sheet1!Profit.
Tip As an alternative to using name references in formulas, you can often use spreadsheet labels (such as category names you have added to a worksheet) instead. For example, the label of the value at the intersection of a column labeled January and a row labeled Unit Sales is January Unit Sales. For more information about using natural language formulas, see "Intelligent Applications in Microsoft Excel" in Chapter 2, "What's New in Microsoft Office."
Scenarios
The Scenarios command (Tools menu) is a tool for creating specialized formulas which pose whatif questions with your data. Scenarios can be sheetlevel or booklevel.
To create a scenario
Note For the protection options to take effect, you must activate protection for the current sheet. For information about sheetlevel security, see "Security Settings" later in this chapter.
You can copy scenarios from other worksheets and other workbooks to the active worksheet. This task is known as merging scenarios. To merge scenarios among workbooks, all the workbooks must be open.
To merge scenarios
When you merge scenarios, there may be some duplicate names. Best Case and Worst Case, for example, are common scenario names. In such instances, Excel appends additional information to the duplicate scenario names, such as creation date, creator name, or an ordinal number.
Cell Formatting and Styles
Styles are collections of format settings for cells. Styles are stored separately from the cell data, which means they can be copied between cells, changed, or deleted, without affecting the data in the cell.
The following table shows the format settings stored in styles.
Styles are saved in the workbook. If you want to reuse styles in another workbook, you can do either of the following:
When you copy the styles to other workbooks, you insert the styles into existing workbooks. When you save the workbook as a template, however, you automatically copy the styles to new workbooks based on this template. For information about creating templates, see "Templates" later in this chapter.
To copy styles from one workbook to another
All styles from the source workbook are merged into the destination workbook. If styles in the destination workbook have names that match styles being merged, you are prompted to choose whether or not to overwrite existing styles in the destination workbook.
The Normal style is likely to match in the source and destination workbooks. All cells in a new workbook are initially formatted with the Normal style. You can change the settings for the Normal style, but the change does not affect new workbooks unless you save the workbook that contains the new Normal style as an autotemplate. For information about autotemplates, see "Autotemplates" later in this chapter.
This format setting | Determines |
Number | Decimal places, separator, inclusion of dollar sign, style for displaying negative numbers, and other options for formatting different kinds of numbers such as currency, dates, fractions, and so on. |
Alignment | Horizontal and vertical alignment, text orientation, and whether text wraps in the cell. |
Font | Font name, style, size, special effects, and color of the text in the cell. |
Border | Placement and style of the border of the cell. |
Pattern | Shading and color of the cell. |
Protection | Whether data in the cell is locked or the formula is hidden. This option does not take effect until you activate protection by clicking Protect Sheet (Tools menu, Protection submenu). |
Tip In Windows 95 and Windows NT Workstation 4.0, you can use a system policy to set the Standard Font option on the General tab in the Options dialog box (Tools menu) for all Excel users in your workgroup. In the System Policy Editor, set the following policy: |
User\Excel 97\Tools_Options\General\Font
For more information, see "Using Windows System Policies to Customize Office" in Chapter 7, "Customizing and Optimizing Microsoft Office."
Charts
You create charts based on a range of selected cells on a worksheet. To create a chart, click Chart (Insert menu), and then follow the instructions in the Chart Wizard. In the Chart Location panel, the chart is stored on its own sheet (called a chart sheet) if you select the As new sheet option; if you select the As object in option, the chart is embedded in a worksheet. Regardless of which type of sheet a chart is stored on, Excel stores charts in the workbook file. You can copy charts into other workbooks, and into other Office applications, such as Word documents and PowerPoint presentations.
Charts are linked dynamically to data on a worksheet. This means that changes to the data are updated in the chart, and changes to a data marker on the chart are reflected in the linked data cells. Text on the chart can also be linked to text in worksheet cells. This text appears as titles, data labels, legend entries, and labels for axis tickmarks. Editing text in the worksheet cells affects text in the charts that are linked to the cells. You can edit text directly in charts, but this breaks the link to the cells on the worksheet.
Custom Chart Types
Instead of formatting chart items individually, you can quickly change the look of a chart using a custom chart type. (In previous versions of Excel, these were called chart autoformats.) Each custom chart type is based on one of the 14 predefined chart types, and can include a chart subtype, legend, gridline options, data labels, color settings, patterns, and layout. Excel includes several builtin custom chart types. You can also create your own custom chart types.
To create a custom chart type
If you want to add a description, type it in the Description box.
Excel stores galleries of builtin and userdefined chart types on separate chart sheets in workbooks with reserved file names, as shown in the following tables. Note that the userdefined chart gallery file is created only after a userdefined chart type is created.
To create a unified look, you can build a gallery of custom chart types for your workgroup. For example, you can create a series of custom chart types with a consistent layout and color scheme, perhaps designed to be integrated into a PowerPoint presentation.
To distribute custom chart types
Operating system | Folder name and location |
Windows | Program Files\Microsoft Office\Office |
Macintosh | System Folder:Preferences |
Windows chart type | File name and location |
Builtin chart gallery | Program Files\Microsoft Office\Office\Xl8galry.xls |
Userdefined chart gallery | Program Files\Microsoft Office\Office\Xlusrgal.xls |
Macintosh chart type | File name and location |
Builtin chart gallery | System Folder:Preferences:Excel Chart Gallery (8) |
Userdefined chart gallery | System Folder:Preferences:Excel Chart User Gallery |
Tip In Windows 95 and Windows NT Workstation 4.0, you can use a system policy to specify the path to a standard userdefined chart gallery on a network drive for all Excel users in your workgroup. In the System Policy Editor, set the following policy: |
User\Excel 97\Miscellaneous\Chart Gallery
For more information, see "Using Windows System Policies to Customize Office" in Chapter 7, "Customizing and Optimizing Microsoft Office."
Macros
Macros are stored in Visual Basic modules in workbooks. Unlike previous versions of Excel, Visual Basic modules are not stored on a module or macro sheet. Instead, you view Visual Basic code with the Visual Basic Editor command (Tools menu, Macro submenu). You can distribute macros in the following ways:
You can store macros in a workbook. To make the macros available each time Excel starts, store the workbook in the startup or alternate startup folder.
You can distribute the macros as a standalone, customized version of Excel by saving a workbook as an addin. To automatically open the addin each time Excel starts, store the addin in the startup or alternate startup folder. For information about startup folders, see "Startup and Alternate Startup Folders," later in this chapter.
You can help protect specific sheets or entire workbooks. To configure security settings, including passwords, point to Protection (Tools menu), and then click a command. Security settings are stored in the workbook file. The only way to change them is to open the workbook, modify the security settings, then save the file.
At the sheet level, you can help secure items as shown in the following table.
At the workbook level, you help can secure items as shown in the following table.
Tip You can get finer levels of protection using Visual Basic properties such as EnableAutoFilter, EnableOutlining, EnablePivotTable, EnableSelection, ScrollArea, and EnableResize. For more information about these properties, see the Microsoft Office 97/Visual Basic Programmer's Guide, published by Microsoft Press and available wherever computer books are sold. For more information about Microsoft Press books, see Appendix E, "Other Support Resources."
For more information about security in Excel, see "Security Features in Microsoft Excel" in Chapter 30, "Workgroup Features in Microsoft Excel."
Page Settings
Page settings for the layout of the workbook, such as page orientation, margins, and headers and footers, are based on the autotemplate. The page settings in the auto template are initially defined by Excel; however, you can modify these settings in the workbook or save them in a template. Once a workbook is created, its page settings are saved in the workbook file; they are not automatically saved back to the template. You modify page settings with the Page Setup command (File menu).
A template is a special workbook used as a pattern to create new workbooks. Templates have the file extension .xlt (Windows) or the file type Excel Document (Macintosh).
To maintain consistency among workbooks, you can create templates for a workgroup. For example, you can create a sales report workbook, save it as a template, and distribute it to a workgroup. When users in the workgroup create weekly sales reports based on the template, Excel has a consistent set of menus, macros, and toolbars, and the workbooks have a consistent format.
Settings saved in a template determine the following characteristics of new workbooks based on that template:
When you open a template, Excel opens an untitled, unsaved copy of the template that contains all data, formatting, formulas, macros, styles, scenarios, and so forth that are contained in the template. The original template file remains unchanged.
Tip When you create a template linked to external data, Excel asks if you want to remove the data before closing and refresh it automatically when the template is opened. Doing this reduces the file size of the template, and can help provide additional data security if you require the user to enter a password in order to reconnect to the external data source.
To create a template
Storing workbook templates in the startup or alternate startup folder automatically makes the template available when you click New (File menu). However, this slows the Excel startup time. Alternatively, save templates in the Microsoft Office\Templates folder.
Note Although templates in the startup or alternate startup folder are automatically available for creating new workbooks, only the template with the reserved name Book.xlt (Windows) or Workbook (Macintosh) stored in the startup or alternate startup folder is an autotemplate. For more information about autotemplates, see "Autotemplates" later in this chapter.
Helping protect this item | Helps protect it in this way |
Sheet contents | Prevents editing or deleting cells on worksheets, as well as items in chart sheets |
Sheet objects | Prevents moving, editing, resizing, or deleting graphic objects on worksheets and embedded charts |
Scenarios | Prevents changing the definitions of scenarios |
Helping protect this item | Helps protect it in this way |
Structure | Prevents deleting, moving, hiding, unhiding, renaming, or adding sheets to the workbook |
Windows | Prevents moving, resizing, hiding, unhiding, or closing windows in the workbook |
How Are Word Templates and Microsoft Excel Templates Different? Unlike Word, Excel
does not maintain an attachment between workbooks and the templates
on which they are based. In both Word and Excel, the template works
like a readonly document, but in Word, when you create a document,
it has at least one template attached to it, and potentially more.
In Word, changing a template (redefining a style, for example) can
affect all documents to which the template is attached. This
situation is not true in Excel. Once a workbook is created from a
template, there is no persistent link between the two, and changing
one does not affect the other. |
You can save workbooks as addins. Addins compiled from Excel workbooks have the file extension .xla (Windows) or the file type Excel Document (Macintosh). Once created, addins are protected because they cannot be edited.
You can create addins to assemble and distribute custom features that, from the user's point of view, act as if they are built into Excel. For information about creating, maintaining, and distributing addins, see the Microsoft Office 97/Visual Basic Programmer's Guide, published by Microsoft Press and available wherever computer books are sold. For more information about Microsoft Press books, see Appendix E, "Other Support Resources."
Note Addins can also be written in C code. When compiled, these addins have the file extension .xll (Windows) or the file type Microsoft Excel Document (Macintosh).
Several addins are included with Excel. Before you can use an addin, you must install it by rerunning the Office Setup program, and then load it into Excel by clicking the Addins command (Tools menu). The addin's functionality is then available to all open workbooks and remains loaded in Excel until you unload it through the Addins command (Tools menu). You can also load an addin for just the current Excel session by opening the addin through the Open command (File menu).
If you choose a Typical installation during Setup, some addins are installed and loaded automatically, whereas others are installed only, and must be loaded in Excel manually. For information about the components installed for each type of installation, see Appendix D, "List of Installed Components." Except where otherwise indicated, all addins are installed in the locations shown in the following table.
The following table describes the addins included with Excel. Some addins require a dynamic-link library (DLL) or compiled C addin in addition to the addin file, as indicated in the table.
Note To use Query with Excel, you must install the Query application, the Query addin, the drivers for the types of data you want to retrieve, and the necessary ODBC files. To install these files on a computer running Windows, rerun Setup and click Add/Remove; then select the Data Access option. To use Query on a Macintosh computer, copy the necessary files from the compact disc that came with the Value Pack for Office 98. For information about using Query with Excel, see Chapter 27, "Sharing Information with Microsoft Office Applications."
Operating system | Addin location | ||
Windows | Program Files\Microsoft Office\Office\Library | ||
Macintosh | Microsoft Office 98:Office:Excel Add-ins | ||
Addin | Windows file name | Macintosh file name | Description |
Access Links Addin | Acclink.xla | Not supported | Allows you to use Microsoft Access forms and reports with Excel data tables. |
Analysis ToolPak | Analys32.xll (Office\Library\ Analysis folder) |
Analysis ToolPak | Adds financial and engineering functions, and provides tools for performing statistical and engineering analysis. |
Analysis ToolPak VBA | Atpvbaen32.xla | Analysis ToolPak VBA | Adds Visual Basic functions for the Analysis ToolPak. |
AutoSave | Autosave.xla | Auto Save | Saves workbook files automatically. |
Conditional Sum Wizard | Sumif.xla | Conditional Sum Wizard | Helps you create formulas to sum selected data in lists. |
File Conversion Wizard | Fileconv.xls | File Conversion Wizard | Converts several spreadsheet files to Excel format in one step. |
Internet Assistant Wizard | Html.xla | Internet Assistant Wizard | Converts Excel tables and charts to HTML files. |
Lookup Wizard | Lookup.xla | Lookup Wizard | Finds values at the intersection of a row and column based on known values. |
Microsoft Query | Xlquery.xla | Xlquery.xla | Retrieves data from external database files and tables using Query. (This addin is used only when saving files in Microsoft Excel 97 & 5.0/95 (Windows) or Microsoft Excel 98 & 5.0/95 (Macintosh) format, or for backward compatibility for Visual Basic.) |
ODBC | Xlodbc.xla Xlodbc32.dll Xlquery.xla (Office\Library\ Msquery folder) |
Xlodbc.xla Xlquery.xla (Value Pack folder) |
Adds worksheet and macro functions for retrieving data from external sources with Microsoft ODBC. (This addin is included in Excel 97 (Windows) or Excel 98 (Macintosh) only for backwards compatibility; for programmatic data access, use DAO.) |
Report Manager | Reports.xla | Report Manager | Prints reports based on views and scenarios. |
Solver Addin | Solver.xla Solver32.dll Solvsamp.xls (Office\Library\ Solver folder) |
Solver | Calculates solutions to whatif scenarios based on adjustable cells, constraint cells, or cells that must be maximized or minimized. |
Template Utilities | Template Numbering.xls | Template Utilities | Contains utilities used by Excel templates. |
Template Wizard with Data Tracking | Wztemplt.xla | Template Wizard | Creates a template to export worksheet data to a database. |
Update Addin Links | Updtlink.xla | Update Addin Links | Updates links in Excel version 4.0 addins to directly use Excel 97 (Windows) or Excel 98 (Macintosh) functionality. |
Web Form Wizard | Webform.xla | Web Form Wizard | Helps you create an HTML form based on an Excel spreadsheet. |
|
Excel default settings and paths are established when you run the Office Setup program. After Setup, you can customize these settings for a single user, a workgroup, or across an entire organization.
There are several ways to customize the Excel application:
The settings you make in this dialog box to Excel 97 are stored in the Windows registry or to various settings files, which Excel reads when it starts. The settings you make to Excel 98 are stored in System Folder:Preferences.
When Excel starts, it opens all workbooks stored in the startup folder, or in the alternate startup folder as specified on the General tab in the Options (Windows) or Preferences (Macintosh) dialog box (Tools menu).
When Excel starts, it opens a new workbook based on your autotemplate. You can specify the default font, formatting, and other options for new workbooks by creating a custom autotemplate.
If you want to open a group of workbooks in one step, you can create a workspace file. A workspace file contains information about which workbooks to open, their location, and the size and position of their windows on the screen.
In the Customize dialog box (Tools menu), you can customize the toolbars, menu bars, and shortcut menus included with Excel, or you can create your own.
An addin is a hidden, readonly workbook in which Visual Basic, XLM, or C code has been compiled from a source workbook. For more information about addins, see "Add-ins" earlier in this chapter.
These methods of customizing Excel are described in the following sections. Some of the customizations you make with Excel 97 are stored in the Windows registry, and some settings are stored in a separate file on the user’s system. The settings you make to Excel 98 are stored in System Folder:Preferences.
The settings specified through the Options command (Tools menu) are saved to the Windows registry or to various settings files, which Excel reads when it starts. When two or more users open a shared workbook on a network, Excel applies the separate preferences to each user's view of the shared workbook. For information about Excel entries in the Windows registry, see Appendix C, "Registry Keys and Values."
Tip In Windows 95 and Windows NT Workstation 4.0, you can use a system policy to define most settings in the Options dialog box (Tools menu) for all Excel users in your workgroup. In the System Policy Editor, set the following policy: |
User\Excel 97\Tools_Options
For more information, see "Using Windows System Policies to Customize Office" in Chapter 7, "Customizing and Optimizing Microsoft Office."
Startup and Alternate Startup Folders
When Excel starts, it opens all workbooks, charts, and workspace files stored in the startup folder shown in the following table.
When you click New (File menu), the workbook templates listed are those stored in the startup folder. If you want to open a workbook automatically when you start Excel, move or copy the workbook to the startup folder. This strategy is especially useful if a workgroup is running Excel from a shared network drive, and all users are sharing the same startup folder.
Tip A problem that arises in a workgroup using a common startup or alternate startup folder is for the first user to start Excel and open the startup workbooks readwrite. Subsequent users cannot open the startup documents readwrite. Two solutions to this situation are to make the startup workbooks readonly, or to enable workbook sharing so multiple users can edit the startup workbooks simultaneously. For more information about shared workbooks, see "Shared Workbooks" in Chapter 30, "Workgroup Features in Microsoft Excel."
If you want to start Excel with additional workbooks besides those in the startup folder, you can specify an alternate startup folder on the General tab in the Options (Windows) or Preferences (Macintosh) dialog box (Tools menu). You might want to create an alternate startup folder if Excel is installed on individual workstations with individual startup folders.
By specifying a single alternate startup folder on a shared network drive, you have a single folder for maintaining any workbooks, charts, or workspace files you want users to open when they start Excel. Or individual users might have personal workbooks and templates they want opened automatically. These could go in the alternate startup folder on a local drive. Excel always opens workbooks stored in both the startup and alternate startup folders — not one or the other.
Operating system | Startup folder |
Windows | Microsoft Office\Office\Xlstart |
Macintosh | System Folder:Preferences:Excel Startup Folder (8) |
Tip In Windows 95 and Windows NT Workstation 4.0, you can use a system policy to specify an Alternate startup file location in the Options dialog box (Tools menu) for all Excel users in your workgroup. In the System Policy Editor, set the following policy: |
User\Excel 97\Tools_Options\General\Alternate Startup Folder
For more information, see "Using Windows System Policies to Customize Office" in Chapter 7, "Customizing and Optimizing Microsoft Office."
If you do not specify a startup workbook, Excel opens a new, unsaved workbook when you start Excel. This startup workbook is derived from the autotemplate, a template that opens automatically because it has a reserved file name, as shown in the following table, and is stored in the startup or alternate startup folder.
You can specify the default font, formatting, and other options for new workbooks by creating a custom autotemplate. For example, you can create an autotemplate that includes customized headers and footers and your company name, or any text, formatting, formulas, and macros that you want to include automatically in new workbooks.
Note Before you customize the autotemplate, it is a good idea to make a backup copy of the original file.
To create an autotemplate
Workspace Files
If you want to be able to open a group of workbooks in one step, you can create a workspace file. A workspace file contains information about which workbooks to open, their location, and the size and position of their windows on the screen. (The workspace file does not contain the workbooks themselves.)
To create a workspace file
If you plan to distribute the workspace file to other users, make sure that all workbooks referenced by the workspace file are on a shared network drive.
The default name Excel gives to the workspace file is Resume.xlw (Windows) or Resume (Macintosh). You can rename the file if you want.
If you want the workspace file to open automatically each time users start Excel, copy the file to the users' startup or alternate startup folder.
Important The workbook names and folder locations are saved in the workspace file. If the files are moved to another location, Excel cannot find them. The best strategy is to save the workspace file and the workbook files it references in the same folder if possible.
Custom Toolbar Settings and Lists
By customizing toolbars and lists, you can change Excel to better suit the needs of your workgroup. For example, you can add frequently used commands and dialog box options to toolbars, and remove items users rarely use. You can also customize lists so that users can sort data in a certain order or quickly fill in a series of cells in a particular way.
You can create and maintain lists for custom fill series or sorting order on the Custom Lists tab of the Options (Windows) or Preferences (Macintosh) dialog box (Tools menu). You can customize toolbars in the following ways:
When you modify toolbars or create custom lists through the Excel 97 or Excel 98 user interface, these settings are stored in the following locations:
Toolbars attached to Visual Basic modules, however, are stored in the workbook file. You can distribute a common set of custom toolbars and custom lists to your workgroup to accomplish specific tasks.
To share custom toolbars within a workgroup
Operating system | Autotemplate reserved file name |
Windows | Book.xlt |
Macintosh | Workbook |
Tip In Windows 95 and Windows NT Workstation 4.0, you can use a system policy to specify the path to the custom toolbar settings file on a network drive for all Excel users in your workgroup. In the System Policy Editor, set the following policy: |
User\Excel 97\Miscellaneous\Personal Toolbars
For more information, see "Using Windows System Policies to Customize Office" in Chapter 7, "Customizing and Optimizing Microsoft Office."
The custom toolbar and lists persist on the user's computer after the user closes or even deletes the workbook. To delete a custom list, you must go to the Custom Lists tab in the Options (Windows) or Preferences (Macintosh) dialog box (Tools menu).
Tip You can also use Visual Basic code to customize toolbars and menus with the CommandBar object model. For more information about customizing with Visual Basic, see the Microsoft Office 97/Visual Basic Programmer's Guide, published by Microsoft Press and available wherever computer books are sold.
|
Conflicts can arise in Excel when files of the same name reside in the startup and alternate startup folders, or when the user interface has been customized through Visual Basic code.
Startup and Alternate Startup Folders
Excel opens files in the startup folder before opening files in the alternate startup folder. If there is a file in the alternate startup folder with a name that matches a file in the startup folder, the file in the alternate startup folder is ignored.
When you open a workbook that has a toolbar attached, the attached toolbar definitions are saved to your custom toolbar file. These definitions persist on your computer after you close or delete the workbook. If custom macros are attached to the toolbar and you try to run a macro from the toolbar after closing or deleting the original workbook, Excel displays a message stating that it cannot find the macro. The macro can not be found because it resides in the workbook where the toolbar originated.
If you customize the toolbar, your changes do not affect the original toolbar stored in the original workbook. When you reopen the original workbook, Excel uses the copy of the toolbar stored in your custom toolbar file rather than reloading the toolbar stored in the workbook. To generate the original version of the toolbar, delete the customized copy. To do this point to Toolbars (View menu), click Customize, and then select the toolbar and click Delete.
If an addin's source workbook contains a reference to another addin, make sure that when you distribute the addin, the referenced addin is stored on the user's computer where the calling addin can find it. The best strategy is to always store a referenced addin in the folder that contains the calling addin. When you compile a source workbook as an addin, Excel stores a path to the referenced addin in the calling addin. If you move the calling addin to another computer (for example, when you distribute the addin to other users) and Excel cannot find the file in the path, then the following situations result.
|
For information about creating, maintaining, and distributing
addins, see the Microsoft Office 97/Visual Basic
Programmer's Guide, published by Microsoft Press and available
wherever computer books are sold.
|