Copyright: Copyright 1993 Microsoft Corp.
Citation: Copyright 1993 Microsoft Corporation. All rights reserved.


 Microsoft Excel Top 100 KB Articles

Prepared 02/23/95

 Keywords for All Knowledge Base Articles

 Keywords for the Excel Knowledge Base

 Knowledge Base Articles

 Other Sources of Information

 User Survey

THE INFORMATION IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES EITHER EXPRESSED OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS, OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FORGOING EXCLUSION OR LIMITATION MAY NOT APPLY.Copyright (c) 1994 Microsoft Corporation.  All rights reserved.


Keywords for All Knowledge Base Articles
 Microsoft Excel Top 100 KB Articles

 Keywords for All Knowledge Base Articles

 Categories and Keywords for All Knowledge Base Articles

 Keywords for the Excel Knowledge Base

 Knowledge Base Articles

 Other Sources of Information

 User Survey


Keywords for the Excel Knowledge Base
 Microsoft Excel Top 100 KB Articles

 Keywords for All Knowledge Base Articles

 Keywords for the Excel Knowledge Base

 Office, Excel, and Project Article Keywords

 Knowledge Base Articles

 Other Sources of Information

 User Survey


Knowledge Base Articles
 Microsoft Excel Top 100 KB Articles

 Keywords for All Knowledge Base Articles

 Keywords for the Excel Knowledge Base

 Knowledge Base Articles

 Excel 5.0c for Windows:  List of Fixed Problems

 XL5C: How to Copy Files from Cabinets on DMF-Formatted Disks

 ErrMsg: Error Occurred Initializing VBA Libraries

 MXL5: Troubleshooting Microsoft Excel 5.0 for the Macintosh

 XL5: "File Not Found" Error Using References Dialog Box

 Error Messages That Appear When Starting Excel on PowerMac

 XL5: AppNote: Lotus 1-2-3 WK4 File Converter (WE1130)

 XL5: List of Help Topics in MAINXL.HLP File (Part 1 of 2)

 XL5 Err Msg: "Not Enough Stack Space to Run Macro"

 XL5: List of the Files You Need to Run Microsoft Excel

 XL5 AppNote: Upgrade and Setup Questions and Answers (WE0922)

 XL5 Err Msg: "Call to Undefined Dynalink" During Setup

 XL5: Macro Examples Using XLODBC Functions

 XL5 Err Msg: "Must Exit Windows and Load SHARE.EXE. . ."

 XL5: Macro to Remove Hidden Names in Active Workbook

 XL5: Setting Status Bar Text and ToolTips for Toolbar Buttons

 XL5C: Setup Doesn't Reinstall VSHARE.386

 XL5: List of File Formats Supported in Microsoft Excel 5.0

 XL5: Error Messages When Accessing Files from Floppy Disks

 XL5: GP Fault in XLODBC.DLL Using SQLExecQuery or SQLRequest

 MXL5: Links Incorrect When Source Document(s) Closed

 XL5: GP Fault Checking Spelling in Worksheet

 MSQuery: Third-Party Vendors for ODBC Drivers

 XL5: Error Opening Files with System 7.5 and MacLinkPlus

 XL5: List of Help Topics in MAINXL.HLP File (Part 2 of 2)

 Excel: Macro to Add Labels to Points in an XY (Scatter) Chart

 XL5: Using Add-in Functions in Visual Basic Modules

 XL5: Determining which Items Are Selected in a List Box

 XL5: Removing the Control Menu and Application Window Controls

 XL5: Disabling Microsoft Excel Control Menu Commands

 XL5: Can't Print Collated Copies

 Excel AppNote: Pentium Floating Point Unit Patch (WE1136)

 XL5: Importing Text Files Larger Than 16384 Rows

 Excel 5.0 for the Macintosh: Summary List of Known Issues

 XL5: Error Editing/Saving File When Can't Access File on Disk

 Excel 5.0 for Windows: Summary List of Known Issues

 XL5 Err Msg: Not Enough Memory To Display Pivot Table

 XL5: Excel and Visual Basic Library Files (.OLB) Available

 XL5: Can't Run Macros That Use File Functions Add-in Functions

 XL5: Cannot Open Microsoft Works 3.0 Files

 XL5: "File Format Not Valid" Error After Selecting File Type

 XL5: TRANS.EXE Not Installed with Custom or Complete Install

 XL5: Microsoft Excel Does Not Save Print Settings for Views

 XL5: Visual Basic Example Using the SQLError Function

 XL5: GP Fault in VBA.DLL on Exit After Saving to Floppy Drive

 XL5: Problems Using Show Method to Open Dialog Sheets

 XL5: Sheets in Wrong Orientation with Print Entire Workbook

 XL5: Cannot Print Multiple Copies to DeskJet 500C/550C Driver

 XL5: Incorrect Polynomial Trendline on XY (Scatter) Chart

 XL5 Err Msg: GP Fault in Module SDM.DLL

 XL5: Not Possible to Position Custom Dialog Boxes

 XL5: AppNote: MAPI-to-VIM Translation .DLL MAPIVIM.DLL

 XL5: DDE Poke to Microsoft Excel Workbook Fails

 Microsoft ODBC Drivers Fulfillment Kit

 MSQuery: "Connection Failed" Error Connecting to SQL Server

 XL5: Macro to Print a Group of Files Located in Same Directory

 Excel:  OnEntry Macro to Create a Running Total

 XL5: How to Select Cells/Ranges Using Visual Basic Procedures

 XL5: Printing Fails After Printing Workbook Multiple Times

 XL5 Err Msg: "File Format No Longer Supported" Creating Add-in

 Excel: Recovering Damaged Files

 Excel AppNote: Built-in Constants in VB, Applications Edition

 XL5: Change to "Prompt Before Saving" Check Box Not Saved

 XL5: Can't Get or Set Properties of X Axis in XY Scatter Chart

 XL5: Advanced Filter Extracts All Records

 XL5: Opening Quattro Pro WQ1 File Causes GP Fault

 XL5: Some Functions Unexpectedly Return #NAME Error Value

 Excel: 1-2-3 Commands to Attach Text Data Labels to XL Chart

 Cannot Find 'Filename' Saving or Opening File

 Procedure to Export Text File with Comma AND Quote Delimiter

 Excel 5.0c for Windows: Summary List of Known Issues

 System Error -192 Starting Microsoft Excel

 "Invalid Path..." Error Installing Lotus 1-2-3 WK4 Converter

 XL5: VB Procedure to Emulate Find Command

 XL5: Cells.Find Returns Error When No Match Found

 Excel: Calculating Weighted Averages

 XL5: Cannot Set Consecutive Delimiter for TextWizard in Macro

 Unexpected Results with Mixed Text and Numbers in Lookup Table

 Microsoft Excel 5.0 Reads Native Multiplan File Format

 XL5: "Could Not Open the File..." Running WK4 Converter Setup

 XL5: Can't Synchronize Windows By Choosing Arrange All

 XL5: GP Fault Saving File with Invalid Name Reference

 XL5: Macro Translation Assistant Not Installed

 XL5: GP Fault Copying, Moving, or Scrolling Visual Basic Module

 GP Fault in Excel 4.0 Printing or Closing Print Preview

 XL5: Not All Worksheet Functions Supported As Application

 XL5 AppNote: Using Macros Questions and Answers (XE0927)

 XL5: Pie Chart Shows Incorrect Percentage Value

 XL5: Excel 5.0 CBT Is Not Installed Under OS/2

 XL5: Print Reports Not Using Continuous Page Numbers

 XL5: "Cannot Find Macro..." Using Run Method with Add-in Macro

 XL5: What Is Installed for Each Option in Custom/Complete Setup

 XL5 Err Msgs: "Excel Busy..." or "Application Can't Be Found"

 XL5 Err Msg: File Error, Cannot Find XLODBC.DLL

 XL5: Excel 5.0c Setup Program Installs VSHARE.386

 XL5 Err Msg: "Cannot Open Printer Driver" with Chart Sheet

 XL5: Returning Multiple Values from a Custom Function

 XL5: Visual Basic Macro to Convert Lotus Files to Excel

 XL5: "Cannot Open Help File" Running Examples And Demos

 Importing Text Files Larger Than 16384 Rows

 XL5: Columns Hidden in File Saved to WK1 Format in SuperCalc

 XL5: Printer Setup Option Doesn't Affect Selected Sheet

 XL5: Overview of ODBC Add-in Functions and Arguments

 Other Sources of Information

 User Survey


Other Sources of Information
 Microsoft Excel Top 100 KB Articles

 Keywords for All Knowledge Base Articles

 Keywords for the Excel Knowledge Base

 Knowledge Base Articles

 Other Sources of Information

 More Information About Knowledge Base (KB) Help

 User Survey


User Survey
 Microsoft Excel Top 100 KB Articles

 Keywords for All Knowledge Base Articles

 Keywords for the Excel Knowledge Base

 Knowledge Base Articles

 Other Sources of Information

 User Survey

 Microsoft Knowledge Base Help File Survey


Categories and Keywords for All Knowledge Base Articles

Article ID: Q94671

CATEGORIES AND KEYWORDS FOR ALL KNOWLEDGE BASE ARTICLES

=======================================================

To categorize articles within the Microsoft Knowledge Base and make finding

information easier, a common set of keywords has been adapted for use

throughout the KB. These keywords are used to categorize the subject of

each article. Each article has one SUBJECT keyword. A secondary keyword

indicating the TYPE of article can also be used.

To query on one category, enter the category code and a wildcard. For

example:

   kb3rdparty*

To query on more than one category, enter each category code with a

wildcard. For example:

   kb3rdparty* or kbinterop* or kbusage*

To query on one subcategory, enter the complete code. For example:

   kbbuglist

To query on more than one subcategory, enter all the complete codes. For

example:

   kbbuglist or kbfixlist

You can also mix categories and subcategories in one query. For example:

   kbtshoot or kbnetwork*

NOTE: At the end of this article is a table that lists formerly used

keywords and their replacements.

INFORMATION CATEGORIES AND KEYWORDS

===================================

   Article subject                                       Keyword

   ----------------------------------------------------------------

   Interactions with third-party products                kb3rdparty

   Interoperability with other MS products               kbinterop

   How to use product features/functionality             kbusage

   Printing                                              kbprint

   Setup and installation issues                         kbsetup

   Networking                                            kbnetwork

   Environment and configuration information             kbenv

   OLE technology                                        kbole

   Tools, utilities, applets, such as MS Draw or Write   kbtool

   Programming                                           kbprg

   User interface                                        kbui

   Graphics                                              kbgraphic

   Multimedia                                            kbmm

   Hardware                                              kbhw

   Microsoft At Work                                     kbatwork

   Sound (audio) issues                                  kbsound

   Display (video, monitor, resolution) issues           kbdisplay

   Readme files                                          kbreadme

   Lists of vendor phone numbers, disk directory

      listings, other lists or references                kbref

   Support boundaries, policies, processes

      & procedures                                       kbpolicy

   Other: Any subject not covered in other categories    kbother

   Article types                                         Keyword

   ----------------------------------------------------------------

   Application Notes                                     kbappnote

   Bug info for a particular version of a product        kbbuglist

   Sample code                                           kbcode

   Documentation errors                                  kbdocerr

   Error message followup information                    kberrmsg

   FastTip scripts or maps                               kbfasttip

   Binary file information located in the

      Microsoft Software Library                         kbfile

   Fixed bug info for a particular version of

      a product                                          kbfixlist

   Articles listing product-specific keywords            kbkeyword

   Sample macro with article                             kbmacro

   Problems not classified as bugs                       kbprb

   FastTip Technical Library Catalog                     kbtlc

   Troubleshooting information                           kbtshoot

The following table lists formerly used keywords and their replacements.

For explanations of what these keywords represent, see the tables above.

   Old keyword(s)                                        New keyword

   -----------------------------------------------------------------

   3rdparty, isv, 3rd party                              kb3rdparty

   phoneref, diskdir                                     kbref

   errmsg, err msg                                       kberrmsg

   docerr, doc err                                       kbdocerr

   buglist                                               kbbuglist

   fixlist                                               kbfixlist

   softlib                                               kbfile

   tshoot                                                kbtshoot

   appnote                                               kbappnote

   fasttip, ivr                                          kbfasttip

   tlc                                                   kbtlc

MORE INFORMATION

================

Future querying tools may allow for use of friendly names for information

categories. With current searching tools, "printing" cannot be used as a

keyword because that word is also used in many articles whose main subject

is not printing. Until our tools allow searching on keywords separately

from article text, we need to create unique spellings for Knowledge Base

keywords. Therefore, all standard Knowledge Base keywords will begin with

the letters "kb."

Additional reference words: kbkeyword key word kbcdg dskbguide

KBCategory: kbref

KBSubcategory:


Office, Excel, and Project Article Keywords

Article ID: Q123516

SUMMARY

=======

Keywords are used to categorize all articles within the Microsoft Knowledge

Base and to make information easier to find. Microsoft Office, Microsoft

Excel, and Microsoft Project articles contain some additional product

specific keywords. The following information describes these keywords and

explains how they can be used to search for specific types of articles.

MORE INFORMATION

================

The keywords are grouped below under the following headings:

   KBCategory Keywords (Subject and Type)

   KBSubcategory Keywords (Product Specific)

   Additional Reference Words

   Buglist/Fixlist Keywords in the ABU Databases

KBCategory Keywords (Subject and Type)

--------------------------------------

Every article in the Knowledge Base has at least one SUBJECT keyword, and

may have a secondary keyword indicating the TYPE of article. The Subject

and Type keywords are located in the KBCategory line at the end of an

article.

For additional information, please see the following article(s) in the

Microsoft Knowledge Base:

   ARTICLE-ID: Q94671

   TITLE     : Categories and Keywords for All Knowledge Base Articles

The following list discusses how these keywords are used in Microsoft

Office, Microsoft Excel, and Microsoft Project articles:

Subject Keywords:

   kbtool     For articles discussing Microsoft Query, add-ins, ToolPak

              functions, spelling checker, function wizard, chart wizard

   kbprg      For articles discussing programming issues (macros or Visual

              Basic procedures)

Type Keywords:

   kbcode     For articles that contain sample Visual Basic code

   kbmacro    For articles that contain Microsoft Excel version 4.0 macro

              code

   kbbuglist  For articles that contain the application's official

   kbfixlist  published bug/fix list or that are listed in the

              application's bug/fix list (see the "Buglist/Fixlist Keywords

              in the ABU Databases" section below)

   Example:

   KBCategory: kbprg kbcode

   KBSubcategory:

KBSubcategory Keywords (Product Specific)

-----------------------------------------

Product specific keywords are located in the KBSubcategory line at the end

of an article. The following is a list of product specific keywords used in

Office, Microsoft Excel, and Project articles:

Office:

   fontasst         Font Assistant

   offasst          Office Assistant

   officeinterop    Interoperability between Office products

   ofcdir           Disk contents/directory for Microsoft Office

Microsoft Excel:

   xlquery          Microsoft Query

   xlwin            Article applies to Microsoft Excel for Windows ONLY

   xlmac            Article applies to Microsoft Excel for the Macintosh

                    ONLY

   xlnt             Article applies to Microsoft Excel for Windows NT ONLY

   xldir            Disk contents/directory for Microsoft Excel

Project:

   Microsoft Project application specific keywords TBD.

Additional Reference Words

--------------------------

Words in the "Additional reference words" line at the end of an article

include the following:

   acronyms (such as gpf, mom, dal, dam, odbc, atp)

   alternate spellings or word choices (such as Novel, toolpack, tool pack,

   hang crash, lock up, freeze, won't respond, interop)

   words that don't appear in the article that you might use to find

   the article (For example, the words XL5 and MXL5 generally appear in the

   title of articles that ONLY apply to version 5.0 of Microsoft Excel for

   Windows or for the Macintosh, respectively. Due to the limited number of

   characters allowed in the title, this keyword may appear in the

   Additional reference words line instead.)

Buglist/Fixlist Keywords in the ABU Databases

---------------------------------------------

Although kbbuglist and kbfixlist are TYPE keywords that apply to all

articles in the Knowledge Base, the following describes how these keywords

are used in Office, Microsoft Excel, and Project articles.

Office:

Currently, these keywords are not used in Office articles, although they

are used in articles for the individual Office applications.

Microsoft Excel:

The kbbuglist and kbfixlist words appear in the following articles:

   1. The article that is a composite of the official published bug list or

      fix list articles.

   2. The individual articles that are listed on the official published

      list.

Project:

TBD

KBCategory: kbkeyword

KBSubcategory:

Additional reference words: 5.00


Excel 5.0c for Windows:  List of Fixed Problems

Article ID: Q119769

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0c

--------------------------------------------------------------------

SUMMARY

=======

The following is a list of bug fixes confirmed in Microsoft Excel version

5.0c for Windows. This is not a comprehensive list and is current as of

August 22, 1994.

For more information on the specific fixes listed in this article, query in

the Microsoft Knowledge Base on the article ID (Qnnnnnn).

==========================

FIX LIST FOR VERSION 5.0c

==========================

 - XL5: Formulas Incorrect When File Saved in SYLK Format

 - XL5: GP Fault If REFTEXT() Refers to Closed Workbook

 - XL5: Embedded Chart Shrinks After Print or Print Preview

 - XL5: Cannot Reopen Password-Protected File

 - XL5: Name Value Not Updated If Worksheet Not Active

 - Unexpected Results with Second Paste Link to Item

 - XL5: Can't Define Global Name If Same Local Name Exists

 - XL5: Can't Use Replace Command to Search for Blank Cells

 - XL5: Sheets in Wrong Orientation with Print Entire Workbook

 - XL5: GP Fault in Text Import Scrolling File with Large Columns

 - XL5: Methods Fail When Embedded Chart Is Edited

 - XL5: Can't Get or Set Properties of X Axis in XY Scatter Chart

 - XL5: Unattached Text in Wrong Place on Zoomed Embedded Chart

 - XL5: Can't Reference Name in Closed Excel 4.0 Workbook

 - XL5: GP Fault Checking Spelling in Worksheet

 - Selection.Cells with Nonadjacent Selection Returns Single Cell

 - XL5: Chart Sheet Tab Contains Filename Extension When Opened

 - XL5: GET.CHART.ITEM() Returns #Value! If Chart Item Selected

 - XL5: Print Reports Not Using Continuous Page Numbers

 - XL5: GP Fault Pasting Multiple Grouped Drawing Objects

 - XL5: Cannot Set Chart Data Marker Color Using Macro

 - XL5: NAMES() Returns #N/A If Active Sheet Is Chart or Module

 - XL5: "Cannot Find Macro..." Using Run Method with Add-in Macro

 - Query: Error Using Decimal Values with Custom Expressions

 - XL5: Reference to Remote Link Not Updated

 - XL5: "Cannot Find Macro" Running Macro in Active Workbook

 - Negative Number in Query Incorrect When Returned to Worksheet

 - XL5: Refresh Data Command May Not Be Updated as Expected

 - XL5: Macro Error Using GET.DOCUMENT(1) with Text File

 - XL5: GP Fault Pasting Object in Protected Workbook

 - XL5: GP Fault Using Size Command with Chart Corners Selected

 - Copied Worksheet Reverts to Standard Row Height

 - XL5: No Label Added to Subtotal in List

 - XL5: Hidden Column/Row Not Saved in Text or CSV File Format

 - XL5: Currency Number Format Lost When Entering Fraction

 - XL5: DOCUMENTS() and WINDOWS() Return XL5GALRY.XLS Filename

 - XL5: GP Fault Using Paste Name Dialog Box in Print Area

 - XL5: GET.DOCUMENT(4) Returns FALSE After FOR.CELL Function

 - XL5: Custom Function Doesn't Recalculate with Calculate Method

 - Text Import Wizard Is Displayed Using OPEN?() with Text File

 - GP Fault Exiting MS Query After Canceling Get External Data

 - XL5: No Option to Save/Not Save Password with MS Query Add-in

 - XL5: Errors Using Wildcard in Sheet Name with Consolidate

 - XL5: GP Fault Using Shared Formula as Computed Criteria

 - MSQUERY: GP Fault Deleting Column After Copy

 - XL5: Caller Does Not Return Hierarchical Menu Information

 - "Cannot Find" Using Analysis ToolPak Visual Basic Function

 - XL5: DDE Poke Command Fails When Mouse Cursor Over Toolbar

 - XL5: "Argument Not Optional" Using Visual Basic ATP Functions

 - MSQUERY: "Can't Group By..." Error Adding Criteria

 - MSQUERY: "Invalid Path" Using Access 2.0 Driver

 - XL5: GP Fault Evaluating INDIRECT() in Defined Name on Chart

--------------------------------------------------------------------

XL5: Formulas Incorrect When File Saved in SYLK Format

Article ID: Q109297

In Microsoft Excel version 5.0 for Windows, if you save a file in the

SYMBOLIC LINK (SYLK) file format, close the file, and then open the

file again, groups of similar formulas may be converted into a single

array formula that displays incorrect results.

--------------------------------------------------------------------

XL5: GP Fault If REFTEXT() Refers to Closed Workbook

ID: Q110595

In Microsoft Excel version 5.0, when you use the REFTEXT() function in a

Microsoft Excel 4.0 macro sheet, and the reference includes the name of a

closed workbook, you receive a general protection (GP) fault.

--------------------------------------------------------------------

XL5: Embedded Chart Shrinks After Print or Print Preview

Article ID: Q111249

If an embedded chart has chart label text (for example, labels for

the x or y axis) and the label text wraps differently in print

preview than it does on the screen, the chart may "shrink" each time

you print it or view it in print preview.

--------------------------------------------------------------------

XL5: Cannot Reopen Password-Protected File

Article ID: Q111728

In Microsoft Excel version 5.0 for Windows, if you save a worksheet

that contains an embedded chart as a password-protected Microsoft

Excel 4.0 worksheet, you will receive a general protection (GP) fault

if you try to open the file in Microsoft Excel version 5.0.

--------------------------------------------------------------------

XL5: Name Value Not Updated If Worksheet Not Active

Article ID: Q111903

In Microsoft Excel, if you use a defined name in a formula on a

worksheet, and then change the value of that name when the active

sheet is not a worksheet, the value of the defined name is not

updated on the worksheet.

--------------------------------------------------------------------

Unexpected Results with Second Paste Link to Item

Article ID: Q111904

In Microsoft Excel, if you use the Paste Link option in the Paste

Special dialog box to link information from another application as an

object or picture, and then link the same information as text, the

link as text appears on the worksheet as follows:

   #VALUE!

--------------------------------------------------------------------

XL5: Can't Define Global Name If Same Local Name Exists

Article ID: Q111905

In Microsoft Excel, if you define a global name, when a local name

with the same name exists on the active worksheet, the value that the

local name refers to is the value you defined for the global name and

the global name is not defined on the workbook.

--------------------------------------------------------------------

XL5: Can't Use Replace Command to Search for Blank Cells

Article ID: Q111942

In Microsoft Excel, if you choose Replace from the Edit menu, and you

leave the Find What box blank and choose Find Next, Replace, or

Replace All to fill blank cells on a worksheet, you receive the

following error message:

   Search string must be specified

--------------------------------------------------------------------

XL5: Sheets in Wrong Orientation with Print Entire Workbook

Article ID: Q111943

In Microsoft Excel, when you open a workbook that contains worksheets

with different page setup orientations, and you print the entire

workbook, some of the worksheets may be printed with the wrong page

orientation.

--------------------------------------------------------------------

XL5: GP Fault in Text Import Scrolling File with Large Columns

Article ID: Q111944

In Microsoft Excel, when you open a text file and use the horizontal

scroll bar under the preview window in the Text Import Wizard to

scroll the columns in the file, you may receive a general protection

(GP) fault.

----------------------------------------------------------------------

XL5: Methods Fail When Embedded Chart Is Edited

Article ID: Q111971

In Microsoft Excel version 5.0, the following methods may fail if the

active sheet is an embedded chart that is currently being edited and

if an object is not specified for the method:

 - Charts Method (Syntax 2)

 - DialogSheets Method (Syntax 2)

 - Modules Method (Syntax 2)

 - Sheets Method (Syntax 2)

 - Worksheets Method (Syntax 2)

----------------------------------------------------------------------

XL5: Can't Get or Set Properties of X Axis in XY Scatter Chart

Article ID: Q111972

In Microsoft Excel version 5.0, you may receive one of the following

error messages when you attempt to set or return the x axis scale

properties for an xy (scatter) chart:

   Run-time error '1005':

   "Unable to set the <property> property of the axis class"

   -or-

   Run-time error '1005':

   "Unable to get the <property> property of the axis class"

--------------------------------------------------------------------

XL5: Unattached Text in Wrong Place on Zoomed Embedded Chart

Article ID: Q111982

In Microsoft Excel version 5.0, if you open a Microsoft Excel version

4.0 worksheet that contains an embedded chart, and the worksheet is

at a zoom magnification option other than 100 percent, unattached

text on the chart appears in the wrong location when you view the

worksheet at 100 percent.

--------------------------------------------------------------------

XL5: Can't Reference Name in Closed Excel 4.0 Workbook

Article ID: Q111983

In Microsoft Excel version 5.0, if you reference a name on a closed

Microsoft Excel version 4.0 workbook, and the name is defined on a

worksheet other than the first worksheet in the workbook, you receive

the following error message

   'name' on 'WORKBOOK' is not defined or is too complex

where name is the name you are referencing, and WORKBOOK is the name

of the workbook that contains the name you are referencing. This

error message appears when you create the reference as well as when

you update the reference.

--------------------------------------------------------------------

XL5: GP Fault Checking Spelling in Worksheet

Article ID: Q112027

In Microsoft Excel, you may receive a general protection (GP) fault

when you check the spelling in a worksheet if a cell on the worksheet

contains text in the following format

   <recognized word><period><space><unrecognized word>

   -or-

   <recognized word><space><unrecognized word>

where <recognized word> is a word that is in the spelling dictionary,

and <unrecognized word> is a word that is not in the spelling

dictionary.

--------------------------------------------------------------------

Selection.Cells with Nonadjacent Selection Returns Single Cell

Article ID: Q112028

In Microsoft Excel, when you use the Range method or the Selection

property with the cells method in a Visual Basic module to return a

nonadjacent selection of cells on a worksheet, only the first cell in

the selection is returned.

--------------------------------------------------------------------

XL5: Chart Sheet Tab Contains Filename Extension When Opened

Article ID: Q112032

In Microsoft Excel, when you open a Microsoft Excel version 4.0, 3.0,

or 2.1 chart file, the chart sheet tab contains the filename extension as

well as the filename.

--------------------------------------------------------------------

XL5: GET.CHART.ITEM() Returns #Value! If Chart Item Selected

Article ID: Q112077

In Microsoft Excel version 5.0, if you use the GET.CHART.ITEM()

function in a Microsoft Excel version 4.0 macro, the function may

return the #VALUE! error value instead of the position of the

selected chart item.

--------------------------------------------------------------------

XL5: Print Reports Not Using Continuous Page Numbers

Article ID: Q112101

In Microsoft Excel version 5.0 for Windows, when you print a report

(from the File menu, choose Print Report), the pages in your report

are not numbered consecutively.

--------------------------------------------------------------------

XL5: GP Fault Pasting Multiple Grouped Drawing Objects

Article ID: Q112175

In Microsoft Excel, if you group drawing objects on a worksheet, and

you repeatedly group multiple object groups, you may receive a

general protection (GP) fault when you copy and paste the group.

--------------------------------------------------------------------

XL5: Cannot Set Chart Data Marker Color Using Macro

Article ID: Q112176

In Microsoft Excel, when the background or foreground color of a chart data

marker is set to none, you cannot change the color of that data marker with

a macro.

--------------------------------------------------------------------

XL5: NAMES() Returns #N/A If Active Sheet Is Chart or Module

Article ID: Q112179

In Microsoft Excel, if you use the NAMES() function in a Microsoft Excel

version 4.0 macro to return defined names on a workbook, the function

returns the #N/A error value if the active sheet in the workbook is a chart

or a module, even if the active workbook does contain workbook-level

("global") defined names.

--------------------------------------------------------------------

XL5: "Cannot Find Macro..." Using Run Method with Add-in Macro

Article ID: Q112219

In a Visual Basic module in Microsoft Excel, if you use the Run method of

the Application object to run a macro located in an add-in, you may receive

the following error message

   Run-time error '1004':

   Cannot find macro '<ADDIN.XLA>!<Addin_Macro>'

where <ADDIN.XLA> is the name of the add-in that contains the macro,

and <Addin_Macro> is the name of the macro that you want to run.

--------------------------------------------------------------------

Query: Error Using Decimal Values with Custom Expressions

Article ID: Q113572

In Microsoft Query version 1.0, you receive the message "Syntax error"

when you try to enter a custom expression that contains a decimal value but

does not have a numeric value before the decimal point.

--------------------------------------------------------------------

XL5: Reference to Remote Link Not Updated

Article ID: Q115427

In Microsoft Excel version 5.0, a reference to a cell that contains a

remote link is not updated if the following conditions are true:

 - The cell that contains the reference refers to a cell on a following

   worksheet in the same workbook.

   -and-

 - The following worksheet is linked to an external workbook.

   -and-

 - The external workbook is not open when you open the linked workbook.

--------------------------------------------------------------------

XL5: "Cannot Find Macro" Running Macro in Active Workbook

Article ID: Q115905

In a Visual Basic macro in Microsoft Excel, if you activate a sheet

in another workbook, and you use the Run method to run a macro in the

activated workbook, such as SHEET1!Auto_Activate, you receive the

following error message:

   Run-time error '1004':

   Cannot find macro 'SHEET1!Auto_Activate'.

--------------------------------------------------------------------

Negative Number in Query Incorrect When Returned to Worksheet

Article ID: Q117313

In Microsoft Excel, when you return data from a query in Microsoft Query,

negative numbers are returned as positive numbers. For example, the value

-1 in Microsoft Query is returned as 65535, the value -2 is returned as

65534, and so on.

--------------------------------------------------------------------

XL5: Refresh Data Command May Not Be Updated as Expected

Article ID: Q118304

In Microsoft Excel 5.0, when you choose the Refresh Data command, the data

in your worksheet may not be updated as expected.

--------------------------------------------------------------------

XL5: Macro Error Using GET.DOCUMENT(1) with Text File

Article ID: Q118414

In Microsoft Excel, if you use the GET.DOCUMENT(1) function in a

macro to return the name of the active document, for example to parse

or process information in the file, you may receive a macro error if

the file is in the Text, CSV, SYLK, or PRN file format.

--------------------------------------------------------------------

XL5: GP Fault Pasting Object in Protected Workbook

Article ID: Q118415

In Microsoft Excel, when you paste an object to a worksheet in a

workbook that has been password protected, you receive a general

protection (GP) fault.

--------------------------------------------------------------------

XL5: GP Fault Using Size Command with Chart Corners Selected

Article ID: Q118416

In Microsoft Excel, if you select the corners on a chart, and you

then choose the Size command (from the Format menu with Microsoft

Excel 4.0 Menus displayed) you receive a general protection (GP)

fault when you click on the chart.

--------------------------------------------------------------------

Copied Worksheet Reverts to Standard Row Height

Article ID: Q118417

In Microsoft Excel, if you copy an empty worksheet to a new or existing

workbook, and you have changed the row height on the worksheet, the

worksheet rows revert to the standard row height in the copy of the

worksheet. Additionally, even if the worksheet contains information,

certain rows on the worksheet may revert to the standard row height when

you copy the sheet.

--------------------------------------------------------------------

XL5: No Label Added to Subtotal in List

Article ID: Q118418

In Microsoft Excel, when you use the Subtotal feature to create

subtotals in a list of data, there is no label describing the

subtotal value in the list.

--------------------------------------------------------------------

XL5: Hidden Column/Row Not Saved in Text or CSV File Format

Article ID: Q118600

In Microsoft Excel, when you hide a column or row in your worksheet,

and you then save the file to the Text or CSV file format, the hidden

column or row is not saved.

--------------------------------------------------------------------

XL5: Currency Number Format Lost When Entering Fraction

Article ID: Q118601

In Microsoft Excel, if you enter text that resembles a fraction in a cell

that is formatted with a currency number format, the number format changes

to a fraction format.

--------------------------------------------------------------------

XL5: DOCUMENTS() and WINDOWS() Return XL5GALRY.XLS Filename

Article ID: Q118602

In Microsoft Excel, if you use the DOCUMENTS() or the WINDOWS() macro

function to return a list of open documents or document windows, the

filename XL5GALRY.XLS is returned in this list.

--------------------------------------------------------------------

XL5: GP Fault Using Paste Name Dialog Box in Print Area

Article ID: Q118603

In Microsoft Excel, if you use the Paste Name dialog box (by pressing

F3) to enter a defined name in the Print Area box in the Page Setup

dialog box, you may either receive

- a general protection (GP) fault

  -or-

- the error message "Margins do not fit page size."

--------------------------------------------------------------------

XL5: GET.DOCUMENT(4) Returns FALSE After FOR.CELL Function

Article ID: Q118654

In Microsoft Excel, if you use the FOR.CELL() macro function, and you

then use the GET.DOCUMENT(4) function without the name_text argument, or

with a workbook name, to return a value indicating whether changes have

been made to the workbook since you saved it last, the value returned by

this function is FALSE.

--------------------------------------------------------------------

XL5: Custom Function Doesn't Recalculate with Calculate Method

Article ID: Q118655

In Microsoft Excel, if you use the Calculate method to recalculate a

custom function in a specified range on a worksheet, and you have the

Manual calculation option selected, the function is not recalculated.

--------------------------------------------------------------------

Text Import Wizard Is Displayed Using OPEN?() with Text File

Article ID: Q118656

In Microsoft Excel, when you use the OPEN?() macro function to display the

Open dialog box, the Text Import Wizard dialog box appears when you open a

text file.

--------------------------------------------------------------------

GP Fault Exiting MS Query After Canceling Get External Data

Article ID: Q118657

When you use the Get External Data command in Microsoft Excel to link

to a query in Microsoft Query, and you then cancel the query and exit

Microsoft Excel, you receive a general protection (GP) fault when you

exit Microsoft Query.

--------------------------------------------------------------------

XL5: No Option to Save/Not Save Password with MS Query Add-in

Article ID: Q118754

In Microsoft Excel, when you use the Get External Data command to link to a

query in Microsoft Query, the dialog box that appears when you return to

Microsoft Excel does not contain a password option; that is, you do not

have the option to keep the password with your data.

--------------------------------------------------------------------

XL5: Errors Using Wildcard in Sheet Name with Consolidate

Article truncated.


XL5C: How to Copy Files from Cabinets on DMF-Formatted Disks

Article ID: Q120006

---------------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0c

---------------------------------------------------------------------------

SUMMARY

=======

The files on Disks 2 through 7 of the Setup program for Microsoft Excel

version 5.0c for Windows are stored in cabinet files on DMF-formatted

disks. If you need to copy the files from the disks to a network server or

other permanent storage drive, you must use the copy switch (/C) with the

EXTRACT.EXE utility located on Disk 1 to copy the application files to the

target location.

EXTRACT.EXE allows you to copy the entire cabinet file (*.CAB) or extract

and decompress individual files contained in the cabinet file. You can also

use the EXTRACT utility to search a cabinet file and list its contents.

To obtain a complete list of command options for the EXTRACT, insert Disk 1

and switch to the drive containing the disk. For example, type "A:" without

the quotation marks if the disk is in drive A. Type EXTRACT or EXTRACT /?

at the command prompt to obtain a list of commands for EXTRACT.

MORE INFORMATION

================

A cabinet (*.CAB) file contains many files stored as a single file. The

following are examples that show how to use the EXTRACT command to copy and

extract files from a cabinet file and how to locate the files contained in

a cabinet file.

Copying an Entire *.CAB File

----------------------------

The following examples demonstrate how to use the EXTRACT command to copy

the entire cabinet file to another location.

To copy a cabinet file named EXCEL2.CAB to the current directory, use

the following syntax:

   EXTRACT /C A:\EXCEL2.CAB EXCEL2.CAB

To copy a cabinet file named EXCEL2.CAB to the directory C:\DISK2, use the

following syntax:

   EXTRACT /C A:\EXCEL2.CAB C:\DISK2\EXCEL2.CAB

Copying Files from a *.CAB File

-------------------------------

Below are some examples of how to copy all of the files from a cabinet

file.

To copy all of the files from all cabinets on all disks to the directory

C:\FLAT:

   EXTRACT /E /A /L C:\FLAT A:\EXCEL1.CAB

Note: The /A switch extracts all files beginning with the first cabinet, so

Disk 1 should be in drive A when you use EXTRACT with this switch.

To copy all of the files from the EXCEL4.CAB cabinet to the current

directory, use the following syntax:

   EXTRACT /E A:\EXCEL4.CAB

Locating a File in a *.CAB File

-------------------------------

If you need only a single file that is contained in one of the cabinet

files, you can search for it using the /D switch with EXTRACT.EXE. Once you

find the file, you can use EXTRACT.EXE again to copy the file to the

desired location. The following examples show how to use the EXTRACT

command to find files.

To list all files in a cabinet file, use the following syntax:

   EXTRACT /D A:\<cabinet filename>

To list all *.EXE files in a cabinet file, use the following syntax:

   EXTRACT /D A:\<cabinet filename> *.EXE

Copying a Single File from a *.CAB File

---------------------------------------

The following are examples of how to use EXTRACT to copy a single file from

a cabinet file.

To extract ANY.EXE to the current directory, use the following syntax:

   EXTRACT A:\<cabinet filename> ANY.EXE

To extract ANY.EXE to C:\EXCEL, use the following syntax:

   EXTRACT A:\<cabinet filename> /L C:\EXCEL ANY.EXE

For additional information, please see the following article(s) in the

Microsoft Knowledge Base:

ARTICLE-ID: Q119838

TITLE     : DMF Information in Office 4.2c Readme Files

KBCategory: kbsetup

KBSubcategory:

Additional reference words: 1.10 5.00c decomp decompress expand


ErrMsg: Error Occurred Initializing VBA Libraries

Article ID: Q109778

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

 - Microsoft Project for Windows, version 4.0

--------------------------------------------------------------------

SYMPTOMS

========

When you start Microsoft Excel, after the Microsoft Excel logo is displayed

on the screen, you may receive the following error messages:

   An Error Occurred Initializing VBA Libraries

   -and/or-

   The Timer driver is not installed on this system. Microsoft Excel

   cannot run without the Timer driver. Choose the help button for

   more information.

CAUSE

=====

In order to run Microsoft Excel, the TIMER.DRV, MMSYSTEM.DLL, and

VTDAPI.386 files must be available on your computer. You will receive the

above error message if any of the following is true:

 - The TIMER.DRV, MMSYSTEM.DLL or VTDAPI.386 file is not loaded on your

   system.

   -or-

 - Either the TIMER.DRV, MMSYSTEM.DLL, or VTDAPI.386 file is damaged.

   -or-

 - The SYSTEM.INI file does not contain the correct entry for TIMER.DRV,

   MMSYSTEM.DLL, or VTDAPI.386.

   -or-

 - You are running Microsoft Excel 5.0 under OS/2.

   NOTE: When the file VTDAPI.386 is missing or damaged or the SYSTEM.INI

   file does not contain the correct entry for this file, you will also

   receive a TIMER.DRV error message when you start Windows.

WORKAROUNDS

===========

NOTE: If you receive a TIMER.DRV error message and you are running

Microsoft Excel 5.0 under OS/2, use Workaround 2 below.

Workaround 1

------------

1. Make sure the SYSTEM.INI file contains the correct lines for TIMER.DRV

   MMSYSTEM.DLL and VTDAPI.386. The lines are as follows:

   a. In the [BOOT] section of the SYSTEM.INI file, the following line is

      required:

         drivers=mmsystem.dll

      This line specifies which drivers to load when you start Microsoft

      Windows, so additional drivers may be listed on this line. For

      example, the line may read:

         drivers=mmsystem.dll pen penwindows

   b. In the [drivers] section of the SYSTEM.INI file, the following line

      is required:

         timer=timer.drv

   c. In the [386Enh] section of the SYSTEM.INI file, the following line is

      required:

         device=vtdapi.386

   NOTE: Make sure that you do not have trailing spaces on any of the

   above lines.

2. Make sure the files TIMER.DRV, MMSYSTEM.DLL, and VTDAPI.386 are loaded

   on your computer. All three files should be located in your

   WINDOWS\SYSTEM directory. If the files do not exist, expand the files

   from your Windows disks. Check for duplicate filenames, and rename as

   needed.

   To expand the files, do the following:

   a. Exit windows to the MS-DOS prompt.

   b. Change to your WINDOWS directory.

   c. In drive A, insert the disk that contains the file that you want to

      expand:

      Microsoft Windows version 3.1

      -----------------------------

      TIMER.DRV is located on Disk 3 (Windows 3.1), Disk 5 (Windows 3.11)

      MMSYSTEM.DLL is located on Disk 4 (Windows 3.1 and 3.11)

      VTDAPI.386 is located on Disk 3 (Windows 3.1), Disk 5 (Windows 3.11)

      Microsoft Windows for Workgroups, version 3.11

      ----------------------------------------------

      TIMER.DRV is located on Disk 5 (Disk 7 if 5.25-inch disks)

      MMSYSTEM.DLL is located on Disk 4

      VTDAPI.386 is located on Disk 5 (Disk 7 if 5.25-inch disks)

   d. At the MS-DOS command prompt, do the following to expand the files

      (assuming your Windows disk is in drive A):

      To Expand TIMER.DRV, type the following:

          Expand a:\timer.dr_ c:\windows\system\timer.drv

      To Expand MMSYSTEM.DLL, type the following:

          Expand a:\mmsystem.dl_ c:\windows\system\mmsystem.dll

      To Expand VTDAPI.386, type the following:

          Expand a:\vtdapi.38_ c:\windows\system\vtdapi.386

NOTE: If the SYSTEM.INI file contains the correct lines and TIMER.DRV,

MMSYSTEM.DLL, and VTDAPI.386 are all on your system in the WINDOWS\SYSTEM

directory, it may be possible that one or all of the files is damaged. In

this case, delete the existing TIMER.DRV, MMSYSTEM.DLL, and VTDAPI.386

files and expand them from your Windows disks using the instructions

from step 2 above.

Workaround 2

------------

If you receive a TIMER.DRV error message and you are running Microsoft

Excel 5.0 under OS/2, you will have to add the TIMER.DRV file to the

system, because it is not installed for the OS/2 Windows emulation by

default. Install the driver in a Windows session, using the Drivers icon in

Control Panel.

NOTE: If you are working with Microsoft Project, Microsoft Excel, or

Microsoft Office for Windows, the [BOOT] section must also include the line

   Drivers=MMSYSTEM.DLL

For additional information about this line, see the PJREADME.HLP file that

is installed with Microsoft Project.

Workaround 3

------------

You can also remark the following two lines from the SYSTEM.INI file by

typing a semicolon at the beginning of each line:

   system.drv=atm.sys

   atm.sys=system.drv

and adding the following line:

   system.drv=system.drv

KBCategory: kbprb

KBSubcategory: xlwin

Additional reference words: 5.00 5.00c err library vbapp


MXL5: Troubleshooting Microsoft Excel 5.0 for the Macintosh

Article ID: Q124635

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for the Macintosh, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

The following information describes how to troubleshoot problems that

you encounter while running Microsoft Excel 5.0 for Macintosh.

MICROSOFT EXCEL FOR THE POWER MACINTOSH

========================================

If you are having problems running Microsoft Excel 5.0 for the Power

Macintosh and you were able to run the Microsoft Excel Setup program

without error, use one of the following methods to correct the problems:

1. Turn on Virtual Memory.

   For additional information, please see the following article(s) in the

   Microsoft Knowledge Base:

      ARTICLE-ID: Q120506

      TITLE     : How Virtual Memory Works on a Power Macintosh

      ARTICLE-ID: Q120257

      TITLE     : Error Messages That Appear When Starting Excel on

                  PowerMac

   Note that you can also use Connectix RAM Doubler version 1.5 or later as

   a substitute for Virtual Memory. Make sure that your computer has at

   least 20 MB total memory if you are using Virtual Memory, or Connectix

   RAM Doubler; 17M WITHOUT Virtual Memory or Connectix RAM Doubler.

2. Move the PPC Registration Database, Registration Database and Embedding

   Preferences files from the Preferences folder in the System Folder to

   the desktop and Start Microsoft Excel again.

3. Restart your Macintosh while holding down the SHIFT key to disable

   extensions. Note that this also disables OLE 2 functionality (OLE1 still

   works) and any Microsoft Query drivers because they use the Shared

   Library Manager.

   NOTE: Restarting your computer while holding down the SHIFT key does not

   always disable every extensions. A new system folder will test for

   corrupted system files as well as no extensions.

4. Use the following steps to build a clean system on the hard drive. If

   you boot off of a disk tools disk, Microsoft Excel version 5.0 will not

   run.

   System Version 7.1.2

   --------------------

   Floppy Disks:

    - Insert the "Disk Tools" disk that came with your Power Macintosh.

   CD-ROM:

   a. If you have System CD version 1.0:

         Insert the CD at startup.

      If you have System CD version 2.0:

         With the CD inserted in the drive, start the machine while holding

         down the C key on the keyboard.

   b. Rename the old System Folder on the hard drive to another name such

      as "System Folder old" (without the quotation marks.)

   c. Move the Finder from the old System Folder to a different folder

      outside of the System Folder (to disable the system on the hard

      drive).

   d. Copy the System Folder from the Disk Tools disk to the hard drive (to

      the same level as the old System Folder).

   e. Check the PPC enabler in the new System Folder; if it is titled

      "Minimum PPC Enabler" or "Minimum PPC Upgrade Card Enabler", press

      and hold down the OPTION key, and drag (to copy) the "PPC Enabler" or

      "PPC Upgrade Card Enabler" from the old System Folder to the new

       System Folder. Delete the "Minimum PPC Enabler" or "Minimum PPC

      Upgrade Card Enabler" files in the new System Folder.

   f. Press and hold down the OPTION key, and drag the following files from

      the Extensions folder in the old System Folder, to the Extensions

      folder in the new System Folder:

         Microsoft Dialog Library

         Microsoft OLE Automation

         Microsoft OLE Library

         ObjectSupportLib

         Type Libraries (if you are testing module sheets or OLE1)

         Visual Basic for Applications

   g. Press and hold down the OPTION key, and drag the Memory control panel

     from the old System Folder to the new System Folder.

   h. Open the new System Folder and then close it again. A Macintosh icon

      should now appear on the new System Folder.

   i. Restart your Macintosh. If you receive an error message indicating

      that "this system should only be run from a floppy," then you didn't

      copy the full enabler (versus the minimal enabler) to the new System

      Folder.

   You should now be able to run Microsoft Excel version 5.0 for the Power

   Macintosh, as long as none of the files that you copied above are

   damaged.

For more information about booting your Macintosh from the system CD, see

the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q120099

   TITLE     : Booting a PowerMacintosh from the System CD

   System Version 7.5 (floppy disk or CD-ROM)

   ------------------------------------------

   For more information about performing these steps, see "Macintosh System

   7.5 Upgrade Guide," Appendix B "Performing a Clean Installation"

   a. Boot the Macintosh from the hard drive

   b. Launch the Installer program from Disk 1 of the System 7.5 floppy

      disks.

   c. Press the Continue button to bypass the Welcome to System 7.5 Screen

   d. In the Installer, press COMMAND+SHIFT+K, and choose "Install New

      System Folder" from the dialog box that appears.

   e. Click the Install button. The Installer will ask for about three of

      the seven disks, and will restart the computer when it is finished.

   f. After your computer restarts, press and hold the OPTION key, and drag

      the following files from the Extensions folder in the old System

      Folder to the Extensions folder in the new System Folder:

         Microsoft Dialog Library

         Microsoft OLE Automation

         Microsoft OLE Library

         ObjectSupportLib

         Type Libraries (if you are testing module sheets or OLE1)

         Visual Basic for Applications

   g. If you have 16 MB of RAM or less, do the following:

      (1) From the Apple menu, choose Control Panels, and then choose

          Memory.

      (2) Under Virtual Memory, select the On option. Enter 20 in the

          Virtual Memory box and close the Memory dialog box.

      (3) Restart your Macintosh.

   You should now be able to run Microsoft Excel for the Power Macintosh,

   as long as none of the files that you copied are damaged.

5. Restart your Macintosh while holding down COMMAND+OPTION until the

   Finder asks whether the Desktop should be rebuilt. Choose Yes to rebuild

   the Desktop file, and then release the COMMAND and OPTION keys.

MICROSOFT EXCEL FOR THE MACINTOSH

=================================

If you are having problems running Microsoft Excel 5.0 for the

Macintosh after you ran the Setup program with no problems, use one

of the following methods to correct the problem:

1. Restart your Macintosh while holding down the SHIFT key to disable

   extensions. Note that this also disables OLE 2 functionality (OLE1 still

   works) and any Microsoft Query drivers because they use the Shared

   Library Manager.

2. Move the Registration Database and Embedding Preferences files from the

   Preferences folder in the System Folder to the desktop.

3. Rebuild the Desktop file by restarting your computer while holding down

   COMMAND+OPTION until the Finder asks whether the Desktop should be

   rebuilt. Choose Yes, and then release the COMMAND and OPTION keys.

4. Clean boot by building a new System Folder on the hard drive. Note that

   you cannot run Microsoft Excel if you have booted off a disk tools disk

   because Setup copies many needed files to the Extensions folder in the

   System Folder. Do the following to clean boot:

   a. Insert the Disk Tools disk, and restart your computer.

   b. Open the System Folder on the hard drive, and drag the Finder file to

      a different folder outside of the System Folder.

   c. Rename the System Folder to another name, such as "System Folder old"

      (without the quotation marks.)

   d. Copy the System Folder from the Disk Tools disk to your hard drive.

   e. Copy the Type Libraries folder from the Extensions folder in the old

      System Folder to the Extensions folder in the new System Folder.

   f. Restart your Macintosh.

You should now be able to run Microsoft Excel for the Macintosh, as

long as none of the files that you copied to the floppy disk were

damaged.

CAN'T INSTALL MICROSOFT EXCEL (FOR THE MACINTOSH OR THE POWER MACINTOSH)

========================================================================

1. Restart your computer while holding down the SHIFT key.

2. If the Setup program is reporting a problem accessing a particular file,

   copy the cabinet file from the Setup disk to your hard drive to test if

   you can copy files from the disk. If this procedure fails, you may have

   a damaged disk, and need to order a new set of Microsoft Excel Setup

   disks.

3. If there is an existing Microsoft Excel Setup Data file, move the

   Registration Database file (located in the Preferences folder of the

   System Folder) to the desktop, and run Setup again to avoid running

   Setup in maintenance mode. If you have previously run Setup, the

   Registration Database file references the existing Microsoft Excel Setup

   Data file.

OTHER APPLICATIONS WON'T RUN AFTER INSTALLING

MICROSOFT EXCEL/OFFICE OR SYSTEM CRASHES WHEN STARTING COMPUTER

===============================================================

The following four extensions (along with other supporting files)

will affect other applications/extensions:

   Microsoft OLE Extension (from Microsoft)

   Microsoft Office Manager (Office Only - from Microsoft)

   Shared Library Manager (from Apple)

   Apple Event Manager (from Apple)

To troubleshoot booting issues after installing Microsoft Excel or

Microsoft Office, do the following:

1. Restart your Macintosh while holding down the SHIFT key to disable all

   extensions.

2. Remove one of the four files listed above (in the order shown above.)

3. Restart your Macintosh after removing each file to see if your Macintosh

   starts.

4. If your Macintosh starts after removing one of these files, either that

   extension is damaged (not likely right after running Setup) or another

   extension is conflicting with the one that you removed.

To troubleshoot another application that is not starting, or not performing

correctly after installing Microsoft Excel or Microsoft Office, follow

steps 2-4 above, starting the application in question until it works

properly.

If an application or extension begins working correctly AFTER removing

either the Apple Event Manager or the Shared Library Manager, but still has

problems AFTER removing the Microsoft OLE Extension and Microsoft Office

Manager, then the application is conflicting with an extension created by

Apple. You will need to get in touch with your application vendor to see if

there is an updated version of your application.

KBCategory: kbother kbtshoot

KBSubcategory: xlmac

Additional reference words: 5.00 tshoot


XL5: "File Not Found" Error Using References Dialog Box

Article ID: Q120404

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

--------------------------------------------------------------------

SYMPTOMS

========

When you run a workstation installation of Microsoft Excel, you may receive

the following error message when you choose References from the Tools menu

in a Visual Basic module:

   File Not Found

-or-

You may  also see the error

   Error 48: Error in loading DLL

when trying to open workbook with module sheet.

CAUSE

=====

This problem occurs because, when you run a workstation installation of

Microsoft Excel, most of the program files are run from the server,

including XLEN50.OLB and VBAEN.OLB, the Microsoft Excel and Visual Basic,

Applications Edition, object library files, respectively. These files are

normally listed in the References dialog box as available object libraries.

However, when you use the References dialog box in a Visual Basic module

under the above conditions, these files cannot be located if the server is

using the universal naming convention (UNC) path.

WORKAROUND

==========

To work around this problem, copy the XLEN50.OLB and VBAEN.OLB files to a

location on your local hard disk drive, and then do the following to edit

the REG.DAT file to point to their new locations:

1. Copy XLEN50.OLB to your local hard drive.

2. In Program Manager, choose Run from the File menu.

3. In the Command Line box, type "REGEDIT /V" (without the quotation

   marks).

4. From the Search menu, choose Find Key. In the Find What box, type

   "win16" (without the quotation marks), and choose Find Next.

5. From the Search menu, choose Find Next until you locate the following

   entry

      WIN16=\\EXCEL\XLEN50.OLB.

   where EXCEL is the network server directory from which you are

   running Microsoft Excel.

6. Select the entry, and edit the text in the Value box to reflect

   the new location of XLEN50.OLB, for example C:\FILES\XLEN50.OLB.

7. From the File menu, choose Exit. Choose "Yes" to save the changes.

8. Repeat steps 1-7 to move VBAEN.OLB and to modify the REG.DAT file to

   point to its new location.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. We are researching this problem

and will post new information here in the Microsoft Knowledge Base as it

becomes available.

MORE INFORMATION

================

In Microsoft Excel, you can use the References dialog box to create a link

to another project (such as a workbook that contains a Visual Basic module)

from the current project. When you reference another project, you can call

any Sub or Function procedure within that project without opening the

workbook or using the name of the module that contains the Sub or Function.

REFERENCES

==========

For more information about a Referenced Project <Definition>, choose the

Search button in the Visual Basic Reference and type:

   referenced project

KBCategory: kbprg kberrmsg

KBSubcategory:

Additional reference words: 5.00 5.00c network lanman novell


Error Messages That Appear When Starting Excel on PowerMac

Article ID: Q120257

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for the Power Macintosh, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

When you start Microsoft Excel version 5.0 on an Apple Power Macintosh, one

of the following occurs when there is not enough memory available:

 - You receive the following error message

      The application Microsoft Excel could not be opened because <library>

      could not be found.

   where <library> is one of the following files:

      Microsoft_OLE2

      MicrosoftOLE2AutomationLib

      MicrosoftVisualBasicAppsLib

      MicrosoftDialogLib

      ObjectSupportLib

   -or-

 - Microsoft Excel begins to start, the toolbars are displayed, and the

   following error message appears:

      One of your object libraries (Excel English Lexicon) is missing or

      damaged.

WORKAROUNDS

===========

To resolve these error messages, use any of the following methods:

Method 1: Turn virtual memory ON. Virtual memory works very differently on

          a Power Macintosh than on a 680x0 Macintosh. With virtual memory

          turned on, Microsoft Excel needs approximately 3 MB of memory to

          run. Without Virtual memory turned on, Microsoft Excel needs

          approximately 10 MB of memory to run.

Method 2: Increase the amount of memory available to Microsoft Excel by

          quitting other applications.

If none of the above methods resolve this problem, move the PPC

Registration Database, Registration Database and Embedding Preferences

files from the Preferences folder in the System Folder to the desktop and

Start Microsoft Excel again.

For additional information, please see the following article(s) in the

Microsoft Knowledge Base:

   ARTICLE-ID: Q124635

   TITLE     : MXL5: Troubleshooting Microsoft Excel 5.0 for the Macintosh

   ARTICLE-ID: Q120506

   TITLE     : "How Virtual Memory Works on a Power Macintosh"

REFERENCES

==========

"Additional Tips and Tricks for your Power Macintosh Computer," pages 1-3

"Macintosh Reference," pages 69, 70

KBCategory: kbenv

KBSubcategory: kberrmsg

Additional reference words: 5.00 low err msg Visual Basic Apps Lib


XL5: AppNote: Lotus 1-2-3 WK4 File Converter (WE1130)

Article ID: Q122583

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0a, 5.0c

--------------------------------------------------------------------

The "Lotus 1-2-3 WK4 File Converter" (WE1130) Application Note is now

available from Microsoft Product Support Services (PSS). The WE1130 disk

that accompanies this Application Note includes a converter that you can

use to open WK4 files in Microsoft Excel versions 5.0, 5.0a, and 5.0c.

You can obtain this Application Note from the following sources:

 - CompuServe, GEnie, and Microsoft OnLine

 - Microsoft Download Service (MSDL)

 - The Internet (Microsoft anonymous ftp server)

 - Microsoft FastTips Technical Library

 - Microsoft Product Support Services

For complete information, see the "To Obtain This Application Note"

section at the end of this article.

THE TEXT OF WE1130

==================

======================================================================

  Microsoft(R) Product Support Services Application Note (Text File)

             WE1130: LOTUS(R) 1-2-3(R) WK4 FILE CONVERTER

======================================================================

                                                  Revision Date: 12/94

                                                                1 Disk

The following information applies to Microsoft Excel for Windows(TM),

version 5.0, 5.0a, 5.0c.

 ---------------------------------------------------------------------

| INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY     |

| ACCOMPANY THIS DOCUMENT (collectively referred to as an Application |

| Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER      |

| EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED      |

| WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR       |

| PURPOSE. The user assumes the entire risk as to the accuracy and    |

| the use of this Application Note. This Application Note may be      |

| copied and distributed subject to the following conditions: 1) All  |

| text must be copied without modification and all pages must be      |

| included;  2) If software is included, all files on the disk(s)     |

| must be copied without modification (the MS-DOS(R)  utility         |

| diskcopy is appropriate for this purpose);  3) All components of    |

| this Application Note must be distributed together;  and  4) This   |

| Application Note may not be distributed for profit.                 |

|                                                                     |

| Copyright (C) 1994 Microsoft Corporation.  All Rights Reserved.     |

| Microsoft and MS-DOS are registered trademarks and Windows and      |

| Windows NT are trademarks of Microsoft Corporation.  Lotus and      |

| 1-2-3 are registered trademarks of Lotus Development Corporation.   |

 ----------------------------------------------------------------------

Introduction

------------

The WE1130 disk included with this Application Note contains a Lotus

1-2-3 WK4 file converter for use with Microsoft Excel versions 5.0,

5.0a, and 5.0c for Windows. This converter allows you to convert your

existing Lotus 1-2-3 Release 4 or 5 for Windows files to Microsoft

Excel 5.0 files.

Microsoft Excel 5.0 for Windows shipped without the ability to open or

save files in WK4 format. The file converter provided with this

Application Note allows you to use Microsoft Excel version 5.0, 5.0a,

or 5.0c to open WK4 files. This file converter does not provide the

functionality to save a file in Microsoft Excel to the WK4 file

format.

  NOTE: The Lotus 1-2-3 WK4 file converter does not work with

  Microsoft Excel for Windows NT(TM).

To install the Lotus 1-2-3 WK4 converter

----------------------------------------

  NOTE: If you are running Microsoft Excel from a protected network

  server drive or if you want to install the converter to a location

  other than the Microsoft Excel directory, see the "Alternative

  Installation Method" section of this Application Note.

1. Quit Microsoft Excel for Windows.

2. If you received this Application Note on a disk, insert the

   enclosed WE1130 disk in your floppy disk drive.

3. In Windows Program Manager, choose Run from the File menu.

4. In the Command Line box, type <location>:\setup.exe and press ENTER

   (where <location> is the floppy disk drive that contains the WE1130

   disk or, if you received this Application Note electronically, the

   disk or directory to which you downloaded the file). For example,

   if the disk is in drive A, type

      a:\setup.exe

   or, if the downloaded Application Note is in the directory

   C:\DNLOADS, type:

      c:\dnloads\setup.exe

When the Setup program is finished, a dialog box will appear,

confirming that the WK4 file converter has been installed.

  NOTE: For information about installing the Lotus 1-2-3 WK4 file

  converter from a directory on a network drive, and for more

  information about using the file converter, see the README.TXT file

  on the enclosed WE1130 disk or in the location to which you

  downloaded this Application Note.

When you run the Setup program, it copies the XLCONVW4.DLL file to

your Microsoft Excel directory. The rest of the files included on the

WE1130 disk are used to run the Setup program.

When you run the Setup program, if you receive an error message

stating that Setup tried to create an invalid path or that Setup

cannot find Microsoft Excel, use the method described in the

"Alternative Installation Method" section on page page 2 of this

Application Note to install the converter to a location other than the

Microsoft Excel directory.

To use the Lotus 1-2-3 WK4 file converter

-----------------------------------------

After you install this converter, do the following to open your

existing Lotus 1-2-3 Release 4 or 5 files in Microsoft Excel:

1. In Microsoft Excel, choose Open from the File menu.

2. From the List Files Of Type list, select

   Lotus 1-2-3 Release 4 or 5 (*.WK4).

3. From the File Name list, select the file that you want to open, and

   choose OK.

Alternative Installation Method

-------------------------------

Use this method if you are running Microsoft Excel from a protected

network server drive or if you want to install the converter to a

location other than the Microsoft Excel directory.

1. Quit Microsoft Excel for Windows.

2. If you received this Application Note on a disk, insert the

   enclosed WE1130 disk in the appropriate floppy disk drive.

3. In Windows Program Manager, choose Run from the File menu.

4. In the Command Line box, type <location>:\wk4iniup.exe and press

   ENTER (where <location> is the floppy disk drive that contains the

   WE1130 disk or, if you received this Application Note

   electronically, the disk or directory to which you downloaded the

   file). For example, if the disk is in drive A, type

      a:\wk4iniup.exe

   or, if the downloaded Application Note is in the directory

   C:\DNLOADS, type:

      c:\dnloads\wk4iniup.exe

   The WK4 Converter Excel5.INI Updater dialog box will appear.

5. In the Install DLL To box, enter the name of directory in which you

   want to install the converter, such as C:\WINDOWS\SYSTEM.

      Note that the location that you enter in the Install DLL To box

      must be an existing directory.

6. Choose the Install XLCONVW4.DLL button.

   If you have already installed the converter, a dialog box will

   appear telling you that the converter is already listed in your

   EXCEL5.INI file. This dialog box will display both the current path

   and the new path that you entered, and it will ask if you still

   want to update this information.

7. Choose Yes to install the converter to the new location.

   If you enter an incorrect path, or if there is not enough disk

   space on the drive, the following error message will appear:

      Can't Write File

      The file XLCONVW4.DLL could not be written because there is not

      enough space to write destination file, the destination path is

      not valid, or the destination is protected. Please verify

      destination path.

   To correct this problem, you must either free up some disk space on

   the drive to which you are installing the converter or enter

   another location for the converter.

When the Updater program is finished, a dialog box will appear,

confirming that your EXCEL5.INI file has been updated with the

converter information. This dialog box will also tell you the

converter number of the added Lotus 1-2-3 WK4 converter.

  NOTE: For information about installing the Lotus 1-2-3 WK4 file

  converter from a directory on a network drive, and for more

  information about using the file converter, see the README.TXT file

  on the enclosed WE1130 disk or in the location to which you

  downloaded this Application Note.

When you run the Updater program, it copies the XLCONVW4.DLL file to

the location that you entered in the Install DLL To box. The rest of

the files in the DISK1 directory are used to run the Setup program.

--------------------------------------------------------------------

TO OBTAIN THIS APPLICATION NOTE

===============================

 - On CompuServe, GEnie, and Microsoft OnLine, Application Notes

   are located in the Microsoft Software Library. You can find

   WE1130 in the Software Library by searching on the word WE1130,

   the Q number of this article, or S15001. WE1130 is a compressed,

   self-extracting file. After you download WE1130, run it to

   extract the file(s) it contains.

 - Application Notes are available by modem from the Microsoft

   Download Service (MSDL), which you can reach by calling (206)

   936-6735. This service is available 24 hours a day, 7 days a week.

   The highest download speed available is 14,400 bits per second (bps).

   For more information about using the MSDL, call (800) 936-4100 and

   follow the prompts. To obtain WE1130, download WE1130.EXE.

   WE1130.EXE is a compressed, self-extracting file. After you

   download WE1130, run it to extract the file(s) it contains.

 - On the Internet, Application Notes are located on the Microsoft

   anonymous ftp server, which you can reach by typing "ftp

   ftp.microsoft.com" (without the quotation marks) at the ">" command

   prompt. You can find WE1130.EXE in the SOFTLIB\MSLFILES directory.

 - You can have this Application Note mailed to you from the

   automated Microsoft FastTips Technical Library, which you can call 24

   hours a day, 7 days a week at (800) 936-4100. NOTE: The FastTips

   Technical Library is available only to customers within the U.S. and

   Canada.

 - If you are unable to access the source(s) listed above, you can

   have this Application Note mailed or faxed to you by calling

   Microsoft Product Support Services Monday through Friday, 6:00 A.M.

   to 6:00 P.M. Pacific time at (206) 635-7070. If you are outside the

   United States, contact the Microsoft subsidiary for your area. To

   locate your subsidiary, call Microsoft International Customer

   Service at (206) 936-8661.

KBCategory: kb3rdparty kbfile kbappnote

KBSubcategory:

Additional reference words: 5.00 5.00c


XL5: List of Help Topics in MAINXL.HLP File (Part 1 of 2)

Article ID: Q125230

----------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

----------------------------------------------------------------------

SUMMARY

=======

This article contains the topic numbers and descriptions for the Help

topics available in the MAINXL.HLP file. Topic IDs 1-437, listed in the

"More Information" section of this article, apply to Microsoft Excel

versions 5.0 and 5.0c. For information about topic IDs 438-585, please see

the following article(s) in the Microsoft Knowledge Base:

   ARTICLE-ID: Q125231

   TITLE     : "XL5: List of Help Topics in MAINXL.HLP File (Part 2 of 2)"

Using a Help Topic

------------------

You can use these topics in conjunction with dialog boxes that are equipped

with Help buttons; you can call them with the HELP() function in Microsoft

Excel 4.0; and, you can call them with the Application.Help line in a

Visual Basic, Applications Edition, macro. The following are examples of

both types of macros.

   Visual Basic code:

      Application.help "MAINXL.HLP", 3

   Microsoft Excel 4.0 macro:

      =HELP("MAINXL.HLP!3")

Finding a Help Topic ID

-----------------------

To find the help topic ID numbers for a help topic in Microsoft Excel, use

the following macro:

HELP_TOPICS

=FOR("Message",1,395)

=HELP("Mainxl.hlp!"&Message)

=SEND.KEYS("%EC+{END}+{DOWN}%C")

=FORMULA(Message,OFFSET(!A1,Message,0))

=PASTE(OFFSET(B1,Message,0))

=NEXT()

=RETURN()

MORE INFORMATION

================

Topic      Description

---------------------------------------------------------------------------

1          No Help for this Context ID.

2          Locked cells cannot be changed.

3          Microsoft Excel 5.0 menus are required when using Help for Lotus

           1-2-3 Users.

4          Not enough memory to display completely.

5          Database range is not defined.

6          Criteria range is not defined.

7          Extract range is not defined.

8          Database or list range is not valid.

9          Criteria range is not valid.

10         Extract range is not valid.

11         '[Entry]' is not valid.

12         Selection is not valid.

13         Recorder range is not valid.

14         '[Formula or text]' is too long.

15         Formula is too long.

16         Text is too long.

17         Number format is too long.

18         Formula is not valid.

19         Name in formula is unclear.

20         Error in formula.

21         Function is not valid.

22         Parentheses do not match.

23         '[Incorrect number of]' arguments.

24         Error in formula: missing operand.

25         That name is not valid.

26         Cannot enter an external reference to a chart.

27         Cannot enter an external reference to a workbook.

28         Name is not defined.

29         Number format is not valid.

30         Selection is too large.

31         Cannot paste that macro formula onto a worksheet.

32         Cannot resolve circular references.

33         Cannot use workbook reference here.

34         Series order must be an integer between 0 and 255.

35         Series must contain at least one value.

36         Formula must refer to a single cell or result in a text string.

37         External reference is not valid.

38         Reference is not valid. Reference must be to a single cell.

39         Reference is not valid. Reference for categories or values must

           be a single row or column.

40         Reference is not valid.  Reference for error bars must be a row

           or column.

41         Reference is not valid.  Reference must be a simple external

           reference to a worksheet.

42         Reference is not valid.  Reference must be to an open worksheet.

43         Cannot do that command on nonadjacent selections.

44         Cannot use that command on multiple selections.

45         Cannot use a name that refers to nonadjacent cells.

46         Cannot access file '[filename]'.

47         Cannot access directory '[directory name]'.

48         Cannot access '[filename]'.

49         Cannot open or save any more documents.

50         Cannot open files from later versions of Microsoft Excel.

51         Disk is full.

52         Unable to read file.

53         Filename is not valid.

54         Cannot access read-only document '[filename]'.

55         '[External Copy or SYLK]' file format is not valid.

56         Replace existing '[filename]'?

57         Replace existing user-defined format?

58         Cannot save this file with the same name as an open document.

59         '[Filename]' is already open.  Reopening will cause your changes

           to be discarded.  Do you want to reopen?

60         Document is not completely saved.

61         Delete file '[filename]'?

62         Delete this user-defined format?

63         Maximum number of data series per chart is 255.

64         Maximum number of data points in a data series is 4000.

65         Negative or zero values cannot be plotted correctly on log

           charts.

66         No RETURN() or HALT() function found on macro sheet.

67         Reference must be to a macro sheet.

68         Invalid register id, or function not registered yet.

69         Error printing on '[printer]'.

70         No point number is specified.

71         No series number is specified.

72         Tick mark intervals must be greater than 0.

73         That user-defined autoformat option does not exist.

74         No format name specified.

75         Format name must not exceed 31 characters.

76         Format description must not exceed 32 characters.

77         Format name is not valid.

78         Error in deleting format.

79         Error in adding template

80         Error accessing User-defined AutoFormat file

81         Cannot use the autotemplate CHART.XLT. Use the AutoFormat

           Command on the Format menu to create a new custom chart

           autoformat.

82         Format does not exist.

83         You can add the chart template as a user-defined autoformat and

           use it later by choosing AutoFormat from the Format menu. Choose

           Yes to add this template as an autoformat.

84         Cannot print chart in draft quality.

85         Cannot add any more custom formats.

86         '[Filename]' is read-only.

87         '[Filename]' is currently in use. Open as read-only?

88         Sort reference is not valid.

89         This list is outlined. Only the summary data will be sorted.

90         Cannot change part of an array.

91         Cannot change part of a table.

92         Cannot change part of a subscriber.

93         Cannot move or modify part of a pivot table.

94         Pivot table cannot overlap another pivot table.

95         Cannot move part of the filter drop-down row.

96         Cannot delete built-in format.

97         Cannot save to that name.  Another document is linked to a

           document with that name.

98         Value must be a number.

99         Minor unit must be less than major unit.

100        Maximum axis value must be greater than minimum axis value.

101        Unit of log scale must be at least 10.

102       '[Name]' is not a valid name.

103        Replace existing definition of '[name]'?

104        Number is not valid.

105        Integer is not valid.

106        Scroll value must be between 0 and 30000.

107        The scroll value maximum cannot be less than the scroll value

           minimum.

108        That name already exists.

109        No match.

110        No references found.

111        Cannot find matching data.

112        Cannot find matching data to delete.

113        Cannot find matching data to replace.

114        Search string must be specified.

115        Shortcut key must be a letter.

116        Column width must be between 0 and 255 characters.

117        Row height must be between 0 and 409.

118        Recording failed.

119        Recorder range is full.

120        Cannot open the Clipboard.

121        Cannot empty the Clipboard.

122        Too complex to record.

123        Cannot shift nonblank cells off sheet.

124        Cannot shift objects off sheet.

125        Fixed objects will move.

126        Cannot link to a chart.

127        The change to the DDE or OLE link has failed.

128        Number must be greater than or equal to zero.

129        Cannot paste data.

130        Cannot insert object.

131        Cannot open printer driver.

132        File error: data may have been lost.

133        File error. Some number formats may have been lost.

134        File may contain nondisplayable text and formats from the Far

           East.

135        A document with the name '[filename]' is already open.

136        This document contains links. Re-establish links?

137        '[Copy or cut]' and paste areas are different shapes.

138        Cannot paste a table onto a macro sheet.

139        Some custom formats will not fit on the destination sheet.

140        Cannot find '[filename]'.

141        Cannot access '[filename]'.

142        Cannot save '[filename]' because the volume is locked.

143        Matching records will be permanently deleted.

144        Incorrect password.

145        Cannot open a dependent document that contains references to

           different sheets with the same name.

146        Use existing definition of '[name]'?

147        Name cannot resemble a reference.

148        Name cannot be the same as a built-in name.

149        Name already exists on destination sheet.

150        Data on the Clipboard is not the same size and shape as the

           selected area.  Paste anyway?

151        No link to paste.

152        Unable to paste link.

153        No match in active cell.

154        Cell with looping function should not contain anything else.

155        Save changes in '[filename]'?

156        Save changes in '|'? Note: Though you already saved this

           workbook as an Add-In, Add-Ins cannot be viewed or edited.  This

           workbook is the editable version of the Add-In.

157        Save changes in '[filename]'? Note: The current file format is

           not Microsoft Excel Workbook.

158        Reference must be to a single cell.

159        Only macro names are valid.

160        Select cells in one column only.

161        Error in parse line.

162        Cannot find data source.

163        Reference is not valid.

164        Input cell reference is not valid.

165        Destination reference is not valid.

166        Consolidation reference is not valid.

167        Invalid sheet for consolidation.

168        Data will permanently lose accuracy.

169        Sheet is already protected.

170        Custom data_form is not properly defined.

171        Cannot justify cells containing numbers or formulas.

172        Text will extend below selected range.

173        Error in dialog box at '[cell]'.

174        Existing categories will be permanently deleted.

175        There are more new points than series in the chart. Add new

           points to only the existing series?

176        Displayed record will be permanently deleted.

177        Cannot extend list or database.

178        No cells found.

179        Cannot open normal Multiplan document.

180        You must enter a valid reference you want to go to, or type a

           valid name for the selection.

181        Total number of file errors: '[number]'.

182        Cannot read record '[cell or name]'.

183        Cannot write record '[cell or name]'.

184        Cannot convert 3-D reference: '[reference]'.

185        A high-low-close stock chart must contain three series.

186        A volume-high-low-close stock chart must contain four series.

187        An open-high-low-close stock chart must contain four series.

188        A volume-open-high-low-close stock chart must contain five

           series.

189        To use multiple chart types, choose the Chart Type command or

           the chart type group command (for example, Line Group) from the

           Microsoft Excel 5.0 Format menu.

190        Cannot combine 2-D and 3-D types.  Change all series in chart to

           2-D?

191        Cannot combine 2-D and 3-D types.  Change all series in chart to

           3-D?

192        References in series formulas must be external references to

           worksheets.

193        Cannot delete last entry in legend.

194        Redefine '[style]' based on selection?

195        Redefine '[scenario name]' scenario based on current cell

           values?

196        Macro with name '[name]' already exists. Replace existing macro?

197        Cannot create Personal Macro Workbook.

198        Save changes to Personal Macro Workbook?

199        Personal Macro Workbook in the startup directory must stay open

           for recording.

200        You cannot save the Personal Macro Workbook in the startup

           directory. Save it elsewhere now and move it to the startup

           directory later.

201        You cannot save the User-defined AutoFormats Workbook in the

           startup directory. Save it elsewhere now and move it to the

           startup directory later.

202        Cannot save User-defined AutoFormats Workbook.

203        Cannot change this cell while a macro is paused.

204        Too many fields in the data form.

205        Cannot create data form for a database in which all columns are

           hidden.

206        The destination range is not large enough to accommodate all

           copied rows. Data below the destination range will be lost.

           Continue copying anyway?

207        You can only copy filtered data to the active sheet.

208        Microsoft Excel found headers above your list or database.

           Expand selection to include them?

209        This removes the subtotals and sorts again. If you want to sort

           the subtotaled groups, choose the Cancel button; then collapse

           the outline and try again.

210        This subtotals lists in place. To display and remove subtotals

           in a pivot table, use the PivotTable Field command.

211        Too many different cell formats.

212        Note will be permanently deleted.

213        Selected sheets will be permanently deleted. Continue?

214        Sheet name is too long.

215        Only worksheets and charts will be saved.

216        Cannot save as a WK3 file if there are no worksheets in the

           workbook.

217        Save large Clipboard from '[filename]'?

218        Cannot quit Microsoft Excel.

219        Save '[filename]' with references to unsaved documents?

220        Help reference is not valid.

221        Cannot delete '[filename]'.

222        Margins do not fit page size.

223        Number must be between '[number]' and '[number]'.

224        '[Name]' on '[filename]' is not defined or is too complex.

225        Merge styles that have the same names?

226        Database is hidden.

227        Cannot enter a formula in a data form.

228        Cannot save as that name. Document was opened as read-only.

229        Save changes to selected series?

230        Name conflict.  Rename the document you want to open.

231        Dialog box contains too many items.

232        Cannot open protected file.

233        Font name is too long.

234        Text extends beyond worksheet.  Some text will be lost.

235        Command not available at cell:

236        There is nothing to print in the specified pages.

237        Cannot create backup file.  Save '[filename]' without backup?

238        File format is not valid.

239        Cell must contain a value.

240        Reference must be on the active sheet.

241        Cell must contain a formula.

242        Formula in cell must result in a number.

243        Calculation is incomplete. Recalculate before saving?

244        '[Filename or formula]' contains incomplete calculation.

245        '[Filename]' contains incomplete calculation.  Continue

           reporting each error?

246        Operation failed. '[Filename]' is reserved by '[user]'.

247        Operation failed. '[Filename]' is write reserved.

248        Confirmation password is not identical.

249        Password contains accented characters or certain punctuation

           marks which will not transfer correctly to Microsoft Excel for

           Windows or OS/2.

250        Cannot link to Microsoft Excel 1.5 file.

251        '[Document]' is being modified by '[user]'. Open as read-only?

252        '[Document]' should be opened as read-only unless you need to

           save changes to it. Open as read-only?

253        Cell with block IF function should not contain anything else.

254        Reference is too complex.

255        Cannot use that command on a protected sheet.

256        Reference must be to a single cell on the active sheet.

257        Cannot find macro '[name]'.

258        Series definition must include a '[Y or Z]' reference.

259        Saving to an old file format; data may be lost.

260        Cannot find '[macro]', which has been assigned to run each time

           '[document]' is opened. Continuing could cause errors. Cancel

           opening '[document]'?

261        Cannot find '[macro]', which has been assigned to run each time

           '[document]' is closed. Continuing could cause errors. Cancel

           closing '[document]'?

262        Cannot find '[name]'.

263        Cannot start the source application for this object.

264        Cannot find the source application for this embedded object.

265        Sheet is protected with password.  File format cannot be used.

266        Sheet is protected with password and formulas are displayed.

           File format cannot be used.

267        Value is too large.

268        Value is too small.

269        Unable to import file.

270        Unable to combine file.

271        Unable to extract file.

272        Cannot import from an open file.

273        Cannot extract to an open file.

274        Directory does not exist.

275        Matrix must be square.

276        Matrices are incompatible for multiplication.

277        Output range extends beyond edge of worksheet.

278        Cannot split when windows are locked.

279        Reference cannot be to a closed sheet.

280        Lotus 1-2-3 Help demonstrations cannot be recorded.  Stop

           recording and continue?

281        Cannot post instructions because a worksheet is not active.

282        Cannot post instructions because worksheet objects are currently

           hidden or protected.

283        Cannot post instructions because worksheet is protected.

284        Not enough data for Graph demonstration.

285        Cannot demo with custom menus.

286        You cannot use Help for Lotus 1-2-3 Users while in group edit

           mode.

287        Can only paste a subscriber onto a worksheet or macro sheet.

288        Missing NEXT function for loop.

289        Missing loop.

290        Missing IF.

291        Missing an END.IF function.

292        Cannot add another menu bar.

293        Duplicate menu bar name.

294        Command or menu does not exist.

295        Cannot delete built-in or active menu bars.

296        Cannot enable built-in commands.

297        Names cannot look like references.

298        References in object formulas must be external references to

           worksheets.

299        Cannot use name that is a noncontiguous reference.

300        Multiple selection usage is not valid.

301        Cannot change linked data: '[message]'.

302        Source worksheet is closed

303        Data point corresponds to a formula on a macro sheet

304        Cell in source worksheet is locked

305        Cell in source worksheet contains nonnumeric data

306        Category range contains nonnumeric data

307        Stationery document is not saved in Normal format. Opening as a

           nonstationery file.

308        Names are not valid in complex references.

309        Series formula is too long.

310        The list and decimal separators specified by the system are

           identical.  Substituting '[punctuation mark]' for the list

           separator.

311        The date and time separators specified by the system are

           identical.  Substituting ':' for the time separator.

312        Text in your macro may need to be translated manually.

313        Cannot cut part of a publisher.

314        No objects found.

315        Unable to save external link values.

316        Cannot print chart with the current scale and paper size. Select

           a larger scale percentage or a smaller paper size.

317        Update embedded objects?

318        Workbook is protected and cannot be changed.

319        This chart plots data from more than one worksheet.  Double-

           click the series you want to change, and then select the Name

           and Values tab to change the series' plot data.

320        This chart plots constant data.  Double-click the series you

           want to change, and then select the Name And Values tab to

           change the series' plot data.

321        This chart plots data from a closed worksheet. Use the Links

           command on the Edit menu to open the source workbook.

322        Update '[filename]'?

323        Cannot run '[program]'. The program or one of its components is

           damaged or missing.

324        A surface chart must contain at least two series.

325        This button can be used only with Microsoft Windows for Pen

           Computing.

326        Cannot read this binary file. If the file was created in a

           version of Microsoft Excel later than 5.0, use that version to

           save it as a Microsoft Excel 5.0 file. Open file as text?

327        Cannot rename a sheet with the same name as another sheet.

328        Cannot rename a sheet to the same name as another sheet, a

           referenced object library or a workbook referenced by Visual

           Basic.

329        '[Filename]' was created in a previous version of Microsoft

           Excel. Do you want to update it to Microsoft Excel 5.0 format?

330        Sheet name is not valid.

331        Cannot enter an array formula into a range of cells which are

           not all locked or all unlocked.

332        Print titles must be contiguous and complete rows or columns.

333        Macro error at cell: '[reference]'.

334        Macro interrupted at cell: '[reference]'.

335        Illegal reference argument at: '[reference]'

336        Formula is too complex to be assigned to object.

337        Delete the '[name]' toolbar?

338        Cannot revert a file that is currently running a macro.

339        Cannot open a copy while the template '[template]' is open.

340        File not loaded completely.

341        The version of XLINTL.DLL is incorrect. Continuing can cause

           severe errors. Quit Microsoft Excel?

342        Macro name is not valid.

343        This font style name does not exist.

344        Select a font name.

345        No headers detected. Assume top row of selection is header row?

346        Delete entire row?

347        Entire subtotal row will be deleted.

348        Microsoft Excel has detected subtotals in your list.  Aborting

           Pivot....

349        You must quit and then restart Microsoft Excel before your

           changes to the standard font will take effect.

350        This command or function is not available when multiple

           workbooks are selected.

351        Embedded object data will be lost. Continue?

352        Cannot use object linking and embedding.

353        Microsoft Excel is waiting for another application to complete

           an OLE action.

354        The object is not responding.  Continue waiting?

355        Not enough stack space to run macro.

356        Your changes will be lost if you update without saving. Continue

           to update?

357        Workbook must contain at least one visible sheet.

358        Selected file type will save only the active sheet.

359        Do you want to save changes before switching file status?

360        Cannot open Microsoft Excel 5.0 Add-In for editing.  Please edit

           the source document instead.

361        There is already a macro assigned to that key. You can use a

           different keyboard shortcut. Assign to that keyboard shortcut

           anyway?

362        Cannot load an empty Microsoft Excel 4.0 workbook.

363        Microsoft Excel 5.0 workspaces cannot contain Microsoft Excel

Article truncated.


XL5 Err Msg: "Not Enough Stack Space to Run Macro"

Article ID: Q111867

----------------------------------------------------------------------

The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

----------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you choose a control in a dialog box that is

assigned to an event macro when there are a total of three dialog

boxes on the screen that have not been dismissed, you may receive the

following error message(s):

   Not Enough Stack Space to Run Macro

   -or-

   Error 28: Out of Stack Space

WORKAROUND

==========

To avoid receiving either of these error messages when you call nested

dialog boxes, do not assign a dialog control (such as a button or a check

box) to a macro event that calls another dialog box. Instead, assign the

control to first dismiss the active dialog box, then call the desired

dialog box from the same the macro that called the first dialog box. To

dismiss the active dialog box, do any of the following:

 - Format the control with the Dismiss property:

   1. Select the control and choose Object from Format menu.

   2. In the Format Object dialog box, select the Dismiss check box on the

      Control tab .

   -or-

 - Assign the control to a macro that contains the following command:

      ActiveDialog.Hide

   -or-

 - Format the control with the Cancel property:

   1. Select the control and choose Object from Format menu.

   2. In the Format Object dialog box, Select the Cancel check box on the

      Control tab.

 - For an additional workaround, please see the following article(s) in the

   Microsoft Knowledge Base:

      ARTICLE-ID: Q125805

      TITLE     : XL5: Displaying Several Dialog Boxes Without Looping

MORE INFORMATION

================

A dialog box is not updated until after the event macro has finished. The

event macro is the code that is run when an action, such as choosing a

button, is taken in the dialog box. Because the dialog box is not updated,

if you call a dialog from another dialog, the first dialog is still loaded

(stacked) and is not released until the code that it ran (calling the

second dialog) has completed. This condition exists even if the property of

the button that called the second dialog is set to dismiss.

In Microsoft Excel 5.0, you can stack dialog boxes (that is, display more

than one dialog box on the screen at one time) with the top dialog

box active. You can stack two dialog boxes, and still run code

assigned to controls on the second dialog box. For example, you can

call Dialog Two from Dialog One, and then run a macro assigned to a

control on Dialog Two by choosing the control. In addition, you can

call Dialog Three from Dialog Two, but you cannot run any event

macros from this top level (Dialog Three) dialog box.

Note that you cannot hide a dialog box until the macro that hides the

dialog box ends.

Visual Basic Example

--------------------

In the following example, there are three dialog boxes. Each dialog

box can call either of the other two dialog boxes. Each button is

assigned to a macro that sets the value of a variable. The value of

the variable determines which dialog box to display next.

1. Create three dialog sheets. Modify each dialog sheet to contain the

   following:

      Dialog Sheet

      Buttons        Dialog1  Dialog2  Dialog3

      ----------------------------------------

      OK               yes      yes      yes

      Cancel           yes      yes      yes

      Go_To_Dialog1    no       yes      yes

      Go_To_Dialog2    yes      no       yes

      Go_To_Dialog3    yes      yes      no

2. Set the dismiss property for each button by doing the following:

   a. Select the button on the dialog sheet.

   b. From the Format menu, choose Object. Select the Control tab, and

      select the Dismiss check box. Choose OK.

3. In a new module in the same workbook, type the following:

   ' Define the variable as Integer type

   Dim dialog_number As Integer

   Sub Main()

      dialog_number = 1                  'initialize the variable

      DialogSheets("Dialog1").Show       'display the first dialog sheet

      While dialog_number > 0            'while variable is greater than 0

         Select Case dialog_number       'display a dialog based on the

                                         'value of dialog_number

            Case 1

                                              'dialog_number is 1

               DialogSheets("Dialog1").Show   'display dialog1

            Case 2

                                              'dialog_number is 2

               DialogSheets("Dialog2").Show   'display dialog2

            Case 3

                                              'dialog_number is 3

               DialogSheets("Dialog3").Show   'display dialog3

         End Select

      Wend

   End Sub

'The following code sets the value of the dialog_number variable

Sub Go_To_Dialog1()

    dialog_number = 1

End Sub

Sub Go_To_Dialog2()

    dialog_number = 2

End Sub

Sub Go_To_Dialog3()

    dialog_number = 3

End Sub

Sub OK_Or_Cancel()

    dialog_number = 0

End Sub

4. Select the Dialog1 sheet tab. Select the Go_To_Dialog2 button, and

   choose Assign Macro from the Tools menu. From the Macro Name/Reference

   list, select Go_To_Dialog2() and choose OK.

5. Repeat step 4 for each button, assigning the corresponding macro to each

   button on each dialog sheet. Assign the OK_Or_Cancel macro to each OK

   and Cancel button.

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of

merchantability and/or fitness for a particular purpose. This Visual

Basic procedure is provided 'as is' and Microsoft does not guarantee

that it can be used in all situations. Microsoft does not support

modifications of this procedure to suit customer requirements for a

particular purpose. Note that a line that is preceded by an

apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the

procedure. Note also that an underscore character (_) indicates that

code continues from one line to the next. You can type lines that

contain this character as one logical line or you can divide the

lines of code and include the line continuation character. For more

information about Visual Basic for Applications programming style,

see the "Programming Style in This Manual" section in the "Document

Conventions" section of the "Visual Basic User's Guide."

REFERENCES

==========

"Visual Basic Users Guide," version 5.0, page 219-239

KBCategory: kbcode kbmacro

KBSubcategory:

Additional reference words: 5.00 5.0 overflow


XL5: List of the Files You Need to Run Microsoft Excel

Article ID: Q110594

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

The following tables contain the filenames and descriptions of the files

that you need to be able to run the various components of Microsoft Excel

version 5.0.

Files needed to run Microsoft Excel:

Filename         Description

-----------------------------------------------

COMMTB.DLL      Microsoft Button Editor DLL

COMPOBJ.DLL     OLE 2.0 Library

EXCEL.EXE       Microsoft Excel Executable

MSFFILE.DLL     Microsoft Find File Library

OLE2.DLL        OLE 2.0 Library

OLE2DISP.DLL    OLE Automation Library

OLE2NLS.DLL     OLE NLS Library

               (Intl character set translation searching and sorting)

OLE2PROX.DLL    OLE2PROXY 2.0 Library

SCP.DLL         Code Page Translation Library

SDM.DLL         Standard Dialog Manager

STDOLE.TLB      OLE Type Library

STORAGE.DLL     OLE 2.0 Library

                (docfile DLL)

TYPELIB.DLL     OLE Automation Type Information Interfaces

XLINTL.DLL      Microsoft Excel Localized Resources

XLEN50.OLB      Microsoft Excel Object Library

VBAEN.DLL       Visual Basic for Applications International Resources

VBAEN.OLB       Visual Basic for Applications Object Library

VBA.DLL         Visual Basic for Applications Development Environment

Files needed to run Help:

Filename         Description

--------------------------------------------------

MAINXL.HLP    - Microsoft Excel Main Help

SHARERES.DLL  - Shared Resources

XLHELP.DLL    - Microsoft Excel Help Extended Macros

Files needed to run Microsoft Query

Filename         Description

--------------------------------------------------

COMMDLG.DLL   - Common Dialogs Libraries

MSQUERY.EXE   - Microsoft Query Executable

QRYINTL.DLL   - Microsoft Query International DLL

For a list of all the files installed with Microsoft Excel 5.0,

including file size and location on the hard drive, open FILELIST.TXT

located in the Microsoft Excel directory.

MORE INFORMATION

================

Microsoft Excel requires that you have the Share program loaded on

your computer before you run Microsoft Excel. For more information

about the Share program, query on the following in the Microsoft

Knowledge Base:

   share.exe and load and must

KBCategory: kbref

KBSubcategory: xlquery

Additional reference words: 5.00 required setup


XL5 AppNote: Upgrade and Setup Questions and Answers (WE0922)

Article ID: Q109190

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

Following is the complete text for the FastTip for Microsoft Excel

version 5.0 for Windows. It contains the commonly asked questions and

answers about upgrade and setup.

======================================================================

  Microsoft(R) Product Support Services Application Note (Text File)

            WE0922: UPGRADE AND SETUP QUESTIONS AND ANSWERS

======================================================================

                                                  Revision Date: 12/93

                                                      No Disk Included

The following information applies to Microsoft Excel, version 5.0.

----------------------------------------------------------------------

| INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY    |

| ACCOMPANY THIS DOCUMENT (collectively referred to as an Application|

| Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER     |

| EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED     |

| WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR      |

| PURPOSE. The user assumes the entire risk as to the accuracy and   |

| the use of this Application Note. This Application Note may be     |

| copied and distributed subject to the following conditions:  1) All|

| text must be copied without modification and all pages must be     |

| included;  2) If software is included, all files on the disk(s)    |

| must be copied without modification (the MS-DOS(R)  utility        |

| diskcopy is appropriate for this purpose);  3) All components of   |

| this Application Note must be distributed together;  and  4) This  |

| Application Note may not be distributed for profit.                |

|                                                                    |

| Copyright (C) 1993 Microsoft Corporation.  All Rights Reserved.    |

| Microsoft, Microsoft Access, MS-DOS, Multiplan, PowerPoint, and    |

| Visual Basic are registered trademarks and                         |

| AutoSum, IntelliSense, PivotTable, TipWizard, Windows, and Windows |

| NT are trademarks of Microsoft Corporation.                        |

| Quattro is a registered trademark of Borland International, Inc.   |

| 1-2-3 and Lotus are registered trademarks and Allways is a         |

| trademark of Lotus Development Corporation.                        |

----------------------------------------------------------------------

1.  Q. What are the new features in Microsoft Excel version 5.0

       for Windows?

    A. Microsoft Excel version 5.0 sets a new standard for

       spreadsheets. Built-in intelligence and innovative features let

       you focus on your analysis, not your data. And rich, custom-

       development tools help you build the solutions you want. It all

       adds up to an intelligent spreadsheet that works the way it

       should--the way you want.

       Microsoft Excel is the spreadsheet that works the way you want

       to, so your work is easier. That's because as a member of the

       Microsoft Office family of programs, Microsoft Excel features

       IntelliSense(TM) technology: built-in intelligence that senses

       what you want to do and helps you do it--so routine tasks are

       automatic and complex jobs are easier. IntelliSense redefines

       ease of use with automatic features and wizards that step you

       through tasks. And if there's a more effective way of working,

       Microsoft Excel even suggests tips through the revolutionary

       new TipWizard(TM)  assistant to save you time and expand your

       knowledge of Microsoft Excel.

       You'll also find that you'll have complete control over

       everything in your spreadsheet. Now you can directly enter and

       edit information in cells and manipulate data and charts,

       giving you a faster and easier way to do your work. Microsoft

       Excel introduces a new way to work with data that lets you

       instantly create dynamic views and reports of your data, so you

       can spend time analyzing, rather than accessing and setting up

       information. And you can develop your own solutions with easy-

       to-use tools to customize your spreadsheet and rich development

       tools to build powerful enterprise solutions.

       Microsoft Excel also features OfficeLinks, which let you work

       with other programs, as well as with others in your workgroup,

       so you can include the most recent information in your

       analysis. And best of all, Microsoft Excel is part of the

       family of Microsoft Office programs that work alike and work

       together, so when you learn one, you're on your way to learning

       them all. With Microsoft Excel, you can focus on your work,

       rather than your computer. Maybe that's why it's the most

       popular spreadsheet for Windows.

       Gain Visual and Direct Control

       ------------------------------

        - Enter and edit information by typing it directly into cells.

          Click a cell to change the font size, the character

          formatting, the color, size, or orientation, of any part of

          the entry.

        - Select and build formulas with the Function Wizard--it helps

          you build formulas, assists you with arguments, and lists

          your most recently used functions.

        - Click the right mouse button to see context-sensitive

          shortcut menus.

        - Manipulate individual or groups of cells more easily by

          clicking the right mouse button or by dragging data. It's a

          fast way to cut, copy, and paste data.

        - Tab dialog boxes combine your options into one intuitive box,

          so you don't have to go searching through different menus.

        - Every file is a workbook that contains as many related sheets

          as you like. Workbook tabs make it easier to navigate through

          and select these sheets.

        - Workbooks let you simultaneously edit or format multiple sheets.

        - Quickly understand linked worksheets and errors with the new

          auditing tools. With one click, Microsoft Excel traces formulas

          to give you a visual representation of the formulas in a

          worksheet, and traces formula errors to their origin.

        - Identify buttons and toolbars quickly with ToolTips. Modify

          button images right in Microsoft Excel with the new Button

          Editor. If you're using a high-resolution graphics adapter, you

          can switch to the new Large Buttons option.

       IntelliSense Technology Lets You Do More with Less Effort

       ---------------------------------------------------------

        - Take advantage of a built-in, personal coach. TipWizard watches

          you as you work and gives you tips on how to work faster and

          smarter.

        - Leave the adding to Microsoft Excel. The AutoSum(TM) feature

          intelligently sums ranges and can sum rows and columns

          simultaneously.

        - Save time and effort typing in commonly entered data. The

          AutoFill feature recognizes trends in numbers and dates, and

          intelligently extends the selected series. Use the custom

          AutoFill feature to add your own series.

        - Make every worksheet look professional instantly with the

          AutoFormat feature. Take advantage of a number of existing

          formats, such as the accounting autoformats.

        - View a subset of your information with the AutoFilter command.

          Microsoft Excel provides you with a list of choices so that you

          can select the type of data you want to see.

        - Sort data easily and flexibly with the Sort buttons or define

          custom sort orders.

        - Choose the Subtotals command to automatically generate subtotals

          for your data.

        - Use the Auto Outline command to create reports at any level of

          detail with a few mouse clicks.

       Plot Your Data So That It Appears the Way You Want It to Appear

       ---------------------------------------------------------------

        - Create meaningful charts from your data with the ChartWizard

          (which walks you through the chart-creation process and

          makes it easy for you to choose your own options).

        - Manipulate chart formats to get the exact chart layout you

          want: you can directly select, resize, and format parts of

          your chart, such as the legend, title, and plot area.

        - Update your chart instantly by dragging new data to the

          chart. The new information is automatically plotted for you.

        - Save preferred chart formats with a custom autoformat. Then

          reapply the entire format with a mouse click.

        - Mix chart types into one chart with combination charts. You

          can apply a different chart type for each series. For

          example, you can plot the values for "Revenue" on a line and

          values for "Expenses" in a column on the same chart.

        - Use the Trendline command to create a best-fit line and

          perform automatic forecasting.

       Discover a New Way to Analyze Data

       ----------------------------------

       The PivotTable(TM) Wizard steps you through building a summary

       table of your data that you can use to:

        - View and analyze data.

        - Build different reports and views by dragging and dropping

          headings any way you like.

        - Take the monotony out of your analysis with automatic

          calculations such as comparisons, averages, and percentages

          of totals.

        - Use the Grouping features to combine data.

       Easily Share Files and Work with Others

       ---------------------------------------

       Effectively work with others with the Workgroup toolbar:

        - The Find File button makes it easy to search for files by

          name, author, or date.

        - Interactive file sharing lets you share files, notifies you

          when files are available, and updates read-only files with

          the most recent changes.

        - The Send Mail button allows you to send mail right from

          Microsoft Excel and include files as attachments.

        - Use the Routing Slip button to send documents individually

          or to an entire team.

        - You can route documents individually in the order you

          specify, or all at once. You are notified as revisions are

          completed and are updated about a document's routing

          progress.

        - Take advantage of an improved Scenario Manager. Now you can

          create what-if scenarios on multiple ranges of cells and

          view and access those scenarios from a list on the Workgroup

          toolbar. You can even merge scenarios from others in your

          workgroup.

        - Make a summary report of your scenario by creating a

          PivotTable of your scenarios. Analyze the impact of

          different scenarios by pivoting your summary report.

       Access and Retrieve Data Easily

       -------------------------------

        - Save time by using the TextWizard to import files exactly

          the way you want.

        - Import data to Microsoft Excel with Microsoft Query.

          Microsoft Query supports open database connectivity (ODBC),

          which provides connections to a wide range of external data.

       Customize Your Worksheet

       ------------------------

        - Place controls directly on your worksheet to automate your

          work without macros.

        - Customize your toolbars easily.

        - Use the macro recorder to automate your tasks with the new

          Visual Basic(R) Programming System, Applications Edition,

          language or with the Microsoft Excel 4.0 macro language.

       Make Your Spreadsheet Part of a Complete Solution

       -------------------------------------------------

        - Create more-powerful programs easily with the common macro

          language Microsoft Visual Basic Programming System,

          Applications Edition. This one language allows you to build

          custom solutions for multiple programs.

        - Support for object linking and embedding (OLE) 2.0 lets

          Microsoft Excel work with other programs toward your

          solutions.

       Learn Microsoft Excel Using Your Lotus(R) 1-2-3(R) Experience

       -------------------------------------------------------------

        - You can use familiar 1-2-3 commands and the Lotus 1-2-3

          transition options to demonstrate equivalent Microsoft Excel

          commands.

        - Transfer files without losing file compatibility with Lotus

          WKS, WK1, WK3, Impress, Allways(TM), Multiplan(R), and

          Quattro(R) Pro for the MS-DOS operating system.

        - Transfer existing files more easily with improved 3-D

          capabilities.

        - Use the Macro Interpreter for Lotus 1-2-3 to run all release

          2.01 and most release 2.2 and 2.3 macros unmodified.

       The Microsoft Office Family: A Whole New Way to Work

       ----------------------------------------------------

       Go further with a family. The Microsoft Office family is a set

       of essential, full-featured programs for Windows. It includes

       Microsoft Word, Microsoft Excel, Microsoft Access(R), Microsoft

       PowerPoint(R), Microsoft Mail, Microsoft Project, and Microsoft

       Schedule+. It also includes Microsoft Office Standard and

       Professional, the most popular office suites on the market

       today.

       Consistency redefined. All programs in the Microsoft Office

       family look and work alike with common menus, commands, and

       toolbars. When you learn one program, you're well on your way

       to learning them all.

       Beyond ease of use. Only the programs in the Microsoft Office

       family have IntelliSense, built-in intelligence that

       anticipates what you want to do and responds with suggestions,

       examples, and shortcuts that reduce steps and save time.

       Routine tasks are automated and complex jobs become easier.

       Beyond cut and paste. Now it's truly easy to create, edit, and

       publish documents because OfficeLinks enable all programs in

       the Microsoft Office family to work together as if they were a

       single program. Move information between programs with a simple

       drag of the mouse. Edit information brought in from one program

       while you're working in another. And easily work with others in

       your group using built-in workgroup routing and editing

       features.

PERFORMANCE FEATURES

====================

Basic Use

---------

 - 3-D workbooks and workbook tabs

 - AutoFill

 - AutoSum

 - AutoFit row and column width

 - Customizable toolbars

 - Drag-and-drop data movement

 - Function Wizard

 - Name box

 - Spelling checker

 - Tab dialog boxes

Learning Tools

--------------

 - ToolTips

 - Help floats on your screen

 - Online, context-sensitive Help

 - TipWizard

Drawing, Charting, Graphics, and Formatting

-------------------------------------------

 - AutoFormat

 - ChartWizard

 - Chart gallery, including user-defined charts

 - Ability to plot data by dragging it to your chart

 - Drawing tools on sheets and graphs

 - Error bars to show data uncertainty

 - Format Painter

 - Goal Seek for all chart types

 - Hands-on charting

 - Import graphics

 - Picture charts

 - Tear-off palettes

 - Trendlines and curve smoothing

Data Access and Analysis

------------------------

 - Analysis ToolPak with the most extensive financial, statistical,

   engineering, and scientific features of any spreadsheet

 - AutoFilter

 - Automatic subtotal

 - Data consolidation

 - Goal seeking

 - Microsoft Query

 - ODBC support

 - Outlining

 - PivotTable Wizard and PivotTable

 - Solver

 - TextWizard

Workgroup

---------

 - Auditing tools

 - Find File support

 - Route documents and send mail

 - Scenario Manager

 - Workgroup toolbar

Integration

-----------

 - Cross-program drag-and-drop data movement

 - Consistent toolbars and menus with other Microsoft Office programs

   for Windows

 - External graphic filters

 - OLE 2.0 support

Programming for All Users

-------------------------

 - On-sheet controls

 - Integrated dialog box editor

 - Network install

 - Macro recorder (in Visual Basic or Microsoft Excel 4.0 macro

   language)

 - Microsoft Visual Basic Programming System, Applications Edition

   installation

 - Custom install

 - Uninstall

2.  Q. How do I order my upgrade from Microsoft Excel version 4.0

       or earlier for Windows to Microsoft Excel version 5.0 for

       Windows?

    A. To order your Microsoft Excel 5.0 upgrade, call the Microsoft

       Sales Information Center at (800) 426-9400, Monday through

       Friday, between 6:30 A.M. and 5:30 P.M. Pacific time.

3.  Q. What are the minimum hardware and software requirements

       for Microsoft Excel version 5.0 for Windows?

    A. To run Microsoft Excel 5.0, you need the following:

        - MS-DOS operating system version 3.1 or later

          -and-

          any of the following (must be acquired separately):

          Microsoft Windows operating system version 3.1 or later

          Microsoft Windows for Workgroups version 3.1 or later

          Microsoft Windows for Pen Computing

          -or-

          Microsoft Windows NT(TM) version 3.1 or later

        - A personal computer with a 286 or higher microprocessor

        - 4 megabytes (MB) of memory

        - Hard disk space required:

          Laptop (minimum) installation: approximately 6 MB

          Typical installation: approximately 15 MB

          Custom installation: up to 22 MB

        - A 3.5-inch or 5.25-inch disk drive

        - EGA or higher-resolution monitor compatible with Microsoft

          Windows 3.1 or later

        - Microsoft Mouse or compatible pointing device (mouse

          recommended)

 4. Q. How do I install Microsoft Excel for Windows on a network

       server so that workstations can run Setup from the server?

    A. For detailed information about how to set up and administer

       Microsoft Excel on a network, see the NETWORK.TXT file on Setup

       Disk 1. To view and print this file:

       1. From the Accessories group in Program Manager, start

          Notepad.

       2. From the File menu, choose Open.

       3. Switch to the drive that contains your Microsoft Excel 5.0

          Setup disk, select NETWORK.TXT, and choose OK.

       4. From the Edit menu, choose Word Wrap.

       5. If you want to print the document, choose the Print command

          from the File menu.

5.  Q. When I run the Setup program for Microsoft Excel for

       Windows, there are several options to choose from. What do

       these options mean?

    A. When you run the setup program for Microsoft Excel 5.0, you can

       choose a Typical, Complete/Custom, or Laptop (Minimum) setup.

       Use the Complete/Custom option to choose some or all of the

       Microsoft Excel components. The components you can choose

       include: the Microsoft Excel program, Help files, Tutorial,

       Data Access, Graphics Filters, Add-ins, and Tools. To reduce

       the amount of disk space an option requires, select the option

       and choose the Change Option button. You can then select the

       components you want to install. The Complete/Custom option

       requires up to 23 MB. The Typical setup option installs

       everything except the Data Access component and requires

       approximately 19 MB. The Notebook setup option requires only 8

       MB because it installs only those files necessary to run

Article truncated.


XL5 Err Msg: "Call to Undefined Dynalink" During Setup

Article ID: Q112682

----------------------------------------------------------------------

The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

----------------------------------------------------------------------

SUMMARY

=======

When you set up Microsoft Excel version 5.0 for Windows, you may

receive the error message:

   Application Error

   Call to Undefined Dynalink

If you receive this error message, the Setup program will terminate

after you choose the Close button.

CAUSE

=====

This error may be caused by if you have an early version of the CTL3D.DLL

file on your computer.

WORKAROUND

==========

To work around this problem, do either of the following:

 - Do the following to rename or remove all versions of CTL3D.DLL from your

   system:

   a. Use File Manager to search for all instances of CTL3D.DLL on your

      hard disk.

   b. Delete or rename earlier versions of the file.

   c. Restart Microsoft Windows, and attempt the installation again.

   -or-

 - If you restart Microsoft Windows, you may be able to run Microsoft Excel

   Setup even if an earlier version of CTL3D.DLL exists on your computer

   (as long as you do not run any other programs before starting Microsoft

   Excel Setup). However, this workaround is not as certain to work as the

   first workaround.

MORE INFORMATION

================

The Setup program included with Microsoft Excel uses the CTL3D.DLL dynamic

link library when displaying certain dialog boxes. If the CTL3D.DLL file is

not located on your computer, Microsoft Excel Setup will install a version

of the file on your hard drive.

If an earlier version of CTL3D.DLL is already present on your hard drive

and is being used by another program that is running or that was run

earlier in this Windows session, the old CTL3D.DLL file may not be

compatible with Microsoft Excel Setup. If this is the case, the

"Application Error -- Call to Undefined Dynalink" error message will appear

and the Setup program will be terminated.

KBCategory: kbsetup

KBSubcategory:

Additional reference words: 5.00


XL5: Macro Examples Using XLODBC Functions

Article ID: Q124218

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0C

 - Microsoft Excel for Macintosh, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel version 5.0, you can use the Microsoft ODBC add-in for

Microsoft Excel (XLODBC.XLA) to create macros that interact directly with

ODBC through the ODBC driver manager. XLODBC.XLA contains Visual Basic,

Applications Edition, functions as well as Microsoft Excel version 4.0

macro language functions.

This article provides examples using the Visual Basic, Applications

Edition, functions.

Note that XLODBC.XLA does not use Microsoft Query to retrieve data via ODBC

(this behavior is different from the Microsoft Query add-in, XLQUERY.XLA).

MORE INFORMATION

================

The following table lists the XLODBC.XLA Visual Basic functions.

This function            Does the following

----------------------------------------------------------

SQLBind                  Specifies storage for a result column

SQLClose                 Closes a data source connection

SQLError                 Returns detailed error information

SQLExecQuery             Sends a query to a data source

SQLGetSchema             Gets information about a connected data source

SQLOpen                  Establishes a connection to a data source

SQLRetrieve              Retrieves query results

SQLRetrieveToFile        Retrieves query results and places them in a file

SQLRequest               Connects with an external data source, performs

                         the query, and returns the result set

Tips for Using the XLODBC.XLA functions

---------------------------------------

 - When you use these functions, add XLODBC.XLA as a library

   reference in your workbook. If XLODBC.XLA is not added, you may receive

   the error message "Sub or function not defined" when you try to execute

   an XLODBC.XLA function. To add XLODBC.XLA as a library reference, do the

   following

   1. In a Visual Basic Module, choose References from the Tools menu.

   2. In the References dialog box, select the XLODBC.XLA check box.

   NOTE: If XLODBC.XLA is not present in the References dialog box, add it

   by choosing the Browse button and locating XLODBC.XLA in the

   EXCEL\LIBRARY\MSQUERY directory.

 - If you are using long SQL statements with an XLODBC.XLA function, you

   can pass  the SQL statement as type Variant rather than as type String.

   for information about how to do this, see Sample 8 in the "Visual Basic

   Code" section of this article.

 - If you are having difficulties with a particular SQL statement and a

   data source, try executing the query in Microsoft Query to determine if

   it will execute successfully there.

 - If you are writing an application that uses the XLODBC.XLA functions,

   set the XLODBC.XLA functions to Variant data type variables because they

   can potentially return Error data types. For example, if you set SQLOpen

   to a variable of type Integer and a connection cannot be made to the

   specified data source, you could receive the runtime error "Type

   Mismatch." Also, use the SQLError function to determine errors

   returned from an XLODBC.XLA function (see Sample 3 below for more

   information about how to use SQLError).

Sample Visual Basic Code

------------------------

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided 'as is' and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose. Note that a line that is preceded by

an apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the procedure. Note

also that an underscore character (_) indicates that code continues from

one line to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This Manual"

section in the "Document Conventions" section of the "Visual Basic User's

Guide."

Sample 1: Using SQLOpen to Connect to an External Data Source and to

          Determine a Connection String

          The following example demonstrates how you can use SQLOpen to

          connect to a data source and then determine the connection

          string. When you run this sample code, the "Select Data Source"

          dialog box is displayed to allow you to select a data source.

          After you have selected a data source, the connection string for

          the established connection will be returned to the active cell on

          the active sheet. To use this example, do the following:

          a. Enter the following macro code in a module sheet

             Sub UsingSQLOpen()

             Dim Chan As Variant

                'Establish a connection to any Data Source and place the

                'connection string to the selected Data Source in the

                'active cell.

                Chan = SQLOpen("", ActiveCell)

                'Close the connection to the selected Data Source

                SQLClose (Chan)

             End Sub

          b. Activate an empty worksheet and run the UsingSQLOpen macro.

          If the macro is successful, the connection string will appear in

          the active cell on the active sheet.

Sample 2: Using SQLRetrieve to Return External Data to a Worksheet

          The following example queries the Product table in the NWind

          data source and returns the data to the active sheet starting at

          cell A1. This sample macro queries the PRODUCT.DBF table to

          retrieve the Prod_Name and In_Stock values, where In_stock is

          less than 10. To use this example, do the following:

          a. Enter the following code in a module sheet:

             Sub RetrieveData()

             Dim Chan As Variant

                'Establish a connection to the NWind Data Source

                Chan = SQLOpen("DSN=Nwind")

                'Execute a query to retrieve the Prod_Name and In_Stock

                'from the Product table where In_stock is less than 10.

                SQLExecQuery Chan, _

                   "SELECT Prod_Name,In_Stock FROM Product.dbf WHERE _

                   In_Stock<10"

                'Return the data to cell A1 on the Active sheet

                SQLRetrieve Chan, ActiveSheet.Range("A1"), , , True

                'Close the connection to the NWind Data Source

                SQLClose (Chan)

             End Sub

          b. Activate an empty worksheet and run the RetrieveData macro.

          If the macro is run successfully, two columns of data will be

          returned to the active sheet at cell A1.

Sample 3: Using SQLError to Report Errors from XLODBC.XLA Functions

          The following example demonstrates how you can use SQLError to

          report errors that may be encountered while you use XLODBC.XLA

          commands. The SQLOpen in this example will return an error if you

          do not have an ODBC data source named "Just Testing." If an error

          is encountered, the function SQLError will return a variant

          array. The variant array will contain one row for each error

          generated and each row will contain the following:

           - A character string indicating the ODBC error class and

             subclass.

           - A numeric value indicating the data source native error code.

           - A text message describing the error.

          If there are no errors from a previous ODBC function call, this

          function returns only the #N/A error value. To use this example,

          do the following:

          a. Enter the following two macros in a module sheet:

             Sub XLODBCErrHandler()

             Dim ErrMsgs As Variant

             Dim ErrCode As Variant

                'Call SQLError to return error values to the variant

                'ErrMsgs

                ErrMsgs = SQLError()

                'Display each item in the ErrMsgs variant array

                For Each ErrCode In ErrMsgs

                   MsgBox ErrCode

                Next

             End Sub

             Sub ProduceError()

             Dim Chan As Variant

                'Establish a connection to a nonexistent data source

                Chan = SQLOpen("DSN=Just Testing")

                'If there was a problem establishing a connection, SQLOpen

                'will return an error to the variable Chan.  If Chan is an

                'error then call the procedure XLODBCErrHandler to display

                'the error.

                If IsError(Chan) Then

                   XLODBCErrHandler

                   Exit Sub

                End If

                'Close the connection if one was established

                SQLClose (Chan)

             End Sub

          b. Run the ProduceError macro.

          If a connection cannot be made to the data source "Just Testing",

          dialog boxes will be displayed to describe the error that was

          encountered while the attempted to connect to the data source.

Sample 4:  Using SQLGetSchema to Get Table Names in a Database

          The following example uses SQLGetSchema to determine the

          name of the database or selected directory on the connection to

          the NWind data source. Then, once you know the name of the

          database or selected directory, you can use SQLGetSchema once

          more to determine the names of all the tables in the database or

          selected directory. The directory selected for the Nwind data

          source is WINDOWS\MSAPPS\MSQUERY and should contain six dBASE

          files: CUSTOMER.DBF, EMPLOYEE.DBF, ORDDTAIL.DBF, ORDERS.DBF,

          PRODUCT.DBF and SUPPLIER.DBF. To use this example, do the

          following:

          a. Enter the following macro code in a module sheet

             Sub GetTableNames()

             Dim Chan As Variant

             Dim TableNames, TName As Variant

             Dim DatabaseName As Variant

                 'Establish a connection to the NWind Data source

                 Chan = SQLOpen("DSN=NWind")

                 'Get the name of the database on the connection

                 DatabaseName = SQLGetSchema(Chan, 7)

                 'Get the table names for the database on the connection

                 TableNames = SQLGetSchema(Chan, 4, DatabaseName & ".")

                 'Display the name of each table

                 For Each TName In TableNames

                     MsgBox TName

                 Next TName

                 'Close the connection to the NWind data source

                 SQLClose (Chan)

             End Sub

          b. Run the GetTableNames macro.

          If this macro is run successfully, six dialog boxes will be

          displayed containing the name of each dBASE table.

Sample 5: Using SQLGetSchema to Get the Field Names in a Table

          The following example uses SQLGetSchema to retrieve the field

          names and field types for each field in the ORDERS table in the

          Nwind Data Source. To use this example, do the following:

          a. Enter the following macro code in a module sheet

             Sub GetFieldNames()

             Dim Chan As Variant

             Dim Fields As Variant

             Dim i As Integer

                 'Establish a connection to the NWind Data Source

                 Chan = SQLOpen("DSN=NWind")

                 'Get the FieldNames for the ORDERS table

                 Fields = SQLGetSchema(Chan, 5, "ORDERS")

                 'Fields is a two-dimension variant array, each row the

                 'contains  field name and the field type.  Display an

                 'alert message for each row to show each field name and

                 'its type

                 For i = 1 To UBound(Fields)

                     MsgBox Fields(i, 1) & " -- " & Fields(i, 2)

                 Next i

                 'Close the connection

                 SQLClose (Chan)

             End Sub

          b. Run the GetFieldNames macro.

          If the macro runs successfully, a dialog box will be displayed

          for each field name in the ORDERS table.

Sample 6: Using SQLBind to Specify Where Data Will Be Returned to a

          Worksheet

          The following example executes a query to return three columns

          from the Product table in Nwind. The three fields (Prod_Name,

          Unit_Price, and In_Stock) are then bound to specific columns in

          the active sheet. Prod_Name is bound to column A, Unit_Price is

          bound to column D and In_Stock is bound to column B. To use this

          example, do the following:

          a. Enter the following code in a module sheet.

             Sub UsingSQLBind()

             Dim Chan As Variant

             Dim NumRows, NumCols As Variant

                 'Establish a connection to the NWind Data Source

                 Chan = SQLOpen("DSN=NWind")

                 'Execute a query to the Product table to retrieve the

                 'fields: Prod_Name, Unit_Price, and In_Stock

                 NumCols = SQLExecQuery(Chan, _

                     "SELECT Prod_Name, Unit_Price, _

                     In_Stock FROM Product.Dbf")

                 'Bind the first column (Prod_Name) to cell A1 of the

                 'Activesheet, Bind the second column (Unit_Price) to cell

                 'D1 of the Activesheet, Bind the third column (In_Stock)

                 'to cell B1 of the Activesheet

                 SQLBind Chan, 1, Range("A1")

                 SQLBind Chan, 2, Range("D1")

                 SQLBind Chan, 3, Range("B1")

                 'Return the data and the field names

                 NumRows = SQLRetrieve(Chan, , , , True)

                 'Close the connection to the NWind data source

                 SQLClose (Chan)

             End Sub

          b. Activate an empty worksheet, and then run the UsingSQLBind

             macro.

Sample 7: Retrieve Records to an Array using SQLRequest

          You can use the SQLRequest function to return records into an

          array. The following example demonstrates how to query a table

          and return the result set to an array. To use this example, do

          the following:

          a. Enter the following code in a module sheet:

             Sub ReturnDataToArray()

             Dim EmpNames As Variant

                 'Query the EMPLOYEE table in the NWind data source for the

                 'first and last name of each employee and return the

                 'result set to the variant array EmpNames

                 EmpNames = SQLRequest("DSN=NWind", _

                      "Select Last_Name, First_Name from EMPLOYEE")

                 'For each row in the array Empnames, display the first and

                 'last name of the employee

                 For i = 1 To UBound(EmpNames, 1)

                     MsgBox EmpNames(i, 1) & "," & EmpNames(i, 2)

                 Next

             End Sub

          b. run the ReturnDataToArray macro.

          If the macro is run successfully, a dialog box will be displayed

          containing the first and last name of each employee in the

          EMPLOYEE.DBF table.

Sample 8: Using Long SQL Query Strings

          If you use a long SQL query, you can choose to pass the SQL query

          to SQLRetrieve or SQLRequest as a Variant data type rather than a

          String data type. The following example demonstrates how this can

          be done. To use this example, do the following:

          a. enter the following code on a module sheet

             Function StringToArray(Query As String) As Variant

             Const StrLen = 127      'Set the maximum string length for

                                     'each element in the array to return

                                     'to 127 characters.

             Dim NumElems As Integer

             Dim Temp() As String

                 'Divide the length of the string Query by StrLen and add 1

                 'to determine how many elements the String array Temp

                 'should contain and redimension the Temp array to contain

                 'this number of elements.

                 NumElems = (Len(Query) / StrLen) + 1

                 ReDim Temp(1 To NumElems) As String

                 'Build the Temp array by sequentially extracting 127

                 'segments of the Query string into each element of the

                 'Temp array.

                 For i = 1 To NumElems

                     Temp(i) = Mid(Query, ((i - 1) * StrLen) + 1, StrLen)

                 Next i

                 'Set the function StringToArray to the Temp array so it

                 'can be returned to the calling procedure

                 StringToArray = Temp

             End Function

             Sub ExecuteLongSQL()

             Dim Chan As Variant

             Dim LongSQL As String

             Dim NumRows, NumCols As Variant

                 'Set LongSQL to a long query (> 127 characters)

                 'The following statement should be entered as one single

                 'line

                 LongSQL = "SELECT EMPLOY_ID, LAST_NAME,

                 FIRST_NAME,EMP_TITLE FROM

                 employee WHERE (employee.HIRE_DATE>={d '1986-01-01'}) AND

                 (COUNTRY='UK') AND (REPORTS_TO='666')"

                 'Establish a connection to the data source NWind

                 Chan = SQLOpen("DSN=NWind")

                 'Execute the long query statement by passing SQLExecQuery

                 'a variant array which is returned from the function

                 'StringToArray

                 NumCols = SQLExecQuery(Chan, StringToArray(LongSQL))

                 'Return the data to the Active cell on the Active sheet

                 NumRows = SQLRetrieve(Chan, ActiveCell)

                 'Close the channel established to NWind

                 SQLClose Chan

Article truncated.


XL5 Err Msg: "Must Exit Windows and Load SHARE.EXE. . ."

Article ID: Q106499

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

In order to run Microsoft Excel for Windows, version 5.0, you must have the

Share program loaded on your computer. If you try to run Microsoft Excel

when Share is not loaded, you will receive one of the following error

messages:

   You must exit Windows and load SHARE.EXE in order to run Microsoft

   Excel.

   -or-

   Cannot open or save any more documents

To Correct This Problem

-----------------------

If you receive this error message, you can do one of the following:

 - Add the following line to your AUTOEXEC.BAT file

      <path>\share.exe /l:500 /f:5100

   where <path> is the drive and directory where the SHARE.EXE file is

   located (usually the MS-DOS directory). For example, if your MS-DOS

   directory is called DOS and is on drive C, add the following line

   to your AUTOEXEC.BAT file:

      c:\dos\share.exe /l:500 /f:5100

   You may need to add this line if it was removed from your

   AUTOEXEC.BAT file or if the Setup program was unable to add it.

NOTE: When troubleshooting this line in your AUTOEXEC.BAT file, doublecheck

that the l is being used instead of the number 1.

   -or-

 - If you are running Microsoft Windows for Workgroups, try running

   in 386 enhanced mode.

   -or-

 - If you load SHARE.EXE into high memory and encounter the error message,

   try loading it into conventional memory.

   -or-

 - If the path designation for the temp directory does not contain a drive

   letter, i.e. set temp=temp, or if the \ designator is not used in the

   path, i.e. set temp=c:temp. The valid set statement in both these

   cases should be set temp=c:\temp.

MORE INFORMATION

================

The Share program provides the range locking functionality to Microsoft

Excel that is required in object linking and embedding (OLE) version 2.0

operations.

If you are using Microsoft Excel version 5.0 under Windows version

3.1, or under Windows for Workgroups version 3.1 in standard mode, the

MS-DOS Share program must be run before you start Windows. If you are

using Windows for Workgroups version 3.1 or 3.11 in enhanced mode, an

equivalent of the Share program (VSHARE.386: see below) is automatically

loaded for you.

If the Microsoft Excel Setup program detects that Share (or an equivalent

such as VSHARE.386) is not loaded on your computer, the SHARE command is

added to your AUTOEXEC.BAT file.

You do not need to run the MS-DOS Share program if you run Microsoft

Excel under Windows for Workgroups 3.1 or 3.11 in 386 enhanced mode.

Windows for Workgroups uses a comparable file-sharing utility called

VSHARE.386.

KBCategory: kbusage

KBSubcategory:

Additional reference words: 5.00


XL5: Macro to Remove Hidden Names in Active Workbook

Article ID: Q119826

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0

 - Microsoft Excel for Macintosh, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

Because some macros and add-ins create hidden names on a sheet, links

may exist even after you attempt to remove all known references

(including objects and formulas) from a worksheet. In this situation, when

you open a worksheet containing the hidden links, you may receive the

following error message:

   Update References to Unopened Documents

The macro in the "More Information" section of this article provides a

macro to remove all the hidden names in a workbook.

MORE INFORMATION

================

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of merchantability

and/or fitness for a particular purpose. This Visual Basic procedure

is provided 'as is' and Microsoft does not guarantee that it can be

used in all situations. Microsoft does not support modifications of

this procedure to suit customer requirements for a particular purpose.

Note that a line that is preceded by an apostrophe introduces a

comment in the code--comments are provided to explain what the code is

doing at a particular point in the procedure. Note also that an

underscore character (_) indicates that code continues from one line

to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This

Manual" section in the "Document Conventions" section of the "Visual

Basic User's Guide."

Visual Basic Code Example

-------------------------

'module to remove all hidden names on active workbook

Sub Remove_Hidden_Names()

  Dim a_name As Variant     'dimension variable used in loop.

  For Each a_name In ActiveWorkbook.Names

    If a_name.Visible = False Then a_name.Delete

    'Test each name and only delete the hidden ones.

  Next

End Sub

KBCategory: kbcode

KBSubcategory:

Additional reference words: 5.00 vbapp


XL5: Setting Status Bar Text and ToolTips for Toolbar Buttons

Article ID: Q112632

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel version 5.0, the behavior of status bar text attached to

toolbar buttons differs from earlier versions of Microsoft Excel. In

Microsoft Excel version 5.0, status bar text becomes attached to a toolbar

button by one of two methods. This can be achieved by using a Visual Basic

macro or from the Status Bar Text box in the Macro Options dialog box. (To

get to this dialog box, choose Macro from the Tools menu, select the name

of the macro assigned to the toolbar button, and click the Options button.)

ToolTips is a new feature in Microsoft Excel version 5.0. ToolTips can only

be assigned to a toolbar button by using a macro.

MORE INFORMATION

================

In Microsoft Excel version 5.0, the status bar text is a property of the

macro, not of the toolbar button. When a macro is assigned to a toolbar

button, that macro's status bar text is assigned to that toolbar button and

will be displayed when the mouse cursor is positioned over that toolbar

button.

NOTE: This mouse cursor behavior differs from earlier versions of Microsoft

Excel. In earlier versions you have to hold down the left mouse button

while the cursor is on top of the toolbar button in order to read the

status bar text.

In Microsoft Excel version 5.0, the status bar text will change whenever a

macro is assigned to a toolbar button. If no status bar text is assigned to

the macro, the toolbar button's status bar text will revert to the default

for that toolbar button. For example, the default text for a toolbar button

taken from the Custom category is Creates A Button To Which You Can

Assign A Macro.

ToolTips are a property of the individual toolbar button. They only change

when a Visual Basic macro explicitly sets the Name property for a

particular toolbar button.

The following Visual Basic macros add a toolbar button, set its name

property, and assign status bar text to a macro named "myMacro". Note that

it is not possible to assign status bar text directly to a toolbar button

from a Visual Basic macro.

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of merchantability

and/or fitness for a particular purpose. This Visual Basic procedure

is provided 'as is' and Microsoft does not guarantee that it can be

used in all situations. Microsoft does not support modifications of

this procedure to suit customer requirements for a particular purpose.

Note that a line that is preceded by an apostrophe introduces a

comment in the code--comments are provided to explain what the code is

doing at a particular point in the procedure. Note also that an

underscore character (_) indicates that code continues from one line

to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This

Manual" section in the "Document Conventions" section of the "Visual

Basic User's Guide."

Sub AddButton()

  'creates a new toolbar titled "My Toolbar"

  With Toolbars.Add("My Toolbar")

     'show the newly created toolbar

     .Visible = True

     'Add the "hand" button to end of the new toolbar

     .ToolbarButtons.Add Button:=229

     'Set ToolTip to "my tool tip"

     .ToolbarButtons(.ToolbarButtons.Count).Name = "my tool tip"

  End With

End Sub

NOTE: The Toolbars(x).ToolbarButtons.Count command will count both the

buttons and the spaces between the buttons (unless the buttons are directly

side-by-side) starting with the first toolbar button and continuing to the

last button.

After you run the above macro, clicking the hand button will cause

the Assign Macro dialog box to appear, where you can assign a macro

to this new button. Alternatively, you can assign a macro to the

toolbar button above by changing Line 4 to read:

     .ToolbarButtons.Add Button:=229, OnAction:="myMacro"

The following is the Visual Basic macro code to assign Status Bar text

to a macro:

Sub AssignStatusText()

     Application.MacroOptions Macro:="myMacro", StatusBar:="My Text"

End Sub

The Application.MacroOptions StatusBar argument only affects the status bar

when you position the mouse over a tool or a menu command without selecting

it. To assign text to display during a macro's execustion, you need to use

Application.StatusBar="<text>", and return control of the statuss bar to

Excel after execution by setting Application.StatusBar=FALSE.

NOTE: For the above Subroutine to work you must create a macro named

"myMacro".

REFERENCES

==========

"Visual Basic User's Guide," version 5.0, Chapter 12,

"Managing Toolbars and Toolbar Buttons with Visual Basic"

For more information about toolbar buttons, choose the Search button in

Help and type:

    toolbar buttons

KBCategory: kbusage

KBSubcategory:

Additional reference words: 5.00 tool tip tips


XL5C: Setup Doesn't Reinstall VSHARE.386

Article ID: Q123573

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0c

--------------------------------------------------------------------

SYMPTOMS

========

When you run the Microsoft Excel version 5.0c Setup program in

maintenance mode, and you choose the Reinstall button, the VSHARE.386

file is not installed on your computer. Additionally, when you

restart Windows, you receive the following error message:

   Cannot find a device file that may be needed to run Windows

   Make sure that the PATH line in your AUTOEXEC.BAT file points to the

   directory that contains the file and that it exists on your hard disk.

   If the file does not exist, try running Setup to install it or remove

   any references to it from your SYSTEM.INI file.

   VSHARE.386

   Press any key to continue

CAUSE

=====

If the VSHARE.386 file is not located on your computer, this file is

not installed when you run the Setup program in maintenance mode and

choose to reinstall the files. If the "device=vshare.386" line is not

in the [386enh] section in your SYSTEM.INI file, this line is written

to the SYSTEM.INI file as expected when you reinstall the files.

WORKAROUNDS

===========

To reinstall the VSHARE.386 file on your computer in case the file is

damaged or accidentally deleted, extract the file from your Microsoft

Excel Setup disks by doing the following:

   1. Copy the Extract utility, EXTRACT.EXE from the Microsoft Excel Setup

      Disk 1, to the root directory on your hard drive, or to a directory

      that is located in the PATH statement in your AUTOEXEC.BAT file.

   2. Insert the Microsoft Excel Setup Disk 5 in your floppy disk drive and

      type the following at a MS-DOS prompt

         extract a:\excel5.cab /l c:\windows\system vshare.386

      where a: is the floppy drive that contains the Microsoft Excel Setup

      Disk 5, and c:\windows is your Microsoft Windows directory.

   3. In Notepad or another text editor, add the following line to the

      386enh section in the SYSTEM.INI file.

         device=vshare.386

   4. Exit Windows, and then start Windows again.

MORE INFORMATION

================

The Share utility is required to run Microsoft Excel. For more

information about using VSHARE.386, choose the Microsoft Excel

Product Update topic in the Microsoft Excel Readme file,

XLREADME.HLP. The information is under the topic "Using SHARE.EXE or

VSHARE.386."

For additional information, please see the following article(s) in the

Microsoft Knowledge Base:

   ARTICLE-ID: Q118958

   TITLE     : XL5: Excel 5.0c Setup Program Installs VSHARE.386

KBCategory: kbsetup

KBSubcategory: xlwin

Additional reference words: 5.00c


XL5: List of File Formats Supported in Microsoft Excel 5.0

Article ID: Q110761

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

--------------------------------------------------------------------

SUMMARY

=======

Microsoft Excel 5.0 supports opening and saving files in many different

file formats. The following is a list of these file formats, including

version numbers (where applicable).

MORE INFORMATION

================

File Format           Version   Filename Extension            Open   Save

-------------------------------------------------------------------------

Microsoft Excel       4.0       .XLS .XLC .XLM .XLW .XLA       XX     XX

                                .XLT                           XX     XX

                                .XLB .XLL                      XX

Microsoft Excel       3.0       .XLS .XLC .XLM .XLW .XLA       XX     XX

                                .XLT                           XX     XX

Microsoft Excel       2.x       .XLS .XLC .XLM                 XX     XX

Text Files            n/a       Tab-delimited (.TXT)           XX     XX

                                Space-delimited (.PRN)         XX     XX

                                Comma-delimited (.CSV)         XX     XX

                                Text (Macintosh)               XX*    XX

                                Text (OS/2 or MS-DOS)          XX*    XX

                                CSV (Macintosh)                XX*    XX

                                CSV (OS/2 or MS-DOS)           XX*    XX

Lotus 1-2-3           all       .WK3 .WK1 .WKS                 XX     XX

                                .FM3 .FMT .ALL                 XX     XX

NOTE: .WK4 files are supported using a WK4 File converter which is

available as an Application Note.

For additional information, please see the following article(s) in the

Microsoft Knowledge Base:

   ARTICLE-ID: Q122583

   TITLE     : XL5: AppNote: Lotus 1-2-3 WK4 File Converter (WE1130)

Borland Quattro Pro   all       .WQ1                           XX     XX

Microsoft Works       up to     .WKS (version 2.0 or earlier)  XX

                      3.x

Symbolic Link         all       .SLK                           XX     XX

(SYLK)

Data Interchange      all       .DIF                           XX     XX

Format

dBase                 up to     .DBF                           XX     XX

                      4.x

Items marked above with an asterisk do not actually appear in the list of

file formats in the Open dialog box, but they can still be opened.

Note that although the above file formats are supported, certain features

may not be available when opening or saving files in those formats: for

example, some file formats do not support embedded charts or formatted

text.

REFERENCES

==========

"User's Guide," version 5.0, page 724

For more information about Data Exchange Specifications, choose the

Search button in Help and type:

    exchanging data

KBCategory: kbusage

KBSubcategory:

Additional reference words: 5.00


XL5: Error Messages When Accessing Files from Floppy Disks

Article ID: Q110944

----------------------------------------------------------------------

The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

----------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel version 5.0 for Windows, if you attempt to open a file

from a floppy disk, you may receive one of the following error messages

   Cannot access 'a:'

   -or-

   A different disk is expected in drive a:

   (where a: is the drive you are working with)

   -or-

   Cannot access 'a:bookname.xls'

   (where A is your floppy disk drive and BOOKNAME.XLS is the

    name of your document)

This problem will occur if a file opened from another floppy disk is still

open and you have removed that file's disk from the disk drive.

In addition, if you attempt to save a file to a floppy disk and if the that

file was opened from a floppy disk that has been removed from the disk

drive, you may receive the error message:

   Filename is not valid

NOTE: The information in this article assumes that you are using a single

floppy disk drive. If your computer has two or more floppy disk drives,

this information applies only if you remove a disk from a certain disk

drive (for example, drive A) and insert another floppy disk into the same

floppy disk drive.

CAUSE

=====

Microsoft Excel version 5.0 for Windows, can run only when a file-sharing

program, such as SHARE.EXE or VSHARE.386, is running.

The error messages occur because of the way in which SHARE.EXE and

VSHARE.386 keep track of open files. When you open a file from a floppy

disk, the serial number (if one exists) of the floppy disk (for example,

2B4A-1ACA), is read into memory. If you attempt to open a file from a

floppy disk that has a different serial number while the first file is

still open, you will receive an error message.

If your files are stored on floppy disks that do not have serial numbers,

you may be able to open files without receiving an error message.

Note also that a disk formatted with the FORMAT command (included with MS-

DOS versions 5.0 and later) will be assigned a serial number.

WORKAROUNDS

===========

Opening Files from Floppy Disks

-------------------------------

To avoid getting an error message when you open files from floppy disks,

copy the files to your hard disk drive before you open them.

This is the recommended workaround because opening files from and saving

files to the hard disk drive is faster than using a floppy disk drive; in

addition, saving to the hard disk drive allows you to avoid problems caused

by lack of space on floppy disks.

Other Ways to Avoid Getting These Error Messages

------------------------------------------------

 - Use "factory formatted" floppy disks to store your files. These disks

   often do not have serial numbers.

   -or-

 - Use a third-party disk formatting program, such as the SFORMAT (Safe

   Format) program included with Symantec's Norton Utilities, to format

   your floppy disks. These programs often do not place a serial number

   on floppy disks.

   -or-

 - Format the floppy disks in a computer running MS-DOS 4.0 or earlier.

   Versions 2.x, 3.x, and 4.0 of MS-DOS do not place serial numbers

   on floppy disks when they are formatted.

Saving a File to a Different Floppy Disk

----------------------------------------

If you open a file from a floppy disk and then remove that floppy disk from

the disk drive before closing the file, you may receive the error message

"Filename is not valid" when you choose Save from the File menu. This error

message will appear if the path for the new file is not applicable to the

new floppy disk.

For example, if you open the file A:\TEST\ALPHA.XLS, remove the floppy

disk from drive A, and then insert a new disk into drive A, choosing Save

from the File menu will only work if there is a TEST directory on drive A.

MORE INFORMATION

================

For more information on SHARE.EXE and VSHARE.386 and how they relate to

Microsoft Excel, query on the following words in the Microsoft Knowledge

Base:

   SHARE and Microsoft and Excel and OLE

KBCategory: kbprb

KBSubcategory:

Additional reference words: 5.0 5.00 switch switching change changing


XL5: GP Fault in XLODBC.DLL Using SQLExecQuery or SQLRequest

Article ID: Q114992

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, if you use the SQLExecQuery function or the

SQLRequest function in a Visual Basic procedure to run a query on an

external data source, and your query is larger than 255 characters,

you may receive a general protection (GP) fault when you run the

procedure.

CAUSE

=====

When you use a function in the XLODBC.XLA add-in, such as SQLRequest, and

you use a query that contains more than 255 characters, the query is

truncated after the first 255 characters.

As a result, you can convert your query string into an array, where each

element of the array can contain up to 255 characters; however, you may

receive a GP fault if an element in the array is larger than 127

characters. Note that this behavior does not occur every time you run the

procedure. The results are not consistent.

You can also use the Range object to reference multiple cells that

contain your query. Again, you may receive a GP fault if any of the cells

in the range that contains your query contain more than 127 characters.

WORKAROUND

==========

To avoid receiving a GP fault you use the SQLExecQuery or the

SQLRequest functions with a query that is larger than 255 characters,

do one of the following:

Array Method

------------

Limit the elements in the array that you create to handle your query

to 127 characters or less. The following is an example of a function

that uses this method to limit each query string in the QueryToArray

array to 127 characters:

   Function QueryToArray(Q, Optional MaxLength) As Variant

      ' If no maximum string length is provided (MaxLength), then

      ' set maximum size of string in array to 127 characters

      If IsMissing(MaxLength) Then MaxLength = 127

      ' Account for Option Base default value

      Shift% = LBound(Array(1)) - 1

      Size% = (Len(Q) + MaxLength) \ MaxLength

      ReDim TmpArr(Size% + Shift%, 1 + Shift%) As String

      For I% = 1 To Size%

         TmpArr(I% + Shift%, 1 + Shift%) = _

            Mid$(Q, (I% - 1) * MaxLength + 1, MaxLength)

      Next I%

      QueryToArray = TmpArr

   End Function

Range Method

------------

To avoid truncating your query when you use the SQLExecQuery function

or the SQLRequest function, you can also use the Range method to

reference a query contained in multiple cells on a worksheet. In the

following example, the range A1:A8 on Sheet1 contains a query:

   Result = SQLExecQuery(Connection,Worksheets("Sheet1").Range("A1:A8"))

To avoid receiving a GP fault when you use this method in a procedure, make

sure that each cell in the range (A1:A8 above) that contains your query,

does not contain more than 127 characters.

Notes

-----

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided as is and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose.

Note that a line that is preceded by an apostrophe introduces a comment in

the code. Comments are provided to explain what the code is doing at a

particular point in the procedure. Note also that an underscore character

(_) indicates that code continues from one line to the next. You can type

lines that contain this character as one logical line or you can divide the

lines of code and include the line continuation character. For more

information about Visual Basic for applications programming style, see the

"Programming Style in This Manual" section in the "Document Conventions"

section of the "Microsoft Visual Basic User's Guide."

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. This problem was corrected in

Microsoft Excel for Windows version 5.0c.

Note that the 255 character limit when you use a function in the XLODBC.XLA

add-in still exists, but you will no longer get a General Protection Fault

error (GPF).

MORE INFORMATION

================

You can use the SQLRequest function to connect to an external data

source and run a query from a worksheet, and then return the result

as an array. The SQLExecQuery function executes a query on a data

source with a connection that has been established using SQLOpen.

Both of these functions are contained in the XLODBC.XLA add-in. You

must establish a reference to the XLODBC.XLA file using the References

dialog box before you can use either function in a procedure.

REFERENCES

==========

For more information about the SQLExecQuery function, choose the

Search button in the Visual Basic Reference and type:

   SQLExecQuery function

For more information about the SQLRequest function, choose the Search

button in the Visual Basic Reference and type:

   SQLRequest function

KBCategory: kbprg kbbuglist

KBSubcategory:

Additional reference words: 1.00 5.00 msquery sql addins addin macro gpf


MXL5: Links Incorrect When Source Document(s) Closed

Article ID: Q122464

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for the Macintosh, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel version 5.0 for the Macintosh, linked cells on your

worksheet may display incorrect data. The value displayed may be zero, a

very large number, or a very small number instead of the actual data.

CAUSE

=====

This problem occurs only if the source document is closed. The problem

occurs in the following cases:

Formatted Blank Cells

---------------------

When the cell that you link to is preceded by multiple blank cells, and the

blank cells contain some type of formatting, such as bold, the linked cell

contains an incorrect value if the source document is closed.

For example, when you link to cell G1 in the following example, if cells

C1:F1 contain formatting, this behavior occurs:

   A1:   B1: 23  C1:   D1:   E1:   F1:   G1: 4

Series of Integer and/or Simple Numeric Values

----------------------------------------------

When the linked worksheet contains a row of integer or simple numeric

values (1 or 2 decimal places), and you link to a cell in the same row that

is preceded by a series of these numbers which is not an integer or simple

numeric value (has more decimal places or is a formula), the linked cell

contains an incorrect value if the source document is closed.

Take for example a worksheet where column A contains text entries

describing the data, columns B-F contain numeric values with 2 decimal

places (dollar values), and column G contains the sums of the data. When

you link to any cell in column G, the incorrect value is displayed when the

source document is closed.

Note that these are not all of the causes of this problem. There are other

scenarios that may also cause this problem.

WORKAROUNDS

===========

To work around this problem, use any of the following methods:

Method 1: Open the source file(s). This causes the linked cells to display

          the  correct data.

Method 2: In the case of formatted blank cells, open the source worksheet,

          and do  the following:

          a. From the Edit menu, choose Go To. Choose the Special button.

          b. Under Select, select the Blanks option, and choose OK to

             select  all of the blank cells.

          c. From the Edit menu, choose Clear, and then choose Formats.

Method 2: Move all of the linked worksheets into one workbook.

Method 3: In the case of integer or simple numeric values, open the source

          file,  select every other column of the rows that contain numeric

          data and  replace the values with formulas. You can do this by

          adding an equal  sign (=) at the beginning of each cell that

          contains a numeric value.

          You can use the following macro to automatically add an equal

          sign to a selection of cells, except any blank cells or cells

          that contain formulas or text.)

           A1: AddEqualSigns

           A2: =FOR.CELL("curcell")

           A3: =  IF(NOT(ISBLANK(curcell)))

           A4: =    IF(NOT(GET.CELL(48,curcell)))

           A5: =      IF(NOT(ISERROR(curcell+1)))

           A6: =         FORMULA("="&curcell,curcell)

           A7: =      END.IF()

           A8: =    END.IF()

           A9: =  END.IF()

          A10: =NEXT()

          A11: =RETURN()

          Note that running this macro in your file causes your file to be

          slightly larger, because formulas take more space than numeric

          values.

          Notes on Macro

          --------------

          A4: Get.Cell(48) returns TRUE if cell contains formula

          A5: If there's an error, cell contains Text

Microsoft provides macro examples for illustration only, without warranty

either expressed or implied, including but not limited to the implied

warranties of merchantability and/or fitness for a particular purpose. This

macro is provided 'as is' and Microsoft does not guarantee that the

following code can be used in all situations. Microsoft does not support

modifications of the code to suit customer requirements.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. We are researching this problem

and will post new information here in the Microsoft Knowledge Base as it

becomes available.

KBCategory: kbother kbprg kbmacro

KBSubcategory:

Additional reference words: 5.00 wrong


XL5: GP Fault Checking Spelling in Worksheet

Article ID: Q112027

----------------------------------------------------------------------

The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

----------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel, you may receive a general protection (GP) fault when

you check the spelling in a worksheet if a cell on the worksheet contains

text in the following format

   <recognized word><period><space><unrecognized word>

   -or-

   <recognized word><space><unrecognized word>

where <recognized word> is a word that is in the spelling dictionary,

and <unrecognized word> is a word that is not in the spelling

dictionary.

For example, if you select a cell that contains the following text

   Dr. Einstein

and press F7 or choose Spelling from the Tools menu to run the

spelling checker, you may receive a GP fault because the word "Dr" is

in the dictionary, the word "Einstein" is not (unless you added it

previously), and the two words are separated by a period and a space.

CAUSE

=====

This error occurs because of the way that Microsoft Excel handles data that

is returned from its spelling system. When you check the spelling of a cell

that contains a recognized word followed by a period, a space, and an

unrecognized word as described above, Microsoft Excel may be unable to

properly establish the conditions for an Undo of the Spelling command, and

you receive the GP fault.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. This problem was corrected in

Microsoft Excel for Windows version 5.0c.

WORKAROUNDS

===========

To avoid losing data when you check the spelling in a worksheet, do the

following:

 - Before you run the spelling checker, save the workbook that contains the

   worksheet. If possible, save the workbook to a second location (make a

   backup of the workbook) also. This ensures that you have a saved copy of

   the file in case you receive a GP fault while checking spelling in the

   worksheet.

To avoid receiving the GP fault under the circumstances described above you

can use one of the following solutions:

 - Add any unrecognized words to the custom spelling dictionary BEFORE you

   use them with abbreviations or a period in a cell. For example, if your

   worksheet contains the following information

      Dr. Einstein

      Ms. Earhart

      Gen. Eisenhower

   do the following to add the names Einstein, Earhart, and

   Eisenhower to the custom spelling dictionary:

   1. Create a new worksheet in a new workbook.

   2. In the new worksheet, enter the names or words that you want to add

      to the custom spelling dictionary (do not enter the titles such as

      Dr., and so on).

   3. From the Tools menu, choose Spelling. If you are prompted to

      "Continue checking at beginning of sheet?" choose Yes.

   4. Each unrecognized word appears in the Spelling dialog box as not

      being in the dictionary. For each word, choose the Add button.

      Continue until all words are added to the custom dictionary.

   5. When you receive the message "Finished spell checking entire

      sheet," choose OK.

   You can now check the spelling of the worksheet that contains the words

   "Dr. Einstein," "Ms. Earhart," and "Gen. Eisenhower," without receiving

   a GP fault.

KBCategory: kbother kbfixlist

KBSubcategory:

Additional reference words: 5.00 gpf abbreviation etc. i.e.


MSQuery: Third-Party Vendors for ODBC Drivers

Article ID: Q115293

--------------------------------------------------------------------

The information in this article applies to:

--Microsoft Query for Windows, version 1.0

--------------------------------------------------------------------

SUMMARY

=======

The following is a list of third-party vendors who provide additional ODBC

(open database connectivity) drivers for use with Microsoft Query.

Microsoft does not support the functionality or connectivity of these

drivers with Microsoft Query or any Microsoft product.

The products mentioned here are manufactured by vendors independent of

Microsoft; we make no warranty, implied or otherwise, regarding the

performance or reliability of these products.

For more information about or for support for any of the third-party ODBC

drivers listed below, please contact the appropriate vendor for that

driver.

MORE INFORMATION

================

Databases: Ingres, IBM DB2, IBM IMS, DEC RDB, DEC RMS, VSAM, CA IDMS, HP

Allbase/SQL, HP Image/SQL

ASK Group

1080 Marina Village Pkwy

Alameda, CA 94501

Phone: (800) 446-4737 (4INGRES)

Database: Teradata

AT&T Global Information Solutions

100 N. Sepulveda Blvd.

El Segundo, CA 90245

Databases: HP Allbase/SQL, HP Image/SQL

Beneteau Consulting

4859 Draper St.

Montreal, Quebec H3X 3P6

Phone: (514) 486-5534

Database: IBM AS/400

Networks: PC Support or NetWare SAA

Born Software Development Group

445 East Lake St. Suite 120

Wayzata, MN 55391

Phone: (800) 624-5102

Databases: ORACLE, IBM DB2, Informix, Teradata, IBM IMS, VSAM, Ingres, DEC

RDB, DEC RMS, IDSII, RFMII, UFAS

Bull Worldwide Information Systems

13430 N Black Canyon

Phoenix, AZ 85029

Phone: (602) 862-6062

Database: Cincom SUPRA Server

Networks: APPC, TCP/IP sockets (HP Arpa services and FTP--PC/TCP), named

pipes (for Banyan, LM, and Novell), DECnet/Pathworks, Native IPX/SPX

Cincom Systems

2300 Montana Ave

Cincinnati, OH 45211

Phone: (800) 662-2300

Database: DEC RMS

CNA Computer Systems Engineering, Inc.

P.O. Box 70248

Bellevue, WA 98007

Phone: (800) 235-4091

Database: CA-IDMS, CA-Datacom, CA-DB

Computer Associates International, Inc.

1 Computer Associates Plaza

Islandia, NY 11788-7000

Phone: (800) CALL CAI

Database: Tandem NonStop SQL, Tandem Enscribe

Cornerstone

Phone: (603) 595-7480

Databases: Integra-SQL

Coromandel

7015 Austin St. 3rd Floor

Forest Hills, NY 11375

Phone: (800) 535-3267

Databases: IBM DB2, VSAM, IBM IMS, Model 204, System 2000, FOCUS, CA-IDMS,

ORACLE, Ingres, DEC RMS, IBM SQL/DS, DEC RDB

Networks: SNA LU 6.2, DECnet/SNA, TCP/IP

CROSS ACCESS Corporation

2900 Gordon Ave. Suite 100

Santa Clara, CA 95051

Phone: (708) 684-2345

Database: Datafit DP4

Network: 1-tier

Datafit Limited

Format House, Imperial Road

London, England  SWG2AG

Phone: 44 480 454 604

Databases: DEC RDB, DEC RMS, VSAM, IBM DB2, ORACLE, SQL Server, MUMPS,

EDA/SQL

Networks: DEC TCP/IP, DECnet

Digital Equipment Corporation (DEC)

55 Northeastern Blv NUO1-1/B09

Nashua, NH 3062

Phone: (800) 344-4825 [(800) DIGITAL]

Databases: BASISplus, Objectivity/DB, GT.M, PROMIS, Custom drivers

Networks: SQL*Net, Dharma/SQL Network

Dharma Systems

15 Trafalgar Square

Nashua, NH 3063

Phone: (603) 886-1400

Databases: FirstSQL, dBASE

FFE Software

P.O. Box 1519

El Cerrito, CA 94530

Phone: (510) 232-6800

Databases: SESAM/SQL, UDS/SQL

GFS (Gesellschaft fur Informationssysteme)

HeilwigstraBe 116

D-20249 Hamburg, Germany

Phone: +49 40/48 06 32 0

Databases: SQLBase, DB2

Gupta Technologies

1040 Marsh Rd. Suite 210

Menlo Park, CA

Phone: (800) 44GUPTA

Databases: HP AllBase/SQL, HP IMAGE/SQL

Networks: RDA Sockets on TCP/IP, NetWare SPX/IPX

Hewlett-Packard (HP)

3000 Hanover St.

Palo Alto, CA 94304

Phone: (800) 637-7740

Database: IBM AS/400

International Business Machines Corporation (IBM)

Hwy 52 and 37th St NW

Rochester, MN 55901

Phone: Contact local sales office

Databases: IBM DB2, ORACLE, SQL Server, Informix, DEC RDB, IBM AS/400,

Ingres, NetWare SQL, IBM SQL/DS

Independence Technologies

42705 Lawrence Place

Fremont, CA 94538

Phone: (510) 438-2000

Databases: dBASE, dBASE5, Paradox (including version 5.0), Btrieve,

Clipper, IBM DB2, IBM DB2/2, , Microsoft Excel, HP, Allbase/SQL, HP

Image/SQL, Informix, Ingres, SQL Server, NetWare SQL, ORACLE, Paradox,

Progress, IBM AS/400, IBM SQL/DS, SQLBase, SQL Server, Teradata, Text, XDB,

DB2-DDCS/2

Intersolv (formerly Q+E software)

5540 Centerview Dr. Suite 324

Raleigh, NC 27606

Phone: (919)859-2220

Databases: IBM DB2, IBM IMS, VSAM, CA-IDMS, CA-Datacom, TOTAL, Teradata,

Adabas, ORACLE, SQL Server, Ingres, Informix, Cincom SUPRA Server, IBM

SQL/DS, DEC RMS, DEC RDB, MUMPS, Sharebase, C-ISAM, IBM DB2/2, SQL Server,

HP IMAGE/SQL, HP Allbase/SQL, and others

Networks: LU 2, LU 6.2 (via EDA/Link Gateway), NetBIOS, DECnet, LU 0 (DEC's

API)

Information Builders, Inc.

1250 Broadway

New York, NY 10001-3782

Phone: (800) 969-INFO

Database: Informix

Networks: Wollangong/Pathway TCP/IP, FTP TCP/IP, Windows sockets, SPX/IPX,

SunNFS

Informix Software, Inc.

4100 Bohannon Dr.

Menlo Park, CA 94025

Phone: (800) 331-1763.

Database: Various drivers

IQ Software

400 N Loop 1604 E #100

San Antonio, TX 78232

Phone: (210) 490-6684

Databases: PICK, UniData, Prime, Sequoia, General Automation, Reality,

Ultimate, Aloha Microsystems, ADDS/NCR, Fujitsu

Liberty Software Corporation

560-112 Mainland Street

Vancouver, BC  V6B 5LI

Phone: (604) 682-8293

Databases: Notes, Lotus 1-2-3

Lotus Development Corporation

55 Cambridge Pkwy

Cambridge, MA 2142

Phone: Contact local sales office

Database: MDBS IV

Micro Database Systems, Inc. (MDBS)

2 Executive Dr Box 6089

Lafayette, IN 47903

Phone: (800) 445-6327 (MDBS)

Databases: IBM DB2, IBM SQL/DS, Teradata, IBM SQL/400, VSAM, IBM IMS,

CA-IDMS, Adabas, ORACLE, SQL Server, IBM DB2/2

Networks: Tier 2 3270/LU 2 driver, ODS Networks

MDI

3035 Center Green Drive

Boulder, CO 80401

Phone: (800) 221-3634

Database: R:BASE

Network: Any Netbios compatabile

Microrim, Inc.

15395 SE 30th Pl

Bellevue, WA 98007

Phone: (800) 628-6990

Databases: IBM DB2

Must Software

101 Merritt 7

Norwalk, CT 6856

Phone: (800) 441-6878 (MUST)

Databases: IBM DB2, IBM IMS

Neon Systems

6464 Savoy Dr.

Houston, TX 77036

Phone: (713) 975-3563

Database: Objectivity/DB

Objectivity

800 El Camino Real

Menlo Park, CA 94025

Phone: (415) 688-0939

Databases: Progress, Informix, Unify, ORACLE, Ingres, SQL Server, SQLBase

Networks: TCP/IP, RS232, DECnet, SPX/IPX, ICL OSLAN

OpenLink Software

23D Thicket Road

Anerley, London, England SE20 8DB

Phone: (313) 642-1890

Database: ORACLE 7

Network: SQL*Net

Oracle Corporation

500 Oracle Boulevard

Redwood City, CA 94065

Phone: (800) 633-0583; (415) 506-7000

(Software kits for developing ODBC Drivers)

PageAhead Software Corp

2125 Western Avenue, Suite 301

Seattle, WA 98121

Phone: (800) 967-9671

Database: Model 204

Network: Novell NetWare 3.1

Praxis International

4 Cambridge Center

Cambridge, MA 2142

Phone: (617) 492-8860

Databases: Progress (DBMS version 7.0), ORACLE, DEC RDB, SQL Server, DEC

RMS, IBM

AS/400, C-ISAM, Object Store

Networks: TLI, Netbios, TCP/IP, SPX, Named Pipes, DEC Sockets (no OSI)

Progress Software

14 Oak Park

Bedford, MA 1730

Phone: (617) 280-4000

Database: Quadbase-SQL

Network: Any DOS compatible LAN

Quadbase Systems Inc.

790 Lucerne Drive Suite 51

Sunnyvale, CA 94086

Phone: (408) 738-6989

Databases: dBASE, Paradox, Custom Drivers

Quark Research

234 Kimberly Rd

Newington, CT 6111

Phone: (203) 666-3870

Database: Raima DBS Server 1.1

Networks: They will run over named pipes, TCP/IP sockets, IPX/SPX

Raima

1605 NW Sammamish Rd--Suite 200

Issaquah, WA 98027

Phone: (800) 327-2462

Database: Red Brick Warehouse

Red Brick Systems

485 Alberto Way

Los Gatos, CA 95032

Phone: (408) 399-3200

Database: DRDA Gateway

Rocket Software

161 Worcester

Farmingham, MA 1701

Database: SAS

SAS Institute

SAS Campus Drive

Cary, NC  27513

Phone: (919) 677-8000

Database: IBM AS/400

ShowCase Corporatioin

4909 Highway 52N

Rochester, MN 55901-3144

Phone: (800) 829-3555

Databases: DMS-1100, PCIOS, RDMS-1100

Standard Microsystems Corporation (SMC)

3445 Washington Drive, Suite 201

Eagan, MN  55122

Phone: (612) 452-9270

Database: Adabas

Software AG

8822 S Ridge Line Boulevard Suite 200

Highlands Ranch, CO 80126

Phone: (800) 423-2227

Databases: SQL Server, Omni-Gateway (DB2)

Networks: Named-pipes, IPX/SPX, TCP/IP, DECnet

Sybase, inc.

6475 Christie Ave

Emeryville, CA 94608

Phone: (800) 879-2273

Database: Tandem NonStop SQL

Networks: XNS (named pipes), TCP/IP via WinSock DLL

Tandem Computers Incorporated

19333 Valko Parkway

Cupertino, CA 95014-2599

Phone: (800) 482-6336

Databases: IBM DB2, IBM DB2/2, IBM DB2/6000, ORACLE, SQL Server, Informix,

Ingres, Progress, Interbase, IBM AS/400, ADABAS, Cincom SUPRA Server, DEC

RDB, IBM SQL/DS, IBM DB2/2

Techgnosis, Inc.

Five Burlington Woods Drive-Suite 202

Burlington, MA 1803

Phone: (617) 229-6100

Databases: CA-IDMS, IBM IMS, ADABAS, IBM DB2, VSAM, Sequential Files

Trinzic

404 Wyman Street

Waltham, MA 2254

Phone: (603) 427-0444

Database: UniSQL

UniSQL

9390 Research Blvd. Bldg 2 Suite 200

Austin, TX 78759

Phone: (800) 451-DBMS

Database: DEC RMS

Networks: DECnet, DEC TCP/IP

Vertisoft Research, inc.

2210 Makham Rd.

Scarborough, Ontario MIB 5V6

Phone: (416) 321-0933

Databases: Informix, ORACLE, Ingres, Interbase

Planned: SQL Server, Teradata

Networks: DECnet, TCP/IP, Serial (modems included)

Visionware

1020 Marsh Road, #220

Menlo Park, CA 94025-1080

Phone: 44 532 788858

Databases: IBM DB2, IBM DB/VM, IBM AS/400, IBM IMS

Networks: SNA (requires Walldata, IBM PC/AS400, or other clientside

emulation products, communicating via SNA Server, IBM's CM, NetWare for

SAA, and so on

Wall Data, Inc.

17769 NE 78th Place

Redmond, WA 98052

Phone: (206) 883-4777

Database: PACE

Wang Laboratories

One Industrial Ave. MS 014-89A

Lowell, MA 1853

Phone: Programmers Shop (800) 421-8006

Database: Watcom SQL

Networks: Netbios, IPX/SPX

Watcom International Corporation

415 Philip St.

Waterloo, ON N2L 3X2

Phone: (800) 265-4555

Database: White Cross Parallel RDBMS

White Cross Systems, Inc.

34 Waterside Park Cookham Road

Bracknell, Berkshire RG12 1RB

Phone: (310) 577-8188

Databases: XDB, IBM DB2, IBM AS/400

Network: Any NETBIOS supported network (requires XDB server)

XDB Systems

14700 Sweitzer Lane

Laurel, MD  20707

Phone: (301) 317-6800

KBCategory: kb3rdparty kbref

KBSubcategory: xlquery

Additional reference words: 5.00 1.00 developer phone 3rdparty 3pty

telephone isv phoneref third party programs open data base connectivity

6.00 officeinterop word6 w4wexcel


XL5: Error Opening Files with System 7.5 and MacLinkPlus

Article ID: Q121527

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for the Macintosh, version 5.0

 - Microsoft Excel for the Power Macintosh, version 5.0

 - Apple Macintosh System 7.5

--------------------------------------------------------------------

SYMPTOMS

========

On a Macintosh with System 7.5 and MacLinkPlus installed, you receive

the following error message when you open a Microsoft Excel version

5.0 file by double-clicking the file in Finder:

   File was not created with the Application Microsoft Excel

You are then asked to translate the file.

CAUSE

=====

If MacLinkPlus is installed, it is automatically linked to Macintosh

Easy Open, a control panel from Apple, included with System 7.5.

Macintosh Easy Open checks to see if the document that was opened

from the Finder has an application associated with it.

MacLinkPlus comes with System 7.5, both on floppy disks and CD-ROM.

The version of MacLinkPlus that comes with System 7.5 is 7.52.

This is not a problem when you open files created in other applications,

such as Microsoft Excel version 4.0 or Microsoft Project 3.0.

WORKAROUNDS

===========

To work around this problem, use any of the following methods.

Method 1: Turn Macintosh Easy Open off by doing the following

          a. From the Apple menu, choose Control Panels, and then choose

             Easy Open.

          b. For the Automatic Documentation Translation option, select

             Off.

          c. Close the Macintosh Easy Open dialog.

NOTE: If the above method does not work, drag the Easy Open file from the

Extensions folder to the Desktop and restart your Macintosh.

Method 2: Use MacLinkPlus for Easy Open 7.52pl. You can obtain this version

          by contacting DataViz technical support at (203) 268-0030. There

          is a $5 shipping and handling fee for this version.

Method 3: Use MacLinkPlus version 8.0 or higher.

Method 4: Turn off Macintosh EasyOpen via Extensions Manager.

MORE INFORMATION

================

Without Easy Open installed, whenever you double-click a file, your

Macintosh tries to locate an application with a matching "signature". If

there is one, the application is opened and attempts to open the file. If

there isn't a matching "signature," you receive an error message telling

you that the application could not be found, sometimes with an additional

option to open the file using TeachText.

With Easy Open installed, every time you double-click a file, Easy Open

searches certain resources located inside the application with a matching

"signature" (if there is one) as well as Easy Open's translation components

to insure that the application can, in fact, open that file.

Due to the sequence in which Easy Open searches, the combination of any

version of Easy Open with Microsoft Excel 5.0 and MacLinkPlus for Easy Open

version 7.5 (which is aware of Microsoft Excel 4.0 but not Microsoft Excel

5.0) causes Easy Open to think that Microsoft Excel 5.0 cannot open a

Microsoft Excel 5.0 document.

This is not a problem with any of these individual applications; it is a

problem with the way these components interact when they are not aware of

each other.

MacLinkPlus is manufactured by DataViz Corporation, a vendor independent of

Microsoft; we make no warranty, implied or otherwise, regarding this

product's performance or reliability.

KBCategory: kbenv kb3rdparty

KBSubcategory: xlmac

Additional reference words: 5.00 Mac Link Plus Data Viz DataViz MacLink "To

open the document, select..."


XL5: List of Help Topics in MAINXL.HLP File (Part 2 of 2)

Article ID: Q125231

----------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

----------------------------------------------------------------------

SUMMARY

=======

This article contains the topic numbers and descriptions for the topics

available in the MAINXL.HLP file. Topics 438-585 for Microsoft Excel 5.0

are different from those for 5.0c; therefore, these topics are listed under

separate headings. For information about topic IDs 1-437, please see the

following article(s) in the Microsoft Knowledge Base:

   ARTICLE-ID: Q125230

   TITLE     : "XL5: List of Help Topics in MAINXL.HLP File (Part 1 of 2)"

Note that topics 1-437 apply to Microsoft Excel version 5.0 AND Microsoft

Excel version 5.0c.

Using a Help Topic

------------------

You can use these topics in conjunction with dialog boxes that are equipped

with Help buttons; you can call them with the HELP() function in Microsoft

Excel 4.0; or, you can call them with the Application.Help line in a Visual

Basic, Applications Edition, macro. The following are examples of both

types of macros.

   Visual Basic code:

      Application.Help "MAINXL.HLP", 3

   Microsoft Excel 4.0 macro:

      =HELP("MAINXL.HLP!3")

Finding a Help Topic ID

-----------------------

To find the help topic ID numbers for a help file in Microsoft Excel, use

the following macro:

HELP_TOPICS

=FOR("Message",1,395)

=HELP("Mainxl.hlp!"&Message)

=SEND.KEYS("%EC+{END}+{DOWN}%C")

=FORMULA(Message,OFFSET(!A1,Message,0))

=PASTE(OFFSET(B1,Message,0))

=NEXT()

=RETURN()

MORE INFORMATION

================

Topic IDs 438-585 for Microsoft Excel version 5.0 only

------------------------------------------------------

Topic      Description

---------------------------------------------------------------------------

438        Cannot open pivot table source file '[filename]'.

439        Pivot table field name is not valid.

440        The source database must have at least one record.

441        Not all source records have been copied.

442        No item of this name exists in the pivot table. Rename '[current

           item name]' to '[proposed item name]'?

443        Cannot pivot a data field button that does not appear in the

           pivot table.

444        At least one item must be showing. Choose the Delete button to

           hide the field.

445        Too many items are hidden. Unhide some items to continue.

446        Too many items to create pivot table.

447        Cannot create a pivot table on a hidden sheet.

448        Cannot show or hide detail for this selection.

449        Cannot change this part of a pivot table.

450        Cannot edit a pivot table in group edit mode.

451        Cannot edit pivot table on protected sheet.

452        Cannot edit pivot table in data entry mode.

453        Cannot paste items into a different field.

454        Cannot paste items into a different group of items.

455        Replacement creating duplicate item or field name ignored.

456        Cannot enter a formula into a pivot table.

457        Cannot enter a null value as an item or field name in a pivot

           table.

458        Cannot delete this selection from the pivot table.

459        Cannot move subtotals or block totals.

460        Cannot edit subtotal, block total, or grand total names.

461        Cannot delete every item of '[field name]' field from the pivot

           table.

462        Cannot hide the (all) item of a page field.

463        Cannot delete the last item in a page field.

464        Cannot move a pivot table to a macro sheet.

465        You have not specified any source ranges for your pivot table.

           Type or select at least one range in the Ranges box before

           choosing Next or Finish.

466        Cannot show or hide detail for the data area.

467        Pivot table will not fit on sheet. Show as much as possible?

468        Cannot determine which pivot table field to sort by.

469        Cannot sort items in a page field.

470        Cannot create a pivot table on a macro sheet.

471        Cannot pivot data field button to a page orientation.

472        Cannot paste a link into a pivot table.

473        Cannot pivot. Pivot table does not contain this field.

474        '[Text]' is not an item of this field.

475        Not enough memory to completely display pivot table.

476        Number must be greater than zero.

477        Cannot group that selection.

478        Cannot ungroup that selection.

479        Ending value must be greater than starting value.

480        Pivot table is not valid.

481        Specify a data field.

482        You have entered an invalid source range for your pivot table.

           Enter a valid range in the Ranges box and then choose Add.

483        A pivot table with that name already exists on the destination

           sheet.

484        Pivot table name is not valid.

485        Pivot table field name already exists.

486        Replace crosstab table with PivotTable?

487        Replace crosstab table with PivotTable, ignoring criteria

           range?

488        Unable to obtain PivotTable data from disk.

489        Pivot table was changed during Refresh Data operation.

490        Problems obtaining Microsoft Query data.

491        No data source specified.

492        Problems obtaining data.

493        Pivot table saved without underlying data. Use the Refresh Data

           command to update the pivot table.

494        Data will be saved with other pivot tables using the same source

           data as this pivot table.

495        Data will not be saved with other pivot tables using the same

           source data as this pivot table.

496        Copy '[add-in]' to Microsoft Excel Add-in library?

497        Unable to copy add-in to library.

498        '[Add-in name]' is not a valid add-in.

499        Cannot find add-in '[add-in]'. Delete from list?

500        Value must be greater than zero..

501        Value must be greater than or equal to zero.

502        Value must be between zero and 0.5.

503        Polynomial order must be an integer from 2 through 6.

504        Moving Average must have a period that is greater than one and

           less than the number of points in the source data series.

505        Some trendlines cannot be calculated from data containing

           negative or zero values.

506        The name '[name]' is unknown. Specify a valid name.

507        '[Document]' has a routing slip.  Route now to '[name]'?

508        General mail failure. Quit Microsoft Excel, restart the mail

           system, and try again.

509        Your mail system does not support certain services needed for

           document routing.

510        Too many mail sessions. Quit other mail sessions and try again.

511        Too many recipients specified.  Route the document several times

           to smaller groups of recipients.

512        Message too long for your mail system. Shorten the message and

           try again.

513        Cannot send status tracking message.

514        Too many recipients specified. Send the document several times

           to smaller groups of recipients.

515        Unknown recipient name found in the recipient list.  Use a valid

           name and try again.

516        Ambiguous recipient name found in the recipient list.  Use a

           valid name and try again.

517        You must exit Windows and load SHARE.EXE in order to run

           Microsoft Excel.

518        Microsoft Excel cannot display the Network dialog box.

519        An error occurred while Microsoft Excel was attempting to use

           the system Network dialog box.

520        The graphics filter cannot convert the picture file

           '[filename]'.

521        Microsoft Excel cannot find the necessary graphics filter.

522        The name '[filename]' is a reserved device name.  Use a

           different filename.

523        Number is not valid.

524        Text is not valid.

525        Logical value is not valid.

526        Reference is not valid.

527        Error value is not valid.

528        Type is not valid.

529        Array value is not valid.

530        An error occurred initializing the VBA libraries

531        One of your object libraries (|) is missing or damaged.

532        '[Object]' does not have '[property name]' property

533        '[Object]' does not have '[method name]' method

534        Missing required argument '[argument]'

535        '[Method name]' method of '[object]' class failed

536        Unable to set the '[property name]' property of the '[object]'

           class

537        Unable to get the '[property name]' property of the '[object]'

           class

538        Cannot run Visual Basic macro because of a syntax error.

539        Workbook is already protected.

540        Invalid number of arguments.

541        An Excel lexicon '[filename]' is missing or damaged.

542        VBA Lexicon is wrong version.

543        VBA Lexicon is wrong type (ship vs debug)

544        You cannot edit when calculating a user defined function.

545        Not enough stack space to perform command.

546        '[Object]' does not have writeable '[property name]' property.

547        '[Object]' does not have readable '[property name]' property

548        No timer driver installed

549        No data was selected to parse.

550        The Trace Precedents command requires that the active cell

           contain a formula.

551        The Trace Dependents command found no formulas that refer to the

           active cell.

552        The Trace Error command requires that the active cell contain an

           error value.

553        The Remove All Arrows command found no tracer arrows to remove.

554        The Error Tracer has encountered a branch point. Double-click

           the branch you want to follow and choose Trace Error again.

555        The Error Tracer encountered existing arrows or a circular

           reference. Delete all tracer arrows or resolve the circular

           reference, and then choose Trace Error again.

556        OLE Objects cannot be active while debugging.  Your code may

           execute differently in the debug window because the currently

           active OLE Object will be automatically deactivated.

557        Cannot edit chart objects while Microsoft Excel 5.0 is in place

           editing.

558        Document saved as '[filename]'. Cannot rename to '[filename]'.

           You must close this document.

559        Font size must be between 1 and 409.

560        Cannot find '[linked document]'.

561        Cannot open chart created in Microsoft Excel for the Macintosh

           version 1.X.

562        Cannot open normal document created in Microsoft Excel for the

           Macintosh.

563        No Help Topic for this ID

564        Remote data not accessible. Start application '[application]'?

565        Existing remote links will be terminated.

566        Current printer is unavailable. Select another printer.

567        There are no printers installed. Use the Printers option in

           Control Panel to install a printer.

568        Cannot run tutorial with Microsoft Windows for Pen Computing.

569        The header or footer cannot be longer than 255 characters.

           Delete some text, or make the  formatting less complex.

570        CBTLIB4.DLL not found. Cannot run tutorial.

571        EXCELCBT.CBT not found. Cannot run tutorial.

572        Lesson file(s) not found. Cannot run tutorial.

573        EXCELCBT directory not found.

574        Cannot run tutorial. There may be another instance of tutorial

           active.

575        No Help Topic for this ID

576        Too many files to mail.

577        Cannot load the mail service. Check your mail installation.

578        Mail system failure. Check your mail installation.

579        The picture is too large and will be truncated.

580        File is not a valid wave file.

581        Recording buffer is full.

582        Cannot load wave file.

583        Cannot open waveform output device.

584        Cannot open waveform input device.

585        Cannot play Macintosh sounds with Windows.

Topic IDs for Microsoft Excel version 5.0c only

-----------------------------------------------

Topic      Description

-----      ----------------------------------------------------------------

438        Scenario information will be lost.

439        Cannot open pivot table source file '[filename]'.

440        Pivot table field name is not valid.

441        The source database must have at least one record.

442        Not all source records have been copied.

443        No item of this name exists in the pivot table. Rename '[current

           item name]' to '[proposed item name]'?

444        Cannot pivot a data field button that does not appear in the

           pivot table.

445        At least one item must be showing. Choose the Delete button to

           hide the field.

446        Too many items are hidden. Unhide some items to continue.

447        Too many items to create pivot table.

448        Cannot create a pivot table on a hidden sheet.

449        Cannot show or hide detail for this selection.

450        Cannot change this part of a pivot table.

451        Cannot edit a pivot table in group edit mode.

452        Cannot edit pivot table on protected sheet.

453        Cannot edit pivot table in data entry mode.

454        Cannot paste items into a different field.

455        Cannot paste items into a different group of items.

456        Replacement creating duplicate item or field name ignored.

457        Cannot enter a formula into a pivot table.

458        Cannot enter a null value as an item or field name in a pivot

           table.

459        Cannot delete this selection from the pivot table.

460        Cannot move subtotals or block totals.

461        Cannot edit subtotal, block total, or grand total names.

462        Cannot delete every item of '[field name]' field from the pivot

           table.

463        Cannot hide the (all) item of a page field.

464        Cannot delete the last item in a page field.

465        Cannot move a pivot table to a macro sheet.

466        You have not specified any source ranges for your pivot table.

           Type or select at least one range in the Ranges box before

           choosing Next or Finish.

467        Cannot show or hide detail for the data area.

468        Pivot table will not fit on sheet. Show as much as possible?

469        Cannot determine which pivot table field to sort by.

470        Cannot sort items in a page field.

471        Cannot create a pivot table on a macro sheet.

472        Cannot pivot data field button to a page orientation.

473        Cannot paste a link into a pivot table.

474        Cannot pivot. Pivot table does not contain this field.

475        '[Text]' is not an item of this field.

476        Not enough memory to completely display pivot table.

477        Number must be greater than zero.

478        Cannot group that selection.

479        Cannot ungroup that selection.

480        Ending value must be greater than starting value.

481        Pivot table is not valid.

482        Specify a data field.

483        You have entered an invalid source range for your pivot table.

           Enter a valid range in the Ranges box and then choose Add.

484        A pivot table with that name already exists on the destination

           sheet.

485        Pivot table name is not valid.

486        Pivot table field name already exists.

487        Replace crosstab table with pivot table?

488        Replace crosstab table with pivot table, ignoring criteria

           range?

489        Unable to obtain PivotTable data from disk.

490        Pivot table was changed during Refresh Data operation.

491        Problems obtaining Microsoft Query data.

492        No data source specified.

493        Problems obtaining data.

494        Pivot table saved without underlying data. Use the Refresh Data

           command to update the pivot table.

495        Data will be saved with other pivot tables using the same source

           data as this pivot table.

496        Data will not be saved with other pivot tables using the same

           source data as this pivot table.

497        Copy '[add-in]' to Microsoft Excel Add-in library?

498        Unable to copy add-in to library.

499        '[Add-in name]' is not a valid add-in.

500        Cannot find add-in '[add-in]'. Delete from list?

501        Value must be greater than zero..

502        Value must be greater than or equal to zero.

503        Value must be between zero and 0.5.

504        Polynomial order must be an integer from 2 through 6.

505        Moving Average must have a period that is greater than one and

           less than the number of points in the source data series.

506        Some trendlines cannot be calculated from data containing

           negative or zero values.

507        The name '[name]' is unknown. Specify a valid name.

508        '[Document]' has a routing slip.  Route now to '[name]'?

509        General mail failure. Quit Microsoft Excel, restart the mail

           system, and try again.

510        Your mail system does not support certain services needed for

           document routing.

511        Too many mail sessions. Quit other mail sessions and try again.

512        Too many recipients specified.  Route the document several times

           to smaller groups of recipients.

513        Message too long for your mail system. Shorten the message and

           try again.

514        Cannot send status tracking message.

515        Too many recipients specified. Send the document several times

           to smaller groups of recipients.

516        Unknown recipient name found in the recipient list.  Use a valid

           name and try again.

517        Ambiguous recipient name found in the recipient list.  Use a

           valid name and try again.

518        You must exit Windows and load SHARE.EXE in order to run

           Microsoft Excel.

519        Microsoft Excel cannot display the Network dialog box.

520        An error occurred while Microsoft Excel was attempting to use

           the system Network dialog box.

521        The graphics filter cannot convert the picture file

           '[filename]'.

522        Microsoft Excel cannot find the necessary graphics filter.

523        The name '[filename]' is a reserved device name.  Use a

           different filename.

524        Number is not valid.

525        Text is not valid.

526        Logical value is not valid.

527        Reference is not valid.

528        Error value is not valid.

529        Type is not valid.

530        Array value is not valid.

531        An error occurred initializing the VBA libraries [filename]

532        One of your object libraries (|) is missing or damaged.

533        '[Object]' does not have '[property name]' property

534        '[Object]' does not have '[method name]' method

535        Missing required argument '[argument]'

536        '[Method name]' method of '[object]' class failed

537        Unable to set the '[property name]' property of the '[object]'

           class

538        Unable to get the '[property name]' property of the '[object]'

           class

539        Cannot run Visual Basic macro because of a syntax error.

540        Workbook is already protected.

541        Invalid number of arguments.

542        An Excel lexicon '[filename]' is missing or damaged.

543        VBA Lexicon is wrong version.

544        VBA Lexicon is wrong type (ship vs debug)

545        You cannot edit when calculating a user defined function.

546        Not enough stack space to perform command.

547        '[Object]' does not have writeable '[property name]' property.

548        '[Object]' does not have readable '[property name]' property

549        The Timer driver is not installed on this system. Microsoft

           Excel cannot run without the Timer driver. Choose the help

           button for more information.

550        No data was selected to parse.

551        The Trace Precedents command requires that the active cell

           contain a formula.

552        The Trace Dependents command found no formulas that refer to the

           active cell.

553        The Trace Error command requires that the active cell contain an

           error value.

554        The Remove All Arrows command found no tracer arrows to remove.

555        The Error Tracer has encountered a branch point. Double-click

           the branch you want to follow and choose Trace Error again.

556        The Error Tracer encountered existing arrows or a circular

           reference. Delete all tracer arrows or resolve the circular

           reference, and then choose Trace Error again.

557        OLE Objects cannot be active while debugging.  Your code may

           execute differently in the debug window because the currently

           active OLE Object will be automatically deactivated.

558        Cannot edit chart objects while Microsoft Excel 5.0 is inplace

           editing.

559        Document saved as '[filename]'. Cannot rename to '[filename]'.

           You must close this document.

560        Font size must be between 1 and 409.

561        Cannot find '[linked document]'. Copy from:

562        Cannot open chart created in Microsoft Excel for the Macintosh

           version 1.X.

563        Cannot open normal document created in Microsoft Excel for the

           Macintosh version 1.X.

564        No Help Topic for this ID

565        Cannot open normal document created in Microsoft Excel for the

           Macintosh version 1.X.

566        Existing remote links will be terminated.

567        Current printer is unavailable. Select another printer.

568        There are no printers installed. Use the Printers option in

           Control Panel to install a printer.

569        Cannot run tutorial with Microsoft Windows for Pen Computing.

570        The header or footer cannot be longer than 255 characters.

           Delete some text, or make the formatting less complex.

571        CBTLIB4.DLL not found. Cannot run tutorial.

572        EXCELCBT.CBT not found. Cannot run tutorial.

573        Lesson file(s) not found. Cannot run tutorial.

574        EXCELCBT directory not found.

575        Cannot run tutorial. There may be another instance of tutorial

           active.

576        No Help Topic for this ID

577        Cannot run tutorial. There may be another instance of tutorial

           active.

578        Cannot load the mail service. Check your mail installation.

579        Mail system failure. Check your mail installation.

580        The picture is too large and will be truncated.

581        File is not a valid wave file.

582        Recording buffer is full.

583        Cannot load wave file.

584        Cannot open waveform output device.

585        Cannot open waveform input device.

KBCategory: kbref kbother

KBSubcategory:

Additional reference words: 5.0 5.00 5.0c 5.00c


Excel: Macro to Add Labels to Points in an XY (Scatter) Chart

Article ID: Q118485

----------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 4.0, 4.0a, 5.0

 - Microsoft Excel for the Macintosh, versions 4.0, 5.0

----------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel, although there is no built-in way to automatically

attach text labels to data points in an xy (scatter) chart, you can create

a macro that will do this. This article contains both a Visual Basic,

Applications Edition, subroutine and a Microsoft Excel 4.0 macro that can

perform this task.

MORE INFORMATION

================

The examples of code below assume that your data and associated labels are

arranged on your worksheet in the following format:

 - The first column contains the data labels

 - The second column contains the x values for the xy (scatter) chart

 - The third column contains the y values for the xy (scatter) chart

Example

-------

   A1: Labels       B1: X Values   C1: Y Values

   A2: DataPoint1   B2: 2          C2: 5

   A3: DataPoint2   B3: 9          C3: 7

   A4: DataPoint3   B4: 5          C4: 3

   A5: DataPoint4   B5: 4          C5: 8

   A6: DataPoint5   B6: 1          C6: 4

Your table should not contain empty columns: for example, the column

containing the data labels should not be separated from the column

containing the x values. The labels and values must be laid out EXACTLY in

the format shown above, although the upper-left cell does not necessarily

need to be cell A1.

To test these macros, create a chart using the above values and follow the

appropriate procedure below for your version of Microsoft Excel.

IMPORTANT: Note these macros will not work when the active chart is

embedded in a worksheet: the chart must be in its own window (versions 4.0,

5.0) or in its own sheet tab (version 5.0). Also, the macros will not

function if the chart is using "assumed" x values. To tell if an xy

(scatter) chart is using an "assumed" x value, do the following:

1. Select one of the series in the xy (scatter) chart.

2. Look at the =SERIES() formula in the formula bar. The second item (the

   item following the first comma) inside the parentheses refers to the

   range of x values on the worksheet.

   If this item is blank, then the chart is using "assumed" x values,

   and the macro will not function properly.

Microsoft Excel 5.0 Example

===========================

1. On the worksheet, select the range B1:C6.

2. Press the F11 key.

3. In the ChartWizard--Step 1 of 5, select the Next button.

4. In the ChartWizard--Step 2 of 5, select XY (Scatter) and then

   choose the Next button.

5. In the ChartWizard--Step 3 of 5, select the Next button.

6. In the ChartWizard--Step 4 of 5, make sure the following settings

   are set and then choose the Next button:

      Data Series in: Columns

      Use First 1 Column(s) for X Data

      Use First 1 Row(s) for Legend Text

7. In the ChartWizard--Step 5 of 5, choose the Finish button.

Visual Basic Code Example

-------------------------

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of merchantability

and/or fitness for a particular purpose. This Visual Basic procedure

is provided 'as is' and Microsoft does not guarantee that it can be

used in all situations. Microsoft does not support modifications of

this procedure to suit customer requirements for a particular purpose.

Note that a line that is preceded by an apostrophe introduces a

comment in the code--comments are provided to explain what the code is

doing at a particular point in the procedure. Note also that an

underscore character (_) indicates that code continues from one line

to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This

Manual" section in the "Document Conventions" section of the "Visual

Basic User's Guide."

Enter this subroutine into a Visual Basic module:

'-----------------------------------------------------------------------

Option Explicit

Sub AttachLabelsToPoints()

   'Dimension variables.

   Dim Counter As Integer, ChartName As Variant

   Dim SourceWorksheet As Variant, xVals As Variant, xCell As Variant

   Dim xLabel As Variant

   'Disable screen updating while the subroutine runs.

   Application.ScreenUpdating = False

   'Store the name of the active chart in "ChartName".

   ChartName = ActiveChart.Name

   'Store the definition of the first series in "xVals".

   xVals = ActiveChart.SeriesCollection(1).Formula

   'These lines extract the name of the source worksheet from xVals.

   SourceWorksheet = Left(xVals, InStr(1, xVals, "!") - 1)

   SourceWorksheet = Right(SourceWorksheet, Len(SourceWorksheet) - _

      InStr(1, SourceWorksheet, "("))

   If Left(SourceWorksheet, 1) = "," Then

      SourceWorksheet = Right(SourceWorksheet, Len(SourceWorksheet) - 1)

   End If

   'Replace the actual source worksheet name with "xlSheet" so that the

   'searches that follow will work correctly if the worksheet name

   'contains commas.

   xVals = Application.Substitute(xVals, SourceWorksheet, "xlSheet")

   'More processing of the xVals name.

   xVals = Right(xVals, Len(xVals) - InStr(1, xVals, ","))

   'If the chart is using "assumed" x-values...

   If Left(xVals, 1) = "," Then

      '...show an alert message. NOTE: the following two lines should be

      'entered as a single line.

      MsgBox "This xy (scatter) chart is using assumed x values." & _

         " The macro cannot continue."

      'Exit the subroutine if "assumed" x values are in use.

      Exit Sub

   End If

   'More processing of the xVals name.

   xVals = Left(xVals, InStr(1, xVals, ",") - 1)

   'Put the original source worksheet name back into xVals, replacing

   '"xlSheet".

   xVals = Application.Substitute(xVals, "xlSheet", SourceWorksheet)

   'Initialize a counter.

   Counter = 1

   'For each cell in the range xVals...

   For Each xCell In Range(xVals)

      'Get the value of the label next to the current x-value.

      xLabel = xCell.Offset(0, -1).Value

      'Attach a label to the current data point in the chart. Note:

      'enter the following two lines as a single line.

      ActiveChart.SeriesCollection(1).Points(Counter).HasDataLabel = _

         True

      'Put the text ("DataPoint1", for example) into the attached label.

      'Note: enter the following two lines as a single line.

      ActiveChart.SeriesCollection(1).Points(Counter).DataLabel.Text = _

         xLabel

      'Increment the counter.

      Counter = Counter + 1

   Next xCell                            'loop until all done

   'Make sure nothing in the chart is selected.

   Application.ExecuteExcel4Macro "SELECT("""")"

End Sub

'-----------------------------------------------------------------------

To use the subroutine, activate the chart sheet, choose Macro from

the Tools menu, and run the AttachLabelsToPoints subroutine.

Microsoft Excel 4.x Example

===========================

1. On the worksheet, select the range B1:C6.

2. Press the F11 key.

3. In the New Chart dialog box, select X-Values for XY-Chart, and choose

   OK.

Microsoft Excel 4.0 Macro Example

---------------------------------

Microsoft provides macro examples for illustration only, without warranty

either expressed or implied, including but not limited to the implied

warranties of merchantability and/or fitness for a particular purpose. This

macro is provided 'as is' and Microsoft does not guarantee that the

following code can be used in all situations. Microsoft does not support

modifications of the code to suit customer requirements for a particular

purpose.

NOTE: This macro will run in both Microsoft Excel version 4.0 and Microsoft

Excel version 5.0.

1. On a new Microsoft Excel 4.0 macro sheet, enter the following code:

   A1:  XLMAttachLabelsToPoints

   A2:  =ECHO(FALSE)

   A3:  ChartName=GET.DOCUMENT(1)

   A4:  xVals=GET.FORMULA("S1")

   A5:  SourceWorksheet=LEFT(xVals,SEARCH("!",xVals,1)-1)

   A6:  SourceWorksheet=RIGHT(SourceWorksheet,LEN(SourceWorksheet)-

           SEARCH("(",SourceWorksheet,1))

   A7:  =IF(LEFT(SourceWorksheet,1)=",")

   A8:  SourceWorksheet=RIGHT(SourceWorksheet,LEN(SourceWorksheet)-1)

   A9:  =END.IF()

   A10: xVals=SUBSTITUTE(xVals,SourceWorksheet,"xlSheet")

   A11: xVals=RIGHT(xVals,LEN(xVals)-SEARCH(",",xVals,1))

   A12: =IF(LEFT(xVals,1)=",")

   A13: =ALERT("This Xy (scatter) chart is using assumed X values. The

         macro cannot continue.")

   A14: =HALT()

   A15: =END.IF()

   A16: xVals=LEFT(xVals,SEARCH(",",xVals,1)-1)

   A17: xVals=SUBSTITUTE(xVals,"xlSheet",SourceWorksheet)

   A18: xVals=TEXTREF(xVals)

   A19: Counter=1

   A20: =FOR.CELL("CurrentCell",xVals)

   A21: xLabel=OFFSET(CurrentCell,0,-1,1,1)

   A22: =ATTACH.TEXT(4,1,Counter)

   A23: =SELECT("Text S1P"&Counter)

   A24: =FORMULA(xLabel)

   A25: Counter=Counter+1

   A26: =NEXT()

   A27: =SELECT("")

   A28: =RETURN()

   Explanation of Macro Code

   -------------------------

   A2:       Disables screen updating while the macro runs.

   A3:       Stores the name of the active chart in the name ChartName.

   A4:       Stores the definition of the first series in the chart in the

             name XVals.

   A5-A9:    These lines determine the name of the worksheet from which the

             chart was created and store the name as SourceWorksheet.

   A10:      Substitutes "xlSheet" for the name of the worksheet contained

             in the name XVals. This is done in case the worksheet name

             contains commas (this step allows the commands in A11 and A16

             to function correctly).

   A11, A16: These lines extract the cell range used to create the chart

             ($B$2:$B$6, for example).

   A12-A15:  These lines check to see if the chart is using "assumed"

             x values. If so, an alert message is displayed and the macro

             is terminated. If your data is laid out in the correct manner

             (as shown above), the macro should pass through these lines

             without displaying the alert message.

   A17:      Substitutes SourceWorksheet back into xVals in place of

             "xlSheet".

   A18:      Converts xVals into a proper text reference.

   A19:      Initializes a counter.

   A20:      For each cell in the range xVals (in the example,

             $B$2:$B$6)...

   A21:      Gets the value in the cell to the left of the x value.

   A22:      Attaches text to the current data point in the chart.

   A23:      Selects the attached text.

   A24:      Puts the text of the label into the attached text.

   A25:      Increments the counter.

   A26:      Continues the loop until all labels have been processed.

   A27:      Clears anything in the chart.

   A28:      Ends the macro.

2. Select cell A1.

3. In Microsoft Excel 5.0, from the Insert menu, choose Name, and then

   choose Define. In Microsoft Excel version 4.0, from the Formula menu,

   choose Define Name.

4. Select the Command option button.

5. Choose OK to accept the change.

The macro is now defined and may be run by choosing Run from the

Macro menu (version 4.0) or Macro from the Tools menu. Make sure the

chart sheet is active when you run the macro.

KBCategory: kbprg

KBSubcategory:

Additional reference words: 4.00 4.00a 5.00 X-Y


XL5: Using Add-in Functions in Visual Basic Modules

Article ID: Q111726

----------------------------------------------------------------------

The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

----------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel version 5.0, if you attempt to add .XLA files to

references by choosing the References command from the Tools menu, you may

receive the error message "Invalid Data Format".

CAUSE

=====

You receive this error message if you attempt to add a reference that does

not contain a Visual Basic module. If an add-in contains only Excel 4.0

macros (such as ANALYSIS.XLA), it cannot be added as a reference.

WORKAROUNDS

===========

If you want to use a Microsoft Excel version 4.0 macro function that is

contained in a version 4.0 add-in (such as the Analysis ToolPak) in a

Visual Basic procedure, do either of the following:

 - Use the Application.ExecuteExcel4Macro("string") method. The arguments

   for this method are the name and arguments of an Excel 4.0 macro

   function (without the equal sign).

   -or-

 - If the function you want to use is included in a version 5.0 add-in

   (such as the Analysis ToolPak - VBA), either choose the References

   command from the Tools menu while you are in the Visual Basic module or

   add the add-in that contains the functions.

MORE INFORMATION

================

The following examples show you how to use the two methods described above.

These examples demonstrate how to create a macro that displays the ANOVA

dialog box (an Analysis ToolPak macro).

Application.ExecuteExcel4Macro("string") Method

-----------------------------------------------

In order to run this macro, the version 4.0 add-in must be installed. To

install an add-in, choose Add-Ins from the Tools menu.

 - To use the function in the add-in, enter the following commands in a new

   module:

      Sub AnovaMacro1()

         Application.ExecuteExcel4Macro("ANOVA1?()")

      End Sub

Choosing the References Command from the Tools Menu

---------------------------------------------------

In order to run this macro, the Visual Basic version of the Analysis

ToolPak must be among the add-ins available (to do this choose

Add-Ins from the Tools menu).

1. In a new module, choose References from the Tools menu.

2. Choose the Browse button. Select the file ATPVBAEN.XLA, which is

   located in the EXCEL\LIBRARY\ANALYSIS directory, and then choose the OK

   button.

3. ATPVBAEN.XLA will now be displayed in the Available References list

   and its check box will be selected.

   Before you run the AnovaMacro2 macro, verify that the check box next to

   ATPVBAEN.XLA is selected

4. Enter the following code in the module:

     Sub AnovaMacro2()

        Anova1Q

     End Sub

NOTE: When you use the second method, you use the same syntax as you would

in a Microsoft Excel 4.0-style macro, with one exception: instead of a

question mark, add a Q to the end of the name of the macro function.

REFERENCES

==========

For more information about working with Microsoft Excel 4.o macro functions

in Microsoft Excel 5.0, choose Reference Information in the Help Contents

window, and then choose Microsoft Excel Macro Functions Contents. In the

Microsoft Excel Macro Functions Contents window, choose Visual Basic

Equivalents for Functions and Commands and then choose More About

Converting Microsoft Excel Version 4.0 Macros To Visual Basic procedures.

KBCategory: kbtools

KBSubcategory:

Additional reference words: 5.00 add in Addins libraries


XL5: Determining which Items Are Selected in a List Box

Article ID: Q111564

----------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

 - Microsoft Excel for the Macintosh, version 5.0

----------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel version 5.0, you can determine which items in a multi

selection list box are selected by using the Selected property of the list

box. This article contains an example of how this can be done with a Visual

Basic subroutine.

MORE INFORMATION

================

In custom dialog boxes, multi selection list boxes allow you to choose

any number of items from a list. For example, if a list contains

Alpha, Bravo, and Charlie, you can select any, none, or all of

those items.

To determine which items are selected, you can use the Selected property of

the list box. The Selected property of a multi selection list box is an

array of values: each value is either True, if the item is selected, or

False, if the item is not selected. For example, if the list contains 1, 2,

3, and 4, and 2 and 3 are selected, the Selected property would be the

following array:

   False, True, True, False

Because the first item (1) is not selected, the second and third items (2

and 3) are selected, and the fourth item (4) is not selected.

An example of how to read the Selected array in a subroutine is shown

below.

Visual Basic Code Example

-------------------------

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of merchantability

and/or fitness for a particular purpose. This Visual Basic procedure

is provided 'as is' and Microsoft does not guarantee that it can be

used in all situations. Microsoft does not support modifications of

this procedure to suit customer requirements for a particular purpose.

Note that a line that is preceded by an apostrophe introduces a

comment in the code--comments are provided to explain what the code is

doing at a particular point in the procedure. Note also that an

underscore character (_) indicates that code continues from one line

to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This

Manual" section in the "Document Conventions" section of the "Visual

Basic User's Guide."

1. In a new workbook, insert a new worksheet (Sheet1), a dialog sheet

   (Dialog1), and a Visual Basic module (Module1).

2. In the worksheet, enter the following values:

      A1: Alpha

      A2: Bravo

      A3: Charlie

      A4: Delta

      A5: Echo

      A6: Foxtrot

      A7: Golf

      A8: Hotel

3. In the dialog sheet, add an OK button that is set to dismiss the dialog

   box.

4. In the dialog box, do the following to add a multi selection list box

   ("List1") that is linked to Sheet1!$A$1:$A$8.

   a. To create a list box in the dialog sheet, use the List Box button.

   b. Select the list box.

   c. In the name box, type "List1" (without the quotation marks) and press

      the ENTER key.

   d. From the Format menu, choose Object.

   e. Select the Control tab.

   f. In the Input Range box, type "Sheet1!$A$1:$A$8" (without the

      quotation marks).

   g. Under Selection Type, select the Multi option.

   h. Choose OK to accept the change.

   The list box is now linked to Sheet1!$A$1:$A$8 and is a multi selection

   list box.

5. In Module1, enter the following subroutine:

   '----------------------------------------------------------------------

   Sub ShowSelectedItems()

      'Dimension some variables.

      Dim LTemp As Variant

      Dim LItem As Variant

      Dim Counter As Integer

      Dim CurList as ListBox

      'Show the dialog box.

      DialogSheets("Dialog1").Show

      'Set an object name for easy referencing of the list box.

      Set CurList = DialogSheets("Dialog1").ListBoxes("List1")

      'Put the Selected array into the variable LTemp.

      LTemp = CurList.Selected

      'Initialize the Counter variable.

      Counter = 1

      'Iterate through the loop once for each item in the array (which is

      'the same as iterating once for each item in the list box).

      For Each LItem In LTemp

         'If the value of the current item is True...

         If LItem = True Then

            '...show a message box indicating the item is selected.

            'CurList.List(Counter) gets us the value of the selected item

            '("Alpha", "Bravo", etc.).

            MsgBox CurList.List(Counter) & " is selected."

         'Otherwise...

         Else

            '...indicate that it isn't selected.

            MsgBox CurList.List(Counter) & " is NOT selected."

         End If

         'Increment the Counter so we can get the value of the next

         'selected item.

         Counter = Counter + 1

      Next                                  'repeat until all done

   End Sub

   '----------------------------------------------------------------------

6. To run the subroutine, position the insertion point in the line that

   reads "Sub ShowSelectedItems()" and either press F5 or choose Start from

   the Run menu.

7. When the dialog box is displayed, select one or more items in the list

   box, and choose the OK button. A message box will be displayed for each

   item in the list, indicating whether it is selected or not.

Note that you can remove the MsgBox functions and substitute any functions

that perform a desired task using the list items. For example, you might

want to insert the current list item into a cell on a worksheet. To do

this, you could use

   Sheets("Sheet1").Cells(10, 10).Value = CurList.List(Counter)

to put the current list item into cell J10 on Sheet1.

KBCategory: kbprg kbcode

KBSubcategory:

Additional reference words: 5.00 howto multiple selection dropdown VBApp


XL5: Removing the Control Menu and Application Window Controls

Article ID: Q117855

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel, you can create a Visual Basic, Applications Edition,

macro to disable or remove the application window and worksheet controls.

MORE INFORMATION

================

You can use the following sample macro in conjunction with workbook

protection, full-screen display, and a custom menu bar to remove the window

controls on a Microsoft Excel workbook. The macro limits a user's ability

to control the window by removing the maximize and minimize buttons and the

window's control menu box, and by disabling the application switching

keystrokes.

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided 'as is' and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose. Note that a line that is preceded by

an apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the procedure. Note

also that an underscore character (_) indicates that code continues from

one line to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This Manual"

section in the "Document Conventions" section of the "Visual Basic User's

Guide."

Macro Example

-------------

'Macro To Protect the Workbook and Limit User Control

'

Sub WbProtect()

     'Trap for the ALT+F4 (close application) key combination

     Application.OnKey "%{f4}", ""

     'Trap for the CTRL+ESC, ALT+TAB and ALT+ESC

     '(application switching) key combinations

     Application.OnKey "^{esc}", ""

     Application.OnKey "%{esc}", ""

     Application.OnKey "%{tab}", ""

     'Turn on error handling in case the Menu bar already exists

     On Error Resume Next

     'Make sure Microsoft Excel is Maximized

     Application.WindowState = xlMaximized

     'Make sure the workbook is maximized

     ActiveWindow.WindowState = xlMaximized

     'Protect the window

     ActiveWorkbook.Protect Structure:=True, Windows:=True

     With ActiveWindow

          .DisplayHorizontalScrollBar = False

          .DisplayVerticalScrollBar = False

          .DisplayWorkbookTabs = False

          .DisplayHeadings = False

     End With

     'Set the application to full screen view

     Application.DisplayFullScreen = True

     'Create a new blank menubar

     MenuBars.Add "mybar"

     'Show the blank menu bar

     MenuBars("mybar").Activate

End Sub

'-------------------------------------------------------------------

'Macro to Restore the Control Menu

'

Sub WbUnprotect()

'Enable the ALT+F4, CTRL+ESC, ALT+ESC, and ALT+TAB keys.

     Application.OnKey "%{f4}"

     Application.OnKey "^{esc}"

     Application.OnKey "%{esc}"

     Application.OnKey "%{tab}"

     On Error Resume Next

     'Restore normal menu if worksheet is active

     MenuBars(xlWorksheet).Activate

     'Restore normal menu if modulesheet is active

     MenuBars(xlModule).Activate

     'Turn off full screen display

     Application.DisplayFullScreen = False

    'Restore window options

    With ActiveWindow

       .DisplayHorizontalScrollBar = True

       .DisplayVerticalScrollBar = True

       .DisplayWorkbookTabs = True

       .DisplayHeadings = True

    End With

     'Unprotect the workbook

     ThisWorkbook.Unprotect

End Sub

REFERENCES

==========

For more information about disabling control menu commands, see the

following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q107689

   TITLE     : XL5: Disabling Microsoft Excel Control Menu Commands

KBCategory: kbprg kbcode

KBSubcategory:

Additional reference words: 5.00 API protect user Hide


XL5: Disabling Microsoft Excel Control Menu Commands

Article ID: Q107689

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

You can use the Microsoft Windows Dynamic Link Libraries (DLLs) to disable

the commands in the Microsoft Excel Control menu. For example, you can use

these tools to delete the Minimize and Maximize buttons.

MORE INFORMATION

================

Microsoft Excel does not have the built-in functionality to modify the

Control menu commands. However, you can use the Microsoft Windows Declare

functions to disable Control menu items.

The following sample Visual Basic procedure disables the entire Control

menu in Microsoft Excel version 5.0. The macro disables the Control Menu

for the current session of Microsoft Excel (when you restart Microsoft

Excel the Control menu will be reset).

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of merchantability

and/or fitness for a particular purpose. This Visual Basic procedure

is provided 'as is' and Microsoft does not guarantee that it can be

used in all situations. Microsoft does not support modifications of

this procedure to suit customer requirements for a particular purpose.

Note that a line that is preceded by an apostrophe introduces a

comment in the code--comments are provided to explain what the code is

doing at a particular point in the procedure. Note also that an

underscore character (_) indicates that code continues from one line

to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This

Manual" section in the "Document Conventions" section of the "Visual

Basic User's Guide."

Visual Basic Procedure to Disable Control Menu

----------------------------------------------

Declare Function GetActiveWindow Lib "User" () As Integer

'Enter this Declare statement as a single line

Declare Function GetSystemMenu Lib "User" (ByVal hWnd As Integer,_

 ByVal_ bRevert As Integer) As Integer

'Enter this Declare statement as a single line

Declare Function DeleteMenu Lib "User" (ByVal hMenu As Integer,_

 ByVal_ nPosition As Integer, ByVal wFlags As Integer) As Integer

Sub Disable_Control()

   Dim X as Integer

   For X = 1 to 9

   'Deletes the first Menu command and loops until all commands are deleted

   Call DeleteMenu(GetSystemMenu(GetActiveWindow, False),0,1024)

   Next X

End Sub

The commands on the control menu are numbered starting a zero. The default

control menu items are as follows: Control Menu Restore is item 0, Move is

item 1, Size is item 2, and so on. Even if items are deleted, the first

item always starts at zero.

To delete individual items from the control menu without deleting the

entire menu, you can specify the menu command to delete. For example the

following two lines of code when used in place of the above For Next loop,

will delete the Maximize (item 4) and Minimize (item 3) commands and

disable the Maximize and Minimize buttons.

Call DeleteMenu(GetSystemMenu(GetActiveWindow, False),4,1024)

Call DeleteMenu(GetSystemMenu(GetActiveWindow, False),3,1024)

KBCategory: kbusage

KBSubcategory:

Additional reference words: 5.00 call register remove


XL5: Can't Print Collated Copies

Article ID: Q112821

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel 5.0, when you print multiple copies of a document, you

cannot automatically collate the pages unless the printer driver supports

collation.

NOTE: In earlier versions of Microsoft Excel, a document can be collated

when you print it (regardless of whether the printer driver supports

collated printing).

STATUS

======

This method of printing is by design to allow for faster printing.

WORKAROUNDS

===========

In Microsoft Excel 5.0, to print collated copies of a file, do any of the

following:

 - Print the document to a file on your hard drive and copy the file

   to the printer multiple times from the MS-DOS prompt.

   -or-

 - Write a macro to print the selected file multiple times. Note that

   this option will be very time consuming because Microsoft Excel has

   to print single copies of the file multiple times. It is much

   faster to print a file multiple times. (Sample code is provided below.

   -or-

 - If your printer driver provides the option to print collated copies,

   use this option. You can set this option by choosing the Print command

   on the File menu and then choosing Printer Setup in Microsoft Excel

   to access the printer driver settings.

MORE INFORMATION

================

An example of collated printing is when you print two copies of a file such

that page 1 and page 2 of the first copy are printed, and then page 1 and

page 2 of the second copy are printed. In contrast, uncollated printing

would print page 1, and then another page 1, and then page 2, and then

another page 2.

Printer drivers that have a Copies box in the Print dialog box may support

collation. For example, most UNIDRV-based drivers support collation; some

printer drivers, such as the Hewlett-Packard (HP) DeskJet, do not.

SAMPLE VISUAL BASIC FOR APPLICATIONS CODE

=========================================

The following Visual Basic for Applications code allows you to print

multiple copies.

'A procedure to print multiple copies

Sub Example()

   Ncopies = Application.InputBox("Please enter number off copies _

       to print: ", "Print Multiple Copies", 1, , , , , 1)

   For counter = 1 To Ncopies

      ActiveWindow.SelectedSheets.PrintOut Copies:=1

   Next

End Sub

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided 'as is' and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose. Note that a line that is preceded by

an apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the procedure. Note

also that an underscore character (_) indicates that code continues from

one line to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This Manual"

section in the "Document Conventions" section of the "Visual Basic User's

Guide."

KBCategory: kbprg kbcode

KBSubcategory:

Additional reference words: 5.00 multiple copies dialogue


Excel AppNote: Pentium Floating Point Unit Patch (WE1136)

Article ID: Q123783

---------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 4.0, 4.0a, 5.0, 5.0a, 5.0c

---------------------------------------------------------------------

The "Pentium Floating Point Unit (FPU) Patch" (WE1136) Application Note

is now available from Microsoft Product Support Services (PSS). The WE1136

disk included with this application note contains a patch that you can use

to test for a faulty FPU and to disable the FPU in your computer when you

use Microsoft Excel.

You can obtain this Application Note from the following sources:

 - CompuServe, GEnie, and Microsoft OnLine

 - Microsoft Download Service (MSDL)

 - The Internet (Microsoft anonymous ftp server)

 - Microsoft Product Support Services

 - Microsoft FastTips Technical Library

For complete information, see the "To Obtain This Application Note"

section at the end of this article.

THE TEXT OF WE1136

==================

======================================================================

  Microsoft(R) Product Support Services Application Note (Text File)

          WE1136: PENTIUM(R) FLOATING POINT UNIT (FPU) PATCH

======================================================================

                                                  Revision Date: 12/94

                                                       1 Disk Included

The following information applies to Microsoft Excel for Windows(TM),

version 4.0, 4.0a, 5.0, 5.0a, 5.0c.

 ---------------------------------------------------------------------

| INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY     |

| ACCOMPANY THIS DOCUMENT (collectively referred to as an Application |

| Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER      |

| EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED      |

| WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR       |

| PURPOSE. The user assumes the entire risk as to the accuracy and    |

| the use of this Application Note. This Application Note may be      |

| copied and distributed subject to the following conditions:  1) All |

| text must be copied without modification and all pages must be      |

| included;  2) If software is included, all files on the disk(s)     |

| must be copied without modification (the MS-DOS(R)  utility         |

| diskcopy is appropriate for this purpose);  3) All components of    |

| this Application Note must be distributed together;  and  4) This   |

| Application Note may not be distributed for profit.                 |

|                                                                     |

| Copyright (C) 1994 Microsoft Corporation.  All Rights Reserved.     |

| Microsoft and MS-DOS are registered trademarks and Windows and      |

| Windows NT are trademarks of Microsoft Corporation. Intel and       |

| Pentium are registered trademarks of Intel Corporation.             |

 ---------------------------------------------------------------------

Introduction

------------

If you are using Microsoft Excel on a computer that contains an

Intel(R) Pentium processor, you may receive unexpected results when

you perform mathematical operations that involve dividing certain

combinations of numbers. This problem is caused by an error in the

FPU, a part of the Intel Pentium chip that performs elaborate

calculations. Intel is aware of this problem.

The disk included with this Application Note contains a patch for use

with Microsoft Excel for Windows version 4.0, 4.0a, 5.0, 5.0a, or

5.0c. The patch allows you to do the following:

 - Test whether the FPU in your computer is faulty.

 - Prevent Microsoft Excel from using the built-in FPU.

After you install the patch, Microsoft Excel will handle all math

operations as though there were no FPU in your computer. Because the

FPU is disabled in Microsoft Excel, any calculation errors that you

received as a result of the FPU will be corrected.

   NOTE: This patch works with Microsoft Excel versions 4.0, 4.0a,

   5.0, 5.0a, and 5.0c (including all non-English language versions).

   The patch does not work with Microsoft Excel version 5.0 for

   Windows NT(TM).

To copy the patch to your hard disk drive

-----------------------------------------

1. Quit Microsoft Excel.

2. Insert the enclosed WE1136 disk in your floppy disk drive.

3. At the MS-DOS prompt, type the following and press ENTER

      copy <drive>:\p5patch.com <destination>

   where <drive> is the floppy disk drive containing the WE1136 disk

   and <destination> is your Microsoft Excel directory. For example,

   if the WE1136 disk is in drive A and your Microsoft Excel directory

   is C:\EXCEL, type the following command and press ENTER:

      copy a:\p5patch.com c:\excel

To test for a faulty FPU

------------------------

1. At the MS-DOS prompt, change to the drive that contains your

   Microsoft Excel directory. For example, if your Microsoft Excel

   directory is on drive C, type the following command and press

   ENTER:

      c:

2. Change to your Microsoft Excel directory. For example, if your

   Microsoft Excel directory is C:\EXCEL, type the following and press

   ENTER:

      cd \excel

3. Type the following and press ENTER to determine whether your

   Pentium computer has a faulty FPU:

      p5patch

   The patch will return a message stating whether your Pentium

   computer has a faulty FPU.

To run the Pentium FPU patch

----------------------------

At the MS-DOS prompt, type the following and press ENTER:

   p5patch /p

   NOTE: The FPU is now disabled for Microsoft Excel. If you want re-

   enable the FPU for Microsoft Excel, you can remove the patch. To

   remove the patch, type the following and press ENTER:

      p5patch /u

To update the formulas on your worksheet

----------------------------------------

After you have installed the patch, do either of the following to

update the formulas on your worksheet:

 - To force your entire worksheet to be recalculated, press

   CTRL+ALT+F9.

   -or-

 - To recalculate a single cell, or a range of cells on your

   worksheet, do the following:

   Note that the following method is not recommended if you are using

   array-type formulas. Replacing the equal sign (=) in such formulas

   will require that you re-enter any array formulas as arrays.

   1. Select the cell, or cells, on the worksheet that you want to

      update.

   2. In Microsoft Excel 5.0, choose Replace from the Edit menu. In

      Microsoft Excel version 4.0, choose Replace from the Formula

      menu.

   3. In the Find What box, type =. In the Replace With box, type =.

      In Microsoft Excel version 5.0, clear the Find Entire Cells Only

      check box if it is selected. In Microsoft Excel version 4.0,

      under Look At, select the Part option.

   4. To recalculate a single cell, choose the Replace button. To

      recalculate a range of cells, choose the Replace All button.

--------------------------------------------------------------------------

TO OBTAIN THIS APPLICATION NOTE

===============================

Note that the first three methods listed below are the quickest ways to

obtain the Pentium FPU Patch. The size of the file WE1136.EXE is

approximately 16K.

 - On CompuServe, GEnie, and Microsoft OnLine, Application Notes

   are located in the Microsoft Software Library. You can find

   WE1136 in the Software Library by searching on the word WE1136,

   the Q number of this article, or S15039. WE1136 is a compressed,

   self-extracting file. After you download WE1136, run it to

   extract the file(s) it contains.

 - Application Notes are available by modem from the Microsoft

   Download Service (MSDL), which you can reach by calling (206)

   936-6735. This service is available 24 hours a day, 7 days a week.

   The highest download speed available is 14,400 bits per second (bps).

   For more information about using the MSDL, call (800) 936-4100 and

   follow the prompts. To obtain WE1136, download WE1136.EXE.

   WE1136.EXE is a compressed, self-extracting file. After you

   download WE1136, run it to extract the file(s) it contains.

 - You can have this Application Note mailed to you from the

   automated Microsoft FastTips Technical Library, which you can call 24

   hours a day, 7 days a week at (800) 936-4100. NOTE: The FastTips

   Technical Library is available only to customers within the U.S. and

   Canada.

 - On the Internet, Application Notes are located on the Microsoft

   anonymous ftp server, which you can reach by typing "ftp

   ftp.microsoft.com" (without the quotation marks) at the ">" command

   prompt. You can find WE1136.EXE in the softlib/mslfiles directory.

 - If you are unable to access the source(s) listed above, you can

   have this Application Note mailed to you by calling Microsoft Product

   Support Services Monday through Friday, 6:00 A.M. to 6:00 P.M. Pacific

   time at (206) 635-7070. If you are outside the United States, contact

   the Microsoft subsidiary for your area. To locate your subsidiary, call

   Microsoft International Customer Service at (206) 936-8661.

KBCategory: kb3rdparty kbappnote

KBSubcategory: xlwin

Additional reference words: 4.00 4.00a 5.00 5.00a 5.00c p5 numeric

coprocessor co-processor processor floating-point math


XL5: Importing Text Files Larger Than 16384 Rows

Article ID: Q120596

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

 - Microsoft Excel for the Macintosh, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

Text files that contain more than 16384 rows cannot be opened in their

entirety in Microsoft Excel. You cannot open these files because a

worksheet is limited to 16384 rows. If you open a file that contains more

data than this, the size of the file will produce the following error

message

   File not loaded completely

and the text file will be truncated at the 16384th row. However, you can

use a macro to open the file and automatically break the text into multiple

worksheets.

MORE INFORMATION

================

The following sample macro prompts the user for a text filename, then opens

the file into memory. If the number of rows is larger than the Microsoft

Excel worksheet limit of 16384, the macro breaks the file into multiple

worksheets.

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided 'as is' and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose.

'All lines that begin with an apostrophe (') are remarks

'and are not required for the macro to run.

'Name of the Macro

Sub LargeFileImport()

    'Dimension Variables

    Dim ResultStr As String

    Dim FileName As String

    Dim FileNum As Integer

    Dim Counter As Double

    'Ask User for File's Name

    FileName = InputBox("Please enter the Text File's name")

    'Check for no entry

    If FileName = "" Then End

    'Get Next Available File Handle Number

    FileNum = FreeFile()

    'Open Text File For Input

    Open FileName For Input As #FileNum

    'Turn Screen Updating Off

    Application.ScreenUpdating = False

    'Create A New WorkBook With One Worksheet In It

    Workbooks.Add template:=xlWorksheet

    'Set The Counter to 1

    Counter = 1

    'Loop Until the End Of File Is Reached

    Do While Seek(FileNum) <= LOF(FileNum)

        'Display Importing Row Number On Status Bar

        Application.StatusBar = "Importing Row " & _

            Counter & " of text file " & FileName

        'Store One Line Of Text From File To Variable

        Line Input #FileNum, ResultStr

        'Store Variable Data Into Active Cell

        If Left(ResultStr, 1) = "=" Then

         ActiveCell.Value = "'" & ResultStr

        Else

        ActiveCell.Value = ResultStr

        End If

        If ActiveCell.Row = 16384 Then

            'If On The Last Row Then Add A New Sheet

            ActiveWorkbook.Sheets.Add

        Else

            'If Not The Last Row Then Go One Cell Down

            ActiveCell.Offset(1, 0).Select

        End If

        'Increment the Counter By 1

        Counter = Counter + 1

    'Start Again At Top Of 'Do While' Statement

    Loop

    'Close The Open Text File

    Close

    'Remove Message From Status Bar

    Application.StatusBar = False

'End Macro

End Sub

NOTE: The macro does not parse the data into columns. After using the

macro, you may also need to use the Text To Columns command on the

Data menu to parse the data as needed.

Note also that, because this is a macro, it may be significantly slower

than choosing the Open command from the File menu.

Note also that when running this macro on a Macintosh and you are

attempting to open a file residing on the desktop, the filename must be

proceeded by HardDrive Name:Desktop Folder: where HardDrive Name is the

name of your hard drive.  There is a space between the words Desktop and

Folder.

KBCategory: kbcode

KBSubcategory:

Additional reference words: 5.00 import ascii


Excel 5.0 for the Macintosh: Summary List of Known Issues

Article ID: Q122854

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for the Macintosh, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

The following is a list of bugs confirmed in Microsoft Excel version 5.0

for the Macintosh. This is not a comprehensive list and is current as of

October 18, 1994.

For more information on the specific bugs listed in this article, query in

the Microsoft Knowledge Base on the article ID (Qnnnnnn).

========================

BUG LIST FOR VERSION 5.0

========================

 - XL5: Error When Macro Closes Its Own Workbook

 - XL5: Custom Default Chart Format Not Applied to Embedded Chart

 - XL5: Problems Scaling Embedded Excel Chart Object in Word

 - XL5: Can't Link to Worksheet with Exclamation Point in Name

 - XL5: Chart References to Pivot Table Not Updated Correctly

 - XL5: Embedded Chart Object Grouped with Drawing Objects

 - XL5: Save As or Delete Dialog Box Doesn't Close on OK

 - ECHO() Command Doesn't Work Correctly with ACTIVATE() Command

 - Help Key on Keyboard Doesn't Run Macro Assigned to Help Button

 - XL5: Can't Open File with Chart That Refers to Bound Worksheet

 - XL5: Error or Hang Deleting Toolbar Shortcut Submenu Item

 - Only One Copy of Document Printed from Print Preview

 - XL5: Template Filenames Don't Appear in File Open Dialog Box

 - MXL5: Workbook Created When Inserting Excel Worksheet

 - MXL5: Rotated Text in Text Box Prints to Bottom of Page

 - MXL5: Not All Worksheets Use Selected Printer Option

 - MXL5: Can't Use Cut/Copy/Paste Keys in Dialog

--------------------------------------------------------------------

XL5: Error When Macro Closes Its Own Workbook

Article ID: Q108507

In Microsoft Excel, if a Visual Basic procedure is started by an

OnSheetDeactivate command and the procedure then closes the workbook in

which it is contained, you receive the following error message:

   The application "Microsoft Excel" has unexpectedly quit, because an

   error of type 1 occurred.

--------------------------------------------------------------------

XL5: Custom Default Chart Format Not Applied to Embedded Chart

Article ID: Q110829

In Microsoft Excel, when you create an embedded chart, the built-in default

chart format is always applied (even when you select a custom chart format

as the default).

--------------------------------------------------------------------

XL5: Problems Scaling Embedded Excel Chart Object in Word

Article ID: Q111805

Case 1: Microsoft Excel Chart Sheet

-----------------------------------

When you scale a Microsoft Excel 5.0 chart object that is embedded in a

Microsoft Word document, the chart plot area may be scaled while the chart

text, chart legend, and the object frame remain unscaled. These symptoms

occur if your chart is a separate chart sheet in Microsoft Excel (instead

of an embedded chart object in the Microsoft Excel worksheet).

Note: This only affects charts that you embed in Word; it does not apply to

linked charts.

--------------------------------------------------------------------

XL5: Can't Link to Worksheet with Exclamation Point in Name

Article ID: Q111941

If you link information from a Microsoft Excel worksheet to a client

application when the worksheet name contains an exclamation point

(!), one of the following may occur:

 - You receive an error message in the client application

   -or-

 - The information appears in the client application, but the link

   cannot be edited or updated

--------------------------------------------------------------------

XL5: Chart References to Pivot Table Not Updated Correctly

Article ID: Q112031

In Microsoft Excel, if you create a chart from data in a pivot table, and

you move either the chart or the pivot table to another workbook, changes

you make to the pivot table while the workbook containing the chart is

closed may not be reflected in the chart.

--------------------------------------------------------------------

XL5: Embedded Chart Object Grouped with Drawing Objects

Article ID: Q112078

In Microsoft Excel, if you create multiple drawing objects on a worksheet

and group them, and you then create an embedded chart object, the chart

becomes part of the group when you close and reopen the file that contains

the objects. This problem occurs whether you group the drawing objects

before or after you create the embedded chart.

--------------------------------------------------------------------

XL5: Save As or Delete Dialog Box Doesn't Close on OK

Article ID: Q112178

In the versions of Microsoft Excel listed above, when you use the SAVE.AS?

function or the FILE.DELETE? function in a Microsoft Excel version 4.0

macro sheet, and you use ERROR(FALSE) to avoid displaying error messages,

the Save As or the Delete dialog box does not close when you choose OK.

--------------------------------------------------------------------

ECHO() Command Doesn't Work Correctly with ACTIVATE() Command

Article ID: Q118320

In Microsoft Excel, the ECHO() macro function controls screen updating

while a macro is running. This command is usually used to speed up large

macros that update the screen frequently. If the ACTIVATE() macro function

is used to activate a worksheet window, and if you have previously turned

off screen updating with an ECHO(FALSE) command, the worksheet window will

be displayed and you will not see the contents of the window being

activated.

--------------------------------------------------------------------

Help Key on Keyboard Doesn't Run Macro Assigned to Help Button

Article ID: Q118878

In Microsoft Excel, when you run a custom dialog box that contains a button

that is formatted as a help button, the macro assigned to the help button

does not run when you press the Help or COMMAND+- keys.

--------------------------------------------------------------------

XL5: Can't Open File with Chart That Refers to Bound Worksheet

Article ID: Q118957

In Microsoft Excel, when you open a Microsoft Excel version 4.0 file that

contains a chart with references to a bound worksheet, one of the following

occurs if the worksheet name contains a bracket character ([]):

 - If the file is a workbook, and the sheet that contains the chart is the

   first sheet in the workbook, you receive the following error message:

      Cannot load an empty Microsoft Excel 4.0 workbook

   -or-

 - If the file is a workbook, and the sheet that contains the chart is NOT

   the first sheet in the workbook, you do not receive an error message,

   but the workbook does not open.

   -or-

 - If the file is a worksheet or a chart, you do not receive an error

   message, but the worksheet or chart file does not open.

--------------------------------------------------------------------

XL5: Error or Hang Deleting Toolbar Shortcut Submenu Item

Article ID: Q118959

In Microsoft Excel, when you delete a custom submenu item from the Toolbar

shortcut menu using the Delete method in a Visual Basic, Applications

Edition procedure, you receive the following error message:

      Run-time error '1004':

      Delete method of MenuItem class failed

--------------------------------------------------------------------

MXL5: Only One Copy of Document Printed from Print Preview

Article ID: Q120258

In Microsoft Excel, when you print multiple copies of a document from print

preview, only one copy is printed.

--------------------------------------------------------------------

MXL5: Template Filenames Don't Appear in File Open Dialog Box

Article ID: Q121821

In Microsoft Excel version 5.0 for the Macintosh, files that are saved as

templates will not be visible in the Open dialog box (from the file menu,

choose Open) when the List Files Of Type box is set to Templates.

--------------------------------------------------------------------

MXL5: Workbook Created When Inserting Excel Worksheet

Article ID: Q122066

When you insert a Microsoft Excel 5.0 Worksheet object in another

application, a new workbook is created, along with the inserted worksheet

object.

--------------------------------------------------------------------

MXL5: Rotated Text in Text Box Prints to Bottom of Page

Article ID: Q122067

In Microsoft Excel, if you position a text box that contains rotated

text on top of a page break on your worksheet, the text in the text

box extends to the bottom of the first page, and begins at the top of

the next page when you print the worksheet.

--------------------------------------------------------------------

MXL5: Not All Worksheets Use Selected Printer Option

Article ID: Q122068

In Microsoft Excel, when you print a selection of worksheets, or when you

print the entire workbook, not all of the worksheets are printed with the

selected printer options.

--------------------------------------------------------------------

MXL5: Can't Use Cut/Copy/Paste Keys in Dialog

Article ID: Q122069

In Microsoft Excel, you cannot use shortcut keys to cut, copy, or paste

information in the cell reference boxes in the Macro, Cell Note, or Define

Name dialog boxes.

--------------------------------------------------------------------

KBCategory: kbbuglist

KBSubcategory:

Additional reference words: 5.00


XL5: Error Editing/Saving File When Can't Access File on Disk

Article ID: Q114440

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, if you remove a floppy disk or disconnect from a

network drive that contains a workbook file that you are editing, an

error message appears when you continue editing the workbook. The

error message that you receive depends on the data that is contained

in the workbook you are editing and the types of changes you make to the

workbook. The following is a summary of these error messages and when

you receive them.

Linked or Embedded Object

-------------------------

If the workbook contains a linked or embedded object, when you edit

the object or create another object, you receive the following error

messages:

 - Editing or inserting an embedded or linked object

      Cannot start source application

 - Pasting a new linked or embedded object

      Cannot paste data

Visual Basic Module

-------------------

If the workbook contains a Visual Basic module, and you try to run a

procedure contained in the module, or to insert a new module in the

workbook, you receive the following error message:

   Unable to read from the disk

Pivot Tables

------------

If the workbook contains a pivot table, and you attempt to edit the

pivot table, the following error message appears:

   Unable to obtain PivotTable data from disk

Note that you can create a new pivot table in the workbook under the

above conditions without receiving an error message, even if the

workbook already contains a pivot table.

Saving File

-----------

When you save a workbook file to another location, such as your hard disk

drive, the following error message appears if the workbook file contains a

pivot table, linked or embedded object, or a Visual Basic module, and you

do not have access to the disk that contains the workbook file:

   Document not saved

Note that when you save a workbook that contains a Visual Basic

module, you may also receive the following error message:

   Unable to write to the disk

CAUSE

=====

In Microsoft Excel version 5.0, workbook files are not stored

entirely in memory. Some elements of the workbook are stored on the

disk your file is stored on. This is a change from the way the

earlier versions of Microsoft Excel stored files.

When you create a pivot table, an OLE object, or a Visual Basic

module in a workbook, you must have continuous access to the drive that

contains the workbook, because these items are stored on the drive.

WORKAROUND

==========

To avoid running into problems when you are working on files off of a

floppy or a network drive, do not remove the floppy or disconnect

from the network drive until you have closed the file you are working

on.

To avoid receiving an error message in any of the above situations,

you must insert the floppy disk, or connect to the network drive that

contains the workbook file. You can then edit and create OLE objects,

pivot tables and Visual Basic modules, and you can also save the

workbook file.

MORE INFORMATION

================

When you open a new workbook file in Microsoft Excel, two temporary

files are created in your TEMP directory. The location of your TEMP

directory is determined by the SET TEMP statement in your

AUTOEXEC.BAT file. The two temporary files have names similar to the

following:

   ~1808.TMP

   ~DFT180D.TMP

These files created because Microsoft Excel version 5.0 uses the

Docfile format in object linking and embedding (OLE) version 2.0.

When you open an existing workbook, a temporary file is created

either in your TEMP directory or in the directory that contains the

file.

KBCategory: kbnetwork

KBSubcategory:

Additional reference words: 5.00 err msg


Excel 5.0 for Windows: Summary List of Known Issues

Article ID: Q112180

---------------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

---------------------------------------------------------------------------

SUMMARY

=======

The following is a list of bugs confirmed in Microsoft Excel version 5.0

for Windows. This is not a comprehensive list and is current as of March 4,

1994.

For more information on the specific bugs listed in this article, query in

the Microsoft Knowledge Base on the article ID (Qnnnnnn).

=========================

BUG LIST FOR VERSION 5.0

=========================

 - XL5: Custom Default Chart Format Not Applied to Embedded Chart

 - XL5: GP Fault When Macro Closes Its Own Workbook

 - XL5: "Cannot Find Macro..." Using Run Method with Add-In Macro

 - XL5: Chart References to Pivot Table Not Updated Correctly

 - XL5: NAMES() Returns #N/A If Active Sheet Is Chart or Module

 - XL5: GP Fault If Many Line Continuation Characters in Module

 - XL5: Functions Not Saved To Quattro Pro File Format

 - XL5: Formatting And Charts Not Saved to .WQ1 Format

 - XL5: Methods May Fail When Embedded Chart Being Edited

 - XL5: Chart Sheet Tab Contains Filename Extension When Opened

 - XL5: Can't Link To Worksheet with Exclamation Point in Name

 - XL5: Embedded Chart Object Grouped with Drawing Objects

 - XL5: Can't Define Global Name If Same Local Name Exists

 - XL5: Save As or Delete Dialog Box Doesn't Close on OK

 - Selection.Cells with Nonadjacent Selection Returns Single Cell

 - XL5: Unattached Text in Wrong Place on Zoomed Embedded Chart

 - XL5: GET.CHART.ITEM() Function Returns #Value! If Chart Item Selected

 - XL5: Can't Reference Name in Closed Excel 4.0 Workbook

 - XL5: Embedded Pie Chart Shrinks After Print or Print Preview

 - XL5: Name Value Not Updated If Worksheet Not Active

 - XL5: GP Fault in VBA.DLL on Exit After Saving to Floppy Drive

 - XL5: Problems Scaling Embedded Excel Chart Object in Word

 - XL5: "Linked Document Is Unavailable" Editing Linked Chart

 - XL5: GP Fault in Text Import Scrolling File with Large Columns

 - XL5: GP Fault If REFTEXT() Refers to Closed Workbook

 - XL5: Can't Use Replace Command to Search for Blank Cells

 - XL5: Cannot Set Chart Data Marker Color Using Macro

 - XL5: Cannot Print Multiple Copies to DeskJet 500C/500C Driver

 - XL5: Excel Hangs in Print Preview Using SpeedSTAR PRO Driver

 - XL5: Can't Get or Set Properties of X Axis in XY Scatter Chart

 - XL5: GP Fault Pasting Multiple Grouped Drawing Objects

 - XL5: Sheets in Wrong Orientation with Print Entire Worksheet

 - XL5: GP Fault in XLODBC.DLL Using SQLExecQuery or SQLREQUEST

--------------------------------------------------------------------

XL5: Custom Default Chart Format Not Applied to Embedded Chart

Article ID: Q110829

In Microsoft Excel, when you create an embedded chart, the built-in

default chart format is always applied (even when you select a custom

chart format as the default).

--------------------------------------------------------------------

XL5: GP Fault When Macro Closes Its Own Workbook

Article ID: Q108507

In Microsoft Excel version 5.0 for Windows, you may receive a general

protection (GP) fault if a Visual Basic macro is started by an

OnSheetDeactivate command and the macro then closes the workbook in which

it is contained.

--------------------------------------------------------------------

XL5: "Cannot Find Macro..." Using Run Method with Add-In Macro

Article ID: Q112219

In a Visual Basic module in Microsoft Excel, if you use the Run method of

the Application object to run a macro located in an add-in, you may receive

the following error message

   Run-time error '1004':

   Cannot find macro '<ADDIN.XLA>!<Addin_Macro>'

where <ADDIN.XLA> is the name of the add-in that contains the macro,

and <Addin_Macro> is the name of the macro that you want to run.

--------------------------------------------------------------------

XL5: Chart References to Pivot Table Not Updated Correctly

Article ID: Q112031

In Microsoft Excel, if you create a chart from data in a pivot table, and

you move either the chart or the pivot table to another workbook, changes

you make to the pivot table may not be reflected in the chart while the

workbook containing the chart is closed.

--------------------------------------------------------------------

XL5: NAMES() Returns #N/A If Active Sheet Is Chart or Module

Article ID: Q112179

In Microsoft Excel, if you use the NAMES() function in a Microsoft

Excel version 4.0 macro to return defined names on a workbook, the

function returns the #N/A error value if the active sheet in the

workbook is a chart or a module, even if the active workbook does

contain defined names.

--------------------------------------------------------------------

XL5: GP Fault If Many Line Continuation Characters in Module

Article ID: Q111984

In Microsoft Excel, you may receive a general protection (GP) fault if you

copy and paste lines of code that contain the line-continuation character

(_) in a Visual Basic subroutine.

--------------------------------------------------------------------

XL5: Functions Not Saved to Quattro Pro File Format

Article ID: Q111981

In Microsoft Excel, when you save a worksheet to the Quattro Pro for DOS

(.WQ1) file format, if the file contains any of the following functions

   - N()

   - T()

   - NPER()

   - FV() - only if you use the optional arguments pv and type

   - PMT() - only if you use the optional arguments fv and type

   - PV() - only if you use the optional arguments fv and type

you receive the following error message:

   Cannot write record. (Cell: A1)

This error message appears with the reference of the cell that

contains one of the functions listed above. When you open the file

you saved, the cell that contained one of the functions listed above

now contains the value of the function, but the function is gone.

--------------------------------------------------------------------

XL5: Formatting and Charts Not Saved to .WQ1 Format

Article ID: Q110708

In Microsoft Excel version 5.0 for Windows, the formatting and any chart

sheets contained in the file may be lost when you save the file in the

Quattro Pro for DOS (.WQ1) file format (a format used by Borland

International's Quattro Pro spreadsheet application).

--------------------------------------------------------------------

XL5: Methods May Fail When Embedded Chart Is Edited

Article ID: Q111971

In Microsoft Excel version 5.0, the following methods may fail if the

active sheet is an embedded chart that is currently being edited and

if an object is not specified for the method:

- Charts Method (Syntax 2)

- DialogSheets Method (Syntax 2)

- Modules Method (Syntax 2)

- Sheets Method (Syntax 2)

- Worksheets Method (Syntax 2)

--------------------------------------------------------------------

XL5: Chart Sheet Tab Contains Filename Extension When Opened

Article ID: Q112032

In Microsoft Excel, when you open a Microsoft Excel version 4.0, 3.0,

or 2.1 chart file, the chart sheet tab contains the filename extension

as well as the filename.

--------------------------------------------------------------------

XL5: Can't Link to Worksheet with Exclamation Point in Name

Article ID: Q111941

If you link information from a Microsoft Excel worksheet to a client

application when the worksheet name contains an exclamation point

(!), one of the following may occur:

   - You receive an error message in the client application

   - The information appears in the client application, but the link

     cannot be edited or updated

--------------------------------------------------------------------

XL5: Embedded Chart Object Grouped with Drawing Objects

Article ID: Q112078

In Microsoft Excel, if you create multiple drawing objects on a worksheet

and group them, and then create an embedded chart object, the chart becomes

part of the group when you close and reopen the file that contains the

objects. This problem occurs whether you group the drawing objects before

or after you create the embedded chart.

--------------------------------------------------------------------

XL5: Can't Define Global Name If Same Local Name Exists

Article ID: Q111905

In Microsoft Excel, if you define a global name, when a local name

with the same name exists on the active worksheet, the value that the

local name refers to is the value you defined for the global name and

the global name is not defined on the workbook.

--------------------------------------------------------------------

XL5: Formatting Not Saved to .WQ1 Format

Article ID: Q110708

In Microsoft Excel for Windows version 5.0, formatting may be lost

when you save a file in the QuattroPro/DOS (.WQ1) file format (a

format used by Borland International's Quattro Pro spreadsheet

application).

--------------------------------------------------------------------

XL5: Save As or Delete Dialog Box Doesn't Close on OK

Article ID: Q112178

In Microsoft Excel version 5.0, when you use the SAVE.AS? function or

the FILE.DELETE? function in a Microsoft Excel version 4.0 macro

sheet, and you use ERROR(FALSE) to avoid displaying error messages,

the Save As or the Delete dialog box does not close when you choose

OK.

--------------------------------------------------------------------

Selection.Cells with Nonadjacent Selection Returns Single Cell

Article ID: Q112028

In Microsoft Excel, when you use the Range method or the Selection

property with the cells method in a Visual Basic module to return a

nonadjacent selection of cells on a worksheet, only the first cell in

the selection is returned.

--------------------------------------------------------------------

XL5: Unattached Text in Wrong Place on Zoomed Embedded Chart

Article ID: Q111982

In Microsoft Excel version 5.0, if you open a Microsoft Excel version

4.0 worksheet that contains an embedded chart, and the worksheet is

at a zoom magnification option other than 100 percent, unattached

text on the chart appears in the wrong location when you view the

worksheet at 100 percent.

--------------------------------------------------------------------

XL5: GET.CHART.ITEM() Function Returns #Value! If Chart Item Selected

Article ID: Q112077

In Microsoft Excel version 5.0, if you use the GET.CHART.ITEM function in a

Microsoft Excel version 4.0 macro, the function may return the #VALUE!

error value instead of the position of the selected chart item.

--------------------------------------------------------------------

XL5: Can't Reference Name in Closed Excel 4.0 Workbook

Article ID: Q111983

In Microsoft Excel version 5.0, if you reference a name on a closed

Microsoft Excel version 4.0 workbook, and the name is defined on a

worksheet other than the first worksheet in the workbook, you receive the

following error message

  'name' on 'WORKBOOK' is not defined or is too complex

where name is the name you are referencing, and WORKBOOK is the name of the

workbook that contains the name you are referencing. This error message

appears when you create the reference as well as when you update the

reference.

--------------------------------------------------------------------

XL5: Embedded Pie Chart Shrinks After Print or Print Preview

Article ID: Q111249

In Microsoft Excel, when you choose Print or Print Preview from the

File menu in a worksheet that contains an embedded 2-D or 3-D Pie

chart, the chart may shrink in size.

--------------------------------------------------------------------

XL5: Name Value Not Updated If Worksheet Not Active

Article ID: Q111903

In Microsoft Excel, if you use a defined name in a formula on a

worksheet, and then change the value of that name when the active

sheet is not a worksheet, the value of the defined name is not

updated on the worksheet.

--------------------------------------------------------------------

XL5: GP Fault in VBA.DLL on Exit After Saving to Floppy Disk Drive

Article ID: Q111906

In Microsoft Excel, if you save a workbook that contains a Visual

Basic module to a floppy disk, and then remove the floppy disk from

the disk drive, if you then save the file with the same filename to

another drive, you receive the following error message

   File already exists

and then the following error message:

   Document not saved

When you quit Microsoft Excel, you receive a general protection (GP)

fault in module VBA.DLL.

--------------------------------------------------------------------

XL5: Problems Scaling Embedded Excel Chart Object in Word

Article ID: Q111805

When you scale a Microsoft Excel Chart object in a Microsoft Word for

Windows document, the chart plot area may be scaled while the chart

text and legend, as well as the object frame, remain unchanged.

When you scale a chart object that is an embedded chart, the chart in

the object is displayed off center, its worksheet cells are visible,

and the Chart object frame returns to its original size.

--------------------------------------------------------------------

XL5: "Linked Document Is Unavailable" Editing Linked Chart

Article ID: Q112348

When you edit a linked Microsoft Excel version 4.0 chart object in an

object linking and embedding (OLE) version 1.0 application (the

client), one of the following may occur:

 - In Microsoft Write, you receive the following error message:

      Linked document is unavailable

   -or-

 - In Microsoft Word for Windows version 2.0, the chart object does not

   open for editing.

--------------------------------------------------------------------

XL5: GP Fault in Text Import Scrolling File with Large Columns

Article ID: Q111944

In Microsoft Excel, when you open a text file and use the horizontal

scroll bar under the preview window in the Text Import Wizard to

scroll the columns in the file, you may receive a general protection

(GP) fault.

--------------------------------------------------------------------

XL5: GP Fault If REFTEXT() Refers to Closed Workbook

Article ID: Q110595

In Microsoft Excel version 5.0, when you use the REFTEXT() function in

a Microsoft Excel 4.0 macro sheet, and the reference includes the name

of a closed workbook, you receive a general protection (GP) fault.

--------------------------------------------------------------------

XL5: Can't Use Replace Command to Search for Blank Cells

Article ID: Q111942

In Microsoft Excel, if you choose Replace from the Edit menu, and you

leave the Find What box blank and choose Find Next, Replace, or

Replace All to fill blank cells on a worksheet, you receive the

following error message:

   Search string must be specified

--------------------------------------------------------------------

XL5: Cannot Set Chart Data Marker Color Using Macro

Article ID: Q112176

In Microsoft Excel, when the background or foreground color of a chart data

marker is set to none, you cannot set the color of that data marker with a

macro.

--------------------------------------------------------------------

XL5: Cannot Print Multiple Copies to DeskJet 500C/500C Driver

Article ID: Q112037

If you are using a Hewlett-Packard (HP) DeskJet 550C or 500C printer driver

version 3.0 or 3.1, you will not be able to print multiple copies from

Microsoft Excel 5.0. Changing the number of copies in the Print dialog box

will not affect the number of copies printed.

--------------------------------------------------------------------

XL5: Excel Hangs in Print Preview Using SpeedSTAR PRO Driver

Article ID: Q112177

If you use the Diamond SpeedSTAR PRO 800x600 65K Small Fonts video

driver, Microsoft Excel hangs when you view a document in print

preview.

--------------------------------------------------------------------

XL5: Can't Get or Set Properties of X Axis in XY Scatter Chart

Article ID: Q111972

In Microsoft Excel version 5.0, you may receive one of the following

error messages when you attempt to set or return the x axis scale

properties for an xy (scatter) chart:

   Run-time error '1005':

   "Unable to set the <property> property of the axis class"

   -or-

   Run-time error '1005':

   "Unable to get the <property> property of the axis class"

--------------------------------------------------------------------

XL5: GP Fault Pasting Multiple Grouped Drawing Objects

Article ID: Q112175

In Microsoft Excel, if you group drawing objects on a worksheet, and

you repeatedly group multiple object groups, you may receive a general

protection (GP) fault when you copy and paste the group.

--------------------------------------------------------------------

XL5: Sheets in Wrong Orientation with Print Entire Worksheet

Article ID: Q111943

In Microsoft Excel, when you open a workbook that contains worksheets

with different page setup orientations, and you print the entire

workbook, some of the worksheets may be printed with the wrong

orientation.

--------------------------------------------------------------------

XL5: GP Fault in XLODBC.DLL Using SQLExecQuery or SQLREQUEST

Article ID: Q114992

In Microsoft Excel, if you use the SQLExecQuery function or the

SQLRequest function in a Visual Basic procedure, to run a query on an

external data source, and your query is larger than 255 characters, you

may receive a general protection (GP) fault when you run the procedure.

--------------------------------------------------------------------

KBCategory: kbbuglist

KBSubcategory:

Additional reference words: 5.00


XL5 Err Msg: Not Enough Memory To Display Pivot Table

Article ID: Q110890

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you create a pivot table, or add a column

field to an existing pivot table, you may receive the following error

message

   Not enough memory to completely display pivot table.

and the pivot table is not created or the column field is not added.

CAUSE

=====

This error message appears when you add too many column fields to the

pivot table. The number of column fields that you can add to a pivot

table varies with the amount of data in the pivot table and the

memory available on your computer.

WORKAROUND

==========

When you create a pivot table, limit the number of column fields you

use to three or four, especially when you create the pivot table from

a large database. When you need to create a pivot table with a large

number of fields, use row fields. Because row fields do not use as

much memory as column fields, you will be able to add more row fields

to your pivot table than column fields.

MORE INFORMATION

================

You can add a row or column field to an existing pivot table using

the shortcut menu by doing the following:

1. Select a cell in the pivot table, and click the right mouse button.

2. From the shortcut menu, choose Add Row Field or Add Column Field, and

   then choose the field you want to add as a row or column field in your

   pivot table.

REFERENCES

==========

For an Overview Of Creating A Pivot Table, choose the Search button

in Help and type:

    pivot tables, creating

KBCategory: kberrmsg

KBSubcategory:

Additional reference words: 5.00


XL5: Excel and Visual Basic Library Files (.OLB) Available

Article ID: Q122889

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

--------------------------------------------------------------------

SUMMARY

=======

Object library files are available for Microsoft Excel and Microsoft Visual

Basic Programming System, Applications Edition.

For more information about obtaining these object library files, see the

"To Obtain Visual Basic And Microsoft Excel Object Library Files" section

at the end of this article.

Visual Basic and Microsoft Excel Object Library Files

-----------------------------------------------------

If your Visual Basic code in Microsoft Excel is written in a language other

than English, you should always include the appropriate language object

library files when you distribute your Visual Basic application, in case

the recipient doesn't already have the library files. If your code calls

procedures written in multiple languages, then you should include the

object libraries for each of those languages. You should also include all

workbooks and other object libraries that are referenced by the application

that you are distributing.

Microsoft allows all registered owners of Microsoft Excel to distribute

object libraries with their applications to other registered owners as

necessary. The names of the object library files available from Microsoft

are listed in the following table.

            Microsoft Excel            Visual Basic for

            for Windows                Applications

Language    Object Library File        Object Library File

-----------------------------------------------------------

French      XLFR50.OLB                 VBAFR.OLB

German      XLDE50.OLB                 VBADE.OLB

Italian     XLIT50.OLB                 VBAIT.OLB

Portuguese  XLPTB50.OLB                VBAPTB.OLB

(Brazil)

Spanish     XLES50.OLB                 VBAES.OLB

Swedish     XLSV50.OLB                 VBASV.OLB

Determining Location of an Object Library

-----------------------------------------

To determine the location of an object library on your computer's hard

disk, do the following:

1. In Microsoft Excel, switch to a Visual Basic module sheet in a

   workbook.

2. From the Tools menu, choose References.

3. From the Available References list, select the library name.

The library file location is listed next to Path under Group.

This procedure is also useful for determining which object

library files you should distribute with your application.

The check box next to a referenced object library file is

selected.

Registering a Different Language Version

----------------------------------------

To register a different language version of an object library file and

to reference this language version in a new Visual Basic project, do the

following:

1. Copy the object library files (VBA*.OLB) to the SYSTEM subdirectory of

   your Windows directory, for example in C:\WINDOWS\SYSTEM.

2. Copy the Microsoft Excel 5.0 object library files (XL*.OLB) to the

   directory in which you installed Microsoft Excel.

3. Start Microsoft Excel version 5.0.

4. Create a new module. In the module, choose References from the Tools

   menu. Choose the Browse button. From the Directories list, select the

   Windows SYSTEM subdirectory.

5. From the File Name list, select the object library file, for example

   XLFR50.OLB, and choose OK. Choose OK in the dialog box that appears with

   the error message above.

6. Repeat step 4 with the Visual Basic, Applications Edition, object

   library file, for example VBAFR.OLB. In the References dialog box,

   choose OK.

7. From the Tools menu, choose Options. Select the Module General tab, and

   under International, select Default Settings. From the Language/Country

   list, select the language and country of the object library file you

   want to use. Choose OK.

8. Create a Visual Basic module in a new project.

Note that in Microsoft Excel, you must create a new workbook and then

create the new module to use the new default Language/Country option.

For more information, see Appendix A, "Writing Code For International Use,"

in the Visual Basic "User's Guide" that comes with Microsoft Excel 5.0.

TO OBTAIN VISUAL BASIC AND MICROSOFT EXCEL OBJECT LIBRARY FILES

===============================================================

Use the following table to determine which self-extracting file contains

the object library files that you need.

Object Library Files     Self-Extracting File

----------------------------------------------

French                   FROLB.EXE S15096

German                   GROLB.EXE S15098

Italian                  ITOLB.EXE S15117

(Portugese) Brazil       BROLB.EXE S15099

Spanish                  SPOLB.EXE S15097

Swedish                  SVOLB.EXE S15118

Download the appropriate self-extracting .EXE file from the Microsoft

Software Library (MSL) on the following services:

 - CompuServe

      GO MSL

      Search for <FILENAME>.EXE

      Display results and download

 - Microsoft Download Service (MSDL)

      Dial (206) 936-6735 to connect to MSDL

      Download <FILENAME>.EXE

 - Internet (anonymous FTP)

      ftp ftp.microsoft.com

      Change to the SOFTLIB/MSLFILES directory

      Get <FILENAME>.EXE

KBCategory: kbprg kbfile

KBSubcategory: xlwin

Additional reference words: 5.00 5.00c


XL5: Can't Run Macros That Use File Functions Add-in Functions

Article ID: Q108356

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

 - Microsoft Excel for Macintosh, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

Although Microsoft Excel version 5.0 does not include the File Functions

(FILEFNS.XLA) add-in macro (or the associated FILEFNS.DLL file), if you

install Microsoft Excel version 5.0 without deleting the earlier version of

Microsoft Excel (3.0 or 4.0), the FILEFNS.XLA add-in macro will still be

available and will function normally (because the file is not deleted when

you install version 5.0). However, if you do a "clean" installation of

Microsoft Excel 5.0 (that is, if you delete the earlier version of

Microsoft Excel before you install version 5.0) and you then run a macro

that uses any of the FILEFNS.XLA add-in functions you will receive a macro

error.

Most of the file maintenance tasks that you can do with the File Functions

add-in functions can be done with Visual Basic procedures.

MORE INFORMATION

================

The following table lists the functions that are available in the File

Functions add-in macro and their Visual Basic equivalents.

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of merchantability

and/or fitness for a particular purpose. This Visual Basic procedure

is provided 'as is' and Microsoft does not guarantee that it can be

used in all situations. Microsoft does not support modifications of

this procedure to suit customer requirements for a particular purpose.

Note that a line that is preceded by an apostrophe introduces a

comment in the code--comments are provided to explain what the code is

doing at a particular point in the procedure. Note also that an

underscore character (_) indicates that code continues from one line

to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This

Manual" section in the "Document Conventions" section of the "Visual

Basic User's Guide."

Function from

File Functions      Equivalent Visual Basic Statement

------------------------------------------------------------------------

=CREATE.DIRECTORY() MkDir "MYDIR"

=DELETE.DIRECTORY() RmDir "MYDIR"

=DIRECTORIES()      MyDir = Dir(pathname,16)

                    'call repeatedly until Dir return a zero-

                    'length string

=OPEN.DIALOG()      MyDialog = Application.GetOpenFilename(fileFilter, _

                    FilterIndex,Title,buttonText)

                    ' This second form will bring up Microsoft

                    ' Excel's internal Open Dialog Box

                    MyDialog2=Application.Dialogs(xlDialogOpen).Show

                    ' will bring up default open dialog

=SAVE.DIALOG()      MyDialog=Application.GetSaveAsFilename _

                    (initialFilename,fileFilter,filter, _

                    Index,title,buttonText)

                    ' This second form will bring up Microsoft

                    ' Excel's 'internal SaveAs Dialog Box

                    MyDialog2=Application.Dialogs(xlDialogSaveAs).Show

                    ' will bring up default Save As dialog

=FILE.EXISTS()      MyFile = Dir(pathname)

REFERENCES

==========

For more information about GetOpenFilename, choose the Search button in

Help and type:

   getop

For more information about GetSaveasFilename, choose the Search button

in Help and type:

   gets

KBCategory: kbprb

KBSubcategory:

Additional reference words: 5.0 5.00


XL5: Cannot Open Microsoft Works 3.0 Files

Article ID: Q109246

----------------------------------------------------------------------

The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

----------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel version 5.0, you cannot open files saved in the

Microsoft Works 3.0 format.

WORKAROUND

==========

In order for Microsoft Excel version 5.0 to open a file saved from

Microsoft Works 3.0, it must first be saved in a compatible file

format. To do this in Microsoft Works for Windows version 3.0, do the

following:

1. Open the file that you want Microsoft Excel to be able to open.

2. From the File menu, choose Save As.

3. From the Save File As Type list, select one of the following file

   formats:

   Format                                  Saves File with Extension

   -----------------------------------------------------------------

   Works for Windows 2.0/                  WKS

   Works for DOS SS

   Excel 4.0/5.0 SS                        XLS

   Lotus 1-2-3                             WK1

4. Choose OK to save the file in the new format.

5. Close the file before you attempt to open it in Microsoft Excel.

You should now be able to open the file in Microsoft Excel.

This information also applies to Microsoft Works version 3.0 for MS-DOS and

Microsoft Works version 3.0 for the Macintosh. In these versions of

Microsoft Works, use the appropriate steps to save the file in either one

of the above file formats or in the symbolic link (SYLK) file format (which

is also compatible with Microsoft Excel version 5.0).

MORE INFORMATION

================

When you open a file in Microsoft Excel version 5.0, the List Files Of Type

list indicates that one of the file types Microsoft Excel can open is

   Microsoft Works Files (*.WKS)

Even though no version information is mentioned, Microsoft Excel can

only open Microsoft Works files saved in the Microsoft Works 2.0 (or

earlier) format. You cannot open Microsoft Works 3.0 files in Microsoft

Excel directly.

If you attempt to open a Microsoft Works 3.0 file, you will receive

the following error message:

   Cannot read this binary file. If the file was created in a version

   of Microsoft Excel later than 5.0, use that version to save it as a

   Microsoft Excel 5.0 file. Open file as text?

If you open the file as text, it will be virtually unreadable.

To open a file saved from Microsoft Works version 3.0, you must first save

it in a file format compatible with Microsoft Excel version 5.0.

KBCategory: kbinterop

KBSubcategory:

Additional reference words: 5.00 W_works


XL5: "File Format Not Valid" Error After Selecting File Type

Article ID: Q123258

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you open a version 5.0 workbook file by choosing

the filename from the bottom of the File menu, you may receive the

following error message:

   File format is not valid

Additionally, if you open a workbook, worksheet, or chart created in

a version of Microsoft Excel earlier than 5.0, by choosing the filename

from the bottom of the File menu, you receive the following

error message:

   Cannot read this binary file. If the file was created in a version of

   Microsoft Excel later than 5.0, use that version to save it as a

   Microsoft Excel 5.0 file. Open file as text?

CAUSE

=====

This behavior occurs if you have recently selected Microsoft Multiplan

(*.*) or Lotus 1-2-3 Release 4 or 5 (*.wk4) from the List Files Of Type

list in the Open dialog box. If you have selected one of these file

converters in the Open dialog box, even if you don't open a file using the

selected converter, you cannot open a .XLS, .XLW, or .XLC file by choosing

the file name from the bottom of the File menu.

WORKAROUNDS

===========

To avoid receiving this error message, use either of the following methods.

Method 1: Open the .XLS file by choosing Open from the File menu, and then

          select the file that you want to open.

Method 2: To open .XLS files from the quick list, do the following:

          a. From the File menu, choose Open.

          b. From the List Files Of Type list, select an option other than

             Microsoft Multiplan (*.*), or Lotus 1-2-3 Release 4 or 5

             (*.WK4), such as All Files (*.*).

          c. Choose OK.

          d. Choose Cancel.

          You can now choose a file name from the File menu without

          receiving this error message.

MORE INFORMATION

================

The names of the four files that you have opened most recently appear

at the bottom of the File menu. You can open any of these files by

choosing the filename from the File menu.

NOTE: To open Lotus 1-2-3 WK4 files in Microsoft Excel, you must obtain the

Lotus 1-2-3 WK4 File Converter. The Lotus 1-2-3 WK4 File Converter is

available in application note WE1130 "Lotus 1-2-3 WK4 File Converter." You

can obtain WE1130 from the following sources:

    - CompuServe, GEnie, and Microsoft OnLine

    - Microsoft Download Service (MSDL)

    - The Internet (Microsoft anonymous ftp server)

    - Microsoft Product Support Services

For more information about obtaining the Lotus 1-2-3 WK4 File Converter,

please see the following article(s) in the Microsoft Knowledge Base:

   ARTICLE-ID: Q122583

   TITLE     : XL5: Lotus 1-2-3 Release 4 for Windows File Converter

REFERENCES

==========

For more Tips For Working With Files And Documents, choose the Search

button in Help and type:

   opening files

KBCategory: kb3rdparty

KBSubcategory:

Additional reference words: 5.00 5.00c


XL5: TRANS.EXE Not Installed with Custom or Complete Install

Article ID: Q124383

-------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0

-------------------------------------------------------------

SUMMARY

=======

The Macro Translation Assistant, TRANS.EXE, and its support files,

TRANSMP.XLM and TRANS123.XLM, are not installed when you select the

Complete or Custom installation option in the versions of Microsoft Excel

mentioned above. The Macro Translation Assistant is a utility that helps

you translate Lotus 1-2-3 macros and Microsoft Multiplan macros to

Microsoft Excel 4.0 macros.

NOTE: TRANS.EXE is not available in Microsoft Excel versions 5.0c and

later.

MORE INFORMATION

================

The TRANS.EXE program is not installed automatically when you perform a

complete installation of Microsoft Excel. This is by design in the versions

of Microsoft Excel mentioned above. If you are updating from Microsoft

Excel version 4.0 for Windows, TRANS.EXE should be located in the Microsoft

Excel 4.0 directory. If you are not updating from version 4.0, do the

following to install TRANS.EXE from Microsoft Excel 5.0 Setup:

1. Run the Microsoft Excel Setup program located in the Microsoft Excel

   program group.

2. Choose the Add/Remove button.

3. Select Tools from the Options list and choose Change.

4. Select the Macro Translation Assistant and the 1-2-3 CNF Converter and

   choose the OK button.

5. Choose Continue.

6. Insert the Microsoft Excel version 5.0 Disk 1 into the floppy disk

   drive and choose OK.

Setup will install all of the necessary components to your system.

KBCategory: kbsetup

KBSubcategory:

Additional reference words: 5.00


XL5: Microsoft Excel Does Not Save Print Settings for Views

Article ID: Q115376

------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel version 5.0, when you make changes to print settings in

the Page Setup dialog box, views may lose their print settings.

CAUSE

=====

This problem occurs with various printer drivers, including the HP LaserJet

4/4M, driver version 31.V1.20 for Windows 3.1, the HP LaserJet 4/4M Plus

driver version 31.v1.30, the HP LaserJet III driver version 31.3.89, the HP

LaserJet IID driver (HPPCL.DRV) version 2.34, and the Windows Printing

System version 1.0.

WORKAROUNDS

===========

HP LaserJet 4/4M drivers

------------------------

If you are using one of the LaserJet 4/4M drivers, do the following to work

around this problem:

1. Before you create views, change your default printer to any printer

   other than the HP LaserJet 4/4M, or the HP LaserJet III or IID printers

   using the driver versions listed above.

2. Create all of your views.

3. Change the default printer driver back to LaserJet 4/4M.

HP LaserJet III version 31.3.89

-------------------------------

The problem has been corrected in the newest HP III driver for Windows 3.1

(HPPCL5MS.DRV - 11/16/92).

You can obtain this driver from either Hewlett Packard or the Microsoft

Download Service (MSDL).

HP LaserJet IID version 2.34 (5/12/93)

--------------------------------------

The problem has been corrected in the HP LaserJet IID driver version 2.1

that ships with Microsoft Windows and Microsoft Windows for Work groups

version 3.11.

Note that the problem does not occur in Microsoft Excel version 5.0c with

this driver.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. We are researching this problem

and will post new information here in the Microsoft Knowledge Base as it

becomes available.

KBCategory: kbtool

KBSubcategory:

Additional reference words: 5.00 5.00c setting 2d addins


XL5: Visual Basic Example Using the SQLError Function

Article ID: Q122577

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

--------------------------------------------------------------------

SUMMARY

=======

This article explains how to use the SQLError function in a Visual Basic,

Applications Edition, macro in Microsoft Excel version 5.0.

MORE INFORMATION

================

In Microsoft Excel version 5.0, the XLODBC.XLA add-in file includes 7 SQL

functions for accessing external data sources with ODBC (Open Database

Connectivity) drivers. One of these functions, SQLError, returns detailed

error information when you call it after one of the other ODBC SQL

functions fails. If SQLError itself fails, it cannot return any error

information.

If an ODBC function such as SQLExecQuery fails, the error information

is defined and stored in memory. You can then make a call to the

SQLError function and assign this information to an array variable.

The information returned by SQLError has three formats:

1. If there are no errors from a previous ODBC function call, this function

   returns only the #N/A error value to a one-dimensional array with one

   element. This error value may also be shown as "Error 2042" in the Debug

   window when you debug your macro.

2. If only one error is reported, SQLError will return a one-dimensional

   array with three elements.

3. If a function call generates multiple errors, SQLError returns a two-

   dimensional array in which each row describes a single error.

In the last two cases described above, each row has three fields. The

fields are:

- A character string indicating the ODBC error class and subclass.

- A numeric value indicating the data source native error code.

- A text message describing the error.

Below is a Visual Basic macro that illustrates how to use the

SQLError function to capture SQL errors.

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of

merchantability and/or fitness for a particular purpose. This Visual

Basic procedure is provided 'as is' and Microsoft does not guarantee

that it can be used in all situations. Microsoft does not support

modifications of this procedure to suit customer requirements for a

particular purpose. Note that a line that is preceded by an

apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the

procedure. Note also that an underscore character (_) indicates that

code continues from one line to the next. You can type lines that

contain this character as one logical line or you can divide the

lines of code and include the line continuation character. For more

information about Visual Basic for Applications programming style,

see the "Programming Style in This Manual" section in the "Document

Conventions" section of the "Visual Basic User's Guide."

NOTE: This example requires that you reference the XLODBC.XLA file using

the References dialog box in the module that contains this procedure.

Sub SQLError_Example()

  'This example will return an error because

  'the data source being opened doesn't exist.

  'Declare variables

   Dim Channel As Variant      'Channel number

   Dim MyErrorArray As Variant 'Variable to store SQLError array

   Dim LF As String            'Line Feed variable

   LF = Chr(10)                'Assign value for Line Feed

  'Open a channel to the Wind data source. This line will

  'produce an error because the data source 'Wind' doesn't exist.

  Channel = SQLOpen("DSN=Wind")

 'Check for possible error value in the Channel variable.

  If IsError(Channel) Then

  'Assign the elements of the SQLError array to MyErrorArray.

   MyErrorArray = SQLError()

   'Display the individual error elements of the MyErrorArray array.

   'Add Line Feed character for readability.

    MsgBox MyErrorArray(1) & LF & MyErrorArray(2) & LF & MyErrorArray(3)

   'Exit sub procedure

    Exit Sub

   End If

 'Close the channel to Wind.

  SQLClose Channel

End Sub

When you run this macro, you will receive an error message similar to the

following:

   IM002

   0

   [Microsoft][ODBC DLL] Data source not found and no default

   driver specified

REFERENCES

==========

"Visual Basic User's Guide," version 5.0, Chapter 9, "Using the

Built-in Error Values of Microsoft Excel"

For more information about SQLError, choose the Search button in

Programming With Visual Basic Help, and type:

     SQLError Function

KBCategory: kbmacro kbinterop

KBSubcategory:

Additional reference words: 5.00 Isnumeric


XL5: GP Fault in VBA.DLL on Exit After Saving to Floppy Drive

Article ID: Q111906

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0, 5.0c

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, if you save a workbook that contains a Visual

Basic module to a floppy disk, and then remove the floppy disk from

the disk drive, if you then save the file with the same filename to

another drive, you receive the following error message

   File already exists

and then the following error message:

   Document not saved

When you quit Microsoft Excel, you receive a general protection (GP)

fault in module VBA.DLL.

CAUSE

=====

In Microsoft Excel version 5.0, OLE objects, pivot tables, and Visual

Basic modules require the use of data on the file that contains them.

This means that when you use these objects in a workbook, the file

that contains this workbook must be available when you choose the

Save or Save As command on the File menu. In general, when you work

with a file containing one of these objects on a floppy drive, you

should keep the floppy disk in the drive while the file is open.

WORKAROUND

==========

After you save a workbook that contains a Visual Basic module to a

floppy drive, to avoid receiving these error messages, make sure the

floppy disk that contains the workbook file is still in the drive

before you save the file to another drive.

KBCategory: kbbuglist

KBSubcategory:

Additional reference words: 5.00 gpf


XL5: Problems Using Show Method to Open Dialog Sheets

Article ID: Q111308

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

 - Microsoft Excel for Macintosh, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel version 5.0, when you use the Show method to display a

dialog box, the dialog box must be closed or hidden before you can return

to the Visual Basic procedure that called it.

MORE INFORMATION

================

The Show method runs a specified dialog box, either by running event

procedures immediately, or by running the dialog box and waiting for the

user to enter data.

If the dialog box is called during a procedure in which another dialog box

is already present, the Show method will run the dialog box on top of the

present dialog box. To return to the calling procedure, the second dialog

box must be closed or hidden.

Closing the Dialog Box

----------------------

If the dialog box has a button with the DismissButton property set to TRUE:

When you Click a button with the DismissButton property set to TRUE, you

will automatically close a user-defined dialog box. This is the preferred

approach, because the DismissButton property will validate all edit fields

before closing the dialog box and the Show method will return TRUE if

validation succeeds. If validation does not succeed, an alert is displayed

and the invalid edit field is activated.

If your dialog box does not contain a DismissButton that is set to TRUE,

the dialog box can be closed by doing one of the following:

 - Click the Cancel button to close the dialog box without executing any

   actions specified by the dialog box controls.

   -or-

 - Click the Exit box or choose ESC to close the dialog box without

   executing any actions specified by the dialog box controls.

    NOTE: If a button in the dialog box has its CancelButton property

    set to TRUE, clicking the Exit box or choosing ESC will cause that

    button to be selected. Any macro specified by the button's OnAction

    property will run before the dialog box is closed.

   -or-

 - Use the Hide method to mark the dialog box for closing (the dialog box

   will not actually be closed until the procedure that used the Hide

   method is completed).

   NOTE: If you call the Hide method to mark the dialog box for closing, if

   you then follow that action with another Show method, then the new

   dialog box will be run on top of the hidden first dialog box. This often

   creates problems with procedures in the second dialog box due to a lack

   of stack space. To avoid this lack of stack space, make sure that each

   new dialog box is completely closed, not just hidden, before running the

   next dialog box. The focus will return to the original calling procedure

   when the dialog boxes are dismissed.

REFERENCES

==========

For more information about the Show Method, choose the Search button in

Visual Basic help and type:

   Show Method

For more information about the Hide Method, choose the Search button in

Visual Basic help and type:

   Hide Method

For more information about the DismissButton Procedure, choose the Search

button in Visual Basic help and type:

   DismissButton Procedure

For more information about the CancelButton Procedure, choose the Search

button in Visual Basic help and type:

   CancelButton Procedure

KBCategory: kbusage

KBSubcategory:

Additional reference words: VBApp VB 5.00 memory


XL5: Sheets in Wrong Orientation with Print Entire Workbook

Article ID: Q111943

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you open a workbook that contains worksheets with

different page setup orientations, and you print the entire workbook, some

of the worksheets may be printed with the wrong page orientation.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. This problem was corrected in

Microsoft Excel for Windows version 5.0c.

WORKAROUNDS

===========

To work around this problem, you must re-establish the orientation for each

sheet; you can do this manually, or you can use a macro to do it

automatically.

To re-establish the orientation manually

----------------------------------------

1. From the File menu, choose Print. Under Print What, select the Entire

   Workbook option and choose Print Preview.

2. For each worksheet in the workbook that is displayed in the wrong

   orientation, choose the Setup button.

   Note that on the Page tab in the Page Setup dialog box, the correct

   option under Orientation is selected. Choose OK.

3. Choose the Next button to view the next worksheet in the workbook.

   Repeat steps 2 and 3 for the each sheet in the workbook.

The entire workbook will be printed correctly as long as the workbook

remains open (you will have to repeat this procedure if you close and

reopen the workbook).

To re-establish the orientation automatically

---------------------------------------------

The following macro adjusts the page orientation and prints the entire

workbook correctly. To use the macro:

1. Enter the following code on a macro sheet:

      Sub PrintOutWorkbook()

      Dim Page As Object

      'Loop through each Worksheet in the active workbook

      'using "Page" as a loop variable.

      For Each Page In ActiveWorkbook.Worksheets

          'Reset page orientation to itself

          Page.PageSetup.Orientation = Page.PageSetup.Orientation

      'End of loop

      Next Page

          'Print the Entire Workbook

          ActiveWorkbook.PrintOut

      End Sub

2. To run the macro, use the Menu Editor to assign it to a toolbar button

   or menu command, run it directly from the macro dialog box.

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of merchantability

and/or fitness for a particular purpose. This Visual Basic procedure

is provided 'as is' and Microsoft does not guarantee that it can be

used in all situations. Microsoft does not support modifications of

this procedure to suit customer requirements for a particular purpose.

Note that a line that is preceded by an apostrophe introduces a

comment in the code--comments are provided to explain what the code is

doing at a particular point in the procedure. Note also that an

underscore character (_) indicates that code continues from one line

to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This

Manual" section in the "Document Conventions" section of the "Visual

Basic User's Guide."

KBCategory: kbprg kbcode kbprint

KBSubcategory:

Additional reference words: 5.00


XL5: Cannot Print Multiple Copies to DeskJet 500C/550C Driver

Article ID: Q112037

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

--------------------------------------------------------------------

SYMPTOMS

========

If you are using a Hewlett-Packard (HP) DeskJet 550C, 500C, 560C printer

driver version 3.0 or 3.1, you will not be able to print multiple copies

from Microsoft Excel 5.0. Changing the number of copies in the Print dialog

box will not affect the number of copies printed.

STATUS

======

Microsoft has confirmed this to be a problem in the versions of Microsoft

Excel listed above. We are researching this problem and will post new

information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUND 1

============

The HP DeskJet 500 (black and white) driver version 2.14 that ships with

Microsoft Windows 3.1 and 3.11 will print multiple copies correctly.

However, this driver does not allow you to print in color.

WORKAROUND 2

============

The following Visual Basic for Applications code allows you to print

multiple copies.

'A procedure to print multiple copies

Sub Example()

   ' Dimension variables

   Dim Ncopies As Integer, Counter as Integer

   Ncopies = _

      Application.InputBox("Please enter number of copies to print: ", _

     "Print Multiple Copies", 1, , , , , 1)

   For counter = 1 To Ncopies

      ActiveWindow.SelectedSheets.PrintOut Copies:=1

   Next

End Sub

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided 'as is' and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose. Note that a line that is preceded by

an apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the procedure. Note

also that an underscore character (_) indicates that code continues from

one line to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This Manual"

section in the "Document Conventions" section of the "Visual Basic User's

Guide."

KBCategory: kbprint kbprg kbcode

KBSubcategory:

Additional reference words: 5.00


XL5: Incorrect Polynomial Trendline on XY (Scatter) Chart

Article ID: Q114629

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

 - Microsoft Excel for the Macintosh, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you add a third-order polynomial trendline to an

xy (scatter) chart, and you display the equation, both the trendline

and the equation displayed on the chart are incorrect.

CAUSE

=====

This behavior is most noticeable when you are working with an xy (scatter)

chart, and the x-values that are fairly close together relative to their

absolute size (that is, the x-range is < 20-percent of the mean x-value).

The degree to which the polynomial equation is incorrect depends on the

chart data, both the absolute size and size of the range. The greater the

order of the polynomial that you choose for the trendline, the greater the

amount of error in the trendline equation. Also, the greater the chart data

values, the lower the order of the polynomial that displays incorrectly.

Additionally, the amount of error in the trendline equation is greater when

your data sample is smaller than 5 points.

WORKAROUND

==========

Use the following suggestions to avoid this behavior, or at least minimize

the error in the trendline equation when you add a polynomial trendline to

your xy (scatter) chart:

 - Use a large number of data points on your chart (that is, more than 5).

 - Use the second- or third-order polynomial for the trendline, instead of

   a higher order polynomial.

 - Use smaller numbers, and a greater range of data points on your chart.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. We are researching this problem

and will post new information here in the Microsoft Knowledge Base as it

becomes available.

REFERENCES

==========

For more information about Adding A Trendline To A Data Series, choose the

Search button in Help and type:

    trendlines

KBCategory: kbprb

KBSubcategory:

Additional reference words: 5.00 regression


XL5 Err Msg: GP Fault in Module SDM.DLL

Article ID: Q122059

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

When you run a Microsoft Excel version 4.0 macro (.XLM macro) that calls a

Microsoft Excel version 4.0 dialog box that contains option buttons, you

may receive the following error message:

   EXCEL caused a General Protection Fault in module SDM.DLL at xxxx:xxxx.

where xxxx:xxxx is a memory address.

CAUSE

=====

This error message occurs when, in the dialog box definition table, there

is an invalid type in an option button group section of the table. Note

that option button groups always start with a type value of 11.

Example

-------

The first column of the dialog box definition table contains the following

information:

     11     Option button group

     12     Option button

     45     Invalid table number

     12     Option button

The number 45 is an invalid item type for a dialog box definition table.

Valid number types are from 1 to 24. In this example, a valid number would

be 12, which is an option button.

RESOLUTION

==========

To correct this problem, remove or correct the invalid code in the table.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. This problem has been corrected in

Microsoft Excel for Windows version 5.0c.

KBCategory: kbprg kbmacro

KBSubcategory:

Additional reference words: 5.00


XL5: Not Possible to Position Custom Dialog Boxes

Article ID: Q109423

----------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

 - Microsoft Excel for the Macintosh, version 5.0

----------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel version 5.0, it is not possible to directly affect

the on-screen position of a custom dialog box when it is displayed.

MORE INFORMATION

================

The DialogFrame.Left and DialogFrame.Top properties can be used to change

the position within a dialog sheet of a dialog frame. However, changing

these properties does not affect the on-screen position of a custom dialog

box when you show it by using the DialogSheets("Dialog1").Show method.

In Microsoft Excel, when a dialog box is shown, its upper-left corner will

be located in the same position as the upper-left corner of the last dialog

box shown.

Other dialog boxes, such as the Open and Save As dialog boxes, follow the

same rule. For example, when the Open dialog box is visible and you choose

the OK button to remove it, the next dialog box that appears on the screen

will appear with its upper-left corner in this same position.

NOTE: If, when you display a dialog box, part or all of the dialog box is

pushed off the edge of the screen, Microsoft Excel automatically shifts the

dialog box so that the whole dialog box is visible.

KBCategory: kbusage

KBSubcategory:

Additional reference words: 5.00


XL5: AppNote: MAPI-to-VIM Translation .DLL MAPIVIM.DLL

Article ID: Q112730

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

The disk included with the "MAPI-to-VIM Translation .DLL MAPIVIM.DLL

Version 1.0.0.63" Application Note (WE1009) contains the MAPIVIM.DLL file

version 1.0.0.63, a replacement for the MAPIVIM.DLL file version 1.0.0.53

that is included with Microsoft Excel version 5.0 for Windows. This updated

file provides additional enhancements to the original MAPIVIM.DLL file. It

also corrects two problems that occur when you use Lotus cc:Mail. You can

obtain this Application Note from the following sources:

 - CompuServe, GEnie, and Microsoft OnLine

 - Microsoft Download Service (MSDL)

 - The Internet (Microsoft anonymous ftp server)

 - Microsoft Product Support Services

For complete information, see the "To Obtain This Application Note"

section at the end of this article.

THE TEXT OF WE1009

==================

======================================================================

  Microsoft(R) Product Support Services Application Note (Text File)

   WE1009: MAPI-TO-VIM TRANSLATION .DLL MAPIVIM.DLL VERSION 1.0.0.63

======================================================================

                                                   Revision Date: 3/94

                                                       1 Disk Included

The following information applies to Microsoft Excel for Windows(TM),

version 5.0.

-----------------------------------------------------------------------

| INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY     |

| ACCOMPANY THIS DOCUMENT (collectively referred to as an Application |

| Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER      |

| EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED      |

| WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR       |

| PURPOSE. The user assumes the entire risk as to the accuracy and    |

| the use of this Application Note. This Application Note may be      |

| copied and distributed subject to the following conditions:  1) All |

| text must be copied without modification and all pages must be      |

| included;  2) If software is included, all files on the disk(s)     |

| must be copied without modification (the MS-DOS(R)  utility         |

| diskcopy is appropriate for this purpose);  3) All components of    |

| this Application Note must be distributed together;  and  4) This   |

| Application Note may not be distributed for profit.                 |

|                                                                     |

| Copyright (C) 1994 Microsoft Corporation.  All Rights Reserved.     |

| Microsoft and MS-DOS are registered trademarks and Windows is a     |

| trademark of Microsoft Corporation.                                 |

| cc:Mail is a registered trademark of cc:Mail, Inc., a wholly owned  |

| subsidiary of Lotus Development Corporation.                        |

| Lotus is a registered trademark of Lotus Development Corporation.   |

|---------------------------------------------------------------------|

Introduction

------------

The disk provided with this Application Note contains the MAPIVIM.DLL

file version 1.0.0.63, a replacement for the MAPIVIM.DLL file version

1.0.0.53 that is included with Microsoft Excel version 5.0 for

Windows. This updated file provides additional enhancements to the

original MAPIVIM.DLL file. It also corrects two problems that occur

when you use Lotus(R) cc:Mail(TM) and you send a mail message from

Microsoft Excel 5.0 by choosing the Send command from the File menu:

 - The message is sent with a low priority setting. With the updated

   MAPIVIM.DLL, mail is sent with the correct priority setting.

 - When you choose the Address button in a New Message window, an

   hourglass pointer may appear, and your computer may hang (stop

   responding). The updated MAPIVIM.DLL corrects this problem.

To replace your MAPIVIM.DLL file

--------------------------------

1. Insert the enclosed WE1009 disk in the appropriate floppy disk

   drive.

2. At the MS-DOS command prompt, type the following and press ENTER

      copy <drive>:\mapivim.dll <destination>

   where <drive> is the floppy disk drive containing the WE1009 disk

   and <destination> is the Windows SYSTEM subdirectory. For example,

   if your Windows directory is C:\WINDOWS and the WE1009 disk is in

   drive A, type the following command:

      copy a:\mapivim.dll c:\windows\system

   If a message is displayed asking if you want to overwrite an

   existing MAPIVIM.DLL file, type Y and press ENTER. A message will

   be displayed stating: 1 file(s) copied. This message indicates that

   your MAPIVIM.DLL file has been successfully replaced.

NOTE: If you previously added the line

   MAPIVIMDisableABScan=1

to the [Mail] section of your WIN.INI file as a workaround for the

problem using the Address button described above, you can remove this

line after you replace your MAPIVIM.DLL file with the updated version.

This line prevents the address list from being retrieved and is no

longer needed with the updated MAPIVIM.DLL file.

--------------------------------------------------------------------

TO OBTAIN THIS APPLICATION NOTE

===============================

 - On CompuServe, GEnie, and Microsoft OnLine, Application Notes

   are located in the Microsoft Software Library. You can find

   WE1009 in the Software Library by searching on the word WE1009,

   the Q number of this article, or S14652. WE1009 is a compressed,

   self-extracting file. After you download WE1009, run it to

   extract the file(s) it contains.

 - Application Notes are available by modem from the Microsoft

   Download Service (MSDL), which you can reach by calling (206)

   936-6735. This service is available 24 hours a day, 7 days a week.

   The highest download speed available is 14,400 bits per second (bps).

   For more information about using the MSDL, call (800) 936-4100 and

   follow the prompts. To obtain WE1009, download WE1009.EXE.

   WE1009.EXE is a compressed, self-extracting file. After you

   download WE1009, run it to extract the file(s) it contains.

 - On the Internet, Application Notes are located on the Microsoft

   anonymous ftp server, which you can reach by typing "ftp

   ftp.microsoft.com" (without the quotation marks) at the ">" command

   prompt.

-  If you are unable to access the source(s) listed above, you can

   have this Application Note mailed or faxed to you by calling

   Microsoft Product Support Services Monday through Friday, 6:00 A.M.

   to 6:00 P.M. Pacific time at (206) 635-7070. If you are outside the

   United States, contact the Microsoft subsidiary for your area. To

   locate your subsidiary, call Microsoft International Customer

   Service at (206) 936-8661.

KBCategory: kbappnote

KBSubcategory:

Additional reference words: 5.00 lock


XL5: DDE Poke to Microsoft Excel Workbook Fails

Article ID: Q115467

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

When you use the dynamic data exchange (DDE) Poke statement to insert

data in a Microsoft Excel version 5.0 workbook, the information is

not inserted, and you may receive an error message in the application

that you are using to send the data.

CAUSE

=====

This behavior occurs because the DDE command "times out" when it's opening

the workbook file that you want to send the information to. The time it

takes to initialize the sheets contained in a Microsoft Excel 5.0 workbook

file, causes a DDE Initiate command to time out.

NOTE: This is not a problem when you send data to a worksheet in Microsoft

Excel version 4.0.

WORKAROUNDS

===========

To avoid this problem, start Microsoft Excel and open the workbook that you

want to send information from BEFORE you use the DDE Poke statement to

insert data in the workbook. The following is an example of using this

method.

Microsoft provides macro examples for illustration only, without

warranty either expressed or implied, including but not limited

to the implied warranties of merchantability and/or fitness for

a particular purpose. This macro is provided 'as is' and Microsoft

does not guarantee that the following code can be used in all

situations. Microsoft does not support modifications of the code

to suit customer requirements for a particular purpose.

Microsoft Word for Windows Macro

--------------------------------

   Sub Main

      Q$ = Chr$(34)

      ' Initiate DDE conversation using System topic

      Channel = DDEInitiate("EXCEL", "System")

      ' Open workbook file

      DDEExecute Channel, "[OPEN(" + Q$ + "C:\EXCEL\BOOK1.XLS" + Q$ + ")]"

      ' Initiate DDE conversation using open workbook file

      Channel2 = DDEInitiate("excel", "C:\EXCEL\BOOK1.XLS")

      ' Insert data in workbook

      DDEPoke Channel2, "R1C1", "Total: $1,434"

      DDETerminate Channel

      DDETerminate Channel2

   End Sub

Note that if the application that you are using to send data to Microsoft

Excel supports Microsoft Visual Basic Programming System, Applications

Edition, such as Microsoft Project 4.0, you can use the properties and

methods of the objects exposed by Microsoft Excel to open the workbook and

insert the information.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. We are researching this problem

and will post new information here in the Microsoft Knowledge Base as it

becomes available.

MORE INFORMATION

================

If you use one of the DDEPoke help topic examples found in the WordBasic

Help file, you receive the following error message if the workbook file is

not currently open in Microsoft Excel:

   WordBasic Err=500

   Cannot Initiate Link

Use the workaround above to avoid receiving this error message,.

KBCategory: kbprg

KBSubcategory:

Additional reference words: 2.00 4.00 5.00 6.00 6.00a officeinterop

ole automation


Microsoft ODBC Drivers Fulfillment Kit

Article ID: Q121813

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

--------------------------------------------------------------------

SUMMARY

=======

The Microsoft ODBC Drivers version 2.0 (ODBC Kit) is available from

Microsoft. The kit includes drivers for the following databases:

   Driver                     Database or file version

   -----------------------------------------------------

   Btrieve                    5.1 and 6.x

   dBase                      III, IV

   Microsoft Access           1.0, 1.1, 2.0

   Microsoft Excel            3.0, 4.0, 5.0

   Microsoft FoxPro           2.0, 2.5, 2.6

   Paradox                    3.5, 4.0, 4.5

   Text                       n/a

   ORACLE                     6.0, 7.0

   SQL Server                 4.2x

For additional information, please see the following article(s) in the

Microsoft Knowledge Base:

   ARTICLE-ID: Q125235

   TITLE     : INF: ODBC Driver Pack 2.0 Fulfillment Kit Q&A

   ARTICLE-ID: Q124815

   TITLE     : INF: Explaination of the Two Available Access Drivers

The Microsoft ODBC Drivers version 1.0 (ODBC Kit) is available from

Microsoft as part #273051-025. The kit includes drivers for the following

databases:

   Driver                     Database or file version

   -----------------------------------------------------

   Btrieve                    5.1

   dBASE                      III, IV

   Microsoft Access           1.0, 1.1

   Microsoft Excel            3.0, 4.0

   Microsoft FoxPro           2.0, 2.5

   ORACLE                     6.0

   Paradox                    3.5

   SQL Server                 Microsoft  1.1 through 4.2

                              Sybase     4.0 through 4.2

   Text files                 n/a

MORE INFORMATION

================

Microsoft Excel version 5.0 for Windows ships with ODBC drivers for

Microsoft Access, dBASE, SQL Server, Paradox, and Microsoft FoxPro. The

ODBC Kit also provides these drivers plus additional drivers, some of which

were not available at the time Microsoft Excel version 5.0 was released.

Newer versions of this kit will be released as other ODBC drivers become

available.

KBCategory: kbnetwork kb3rdparty

KBSubcategory: xlwin

Additional reference words: 5.00 5.00c query qpluse q+e


MSQuery: "Connection Failed" Error Connecting to SQL Server

Article ID: Q125399

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Query for Windows, version 1.0

 - Microsoft Query for the Macintosh, version 1.0

--------------------------------------------------------------------

SYMPTOMS

========

When you connect to an SQL Server data source, such as Microsoft SQL

Server or Sybase SQL Server, you may receive the following error message:

   Connection Failed:

   SQLState: '08001'

   SQL Server Error: -1

   [Microsoft][ODBC SQL Server Driver]Unable to connect to data

CAUSE

=====

This error message usually indicates that the client workstation cannot

find the SQL Server on the network. Possible causes for this problem

include the following:

   If you are using Microsoft Query for Windows or Windows NT

   ----------------------------------------------------------

   - TCP/IP Sockets support has not been enabled on the SQL Server.

   - The client workstation has not been set up to run TCP/IP properly.

   - The SQL Server data source has not been setup with the proper TCP/IP

     address for the server.

   If you are using Microsoft Query for the Macintosh

   -------------------------------------------------

   - You may receive the error message stated above if the MacTCP Control

      Panel has not been installed.

WORKAROUNDS

===========

If you are using Microsoft Query for Windows or Windows NT

----------------------------------------------------------

Method 1: Enable TCP/IP on the SQL Server (Windows NT)

          a. Run the SQL Server Setup program from the SQL Server.

          b. In Options dialog box, choose the Change Network Support

             option, and then choose Continue.

          c. Make sure the TCP/IP Sockets option is selected, and choose

             OK.

          d. The next two dialog boxes, show the Port Number and Network

             Address.

             You should not need to change these, but you should verify

             that they are correct.

          e. Return to Windows NT.

Method 2: Configure the client workstation for TCP/IP Connectivity.

If you are using Microsoft Query for the Macintosh

--------------------------------------------------

In Microsoft Query for the Macintosh, you may receive the error message

stated above if the MacTCP Control Panel has not been installed. MacTCP is

distributed with Apple Macintosh System 7.5. To add the MacTCP icon to your

Control Panels folder, run the Setup program for System 7.5.

For additional information, please see the following article(s) in the

Microsoft Knowledge Base:

   ARTICLE-ID: Q120254

   TITLE     : "Configuring MacTCP for ODBC Use"

KBCategory: kbnetwork  kbenv

KBSubcategory: xlquery

Additional reference words: 1.00 ODBC TCP IP connectivity


XL5: Macro to Print a Group of Files Located in Same Directory

Article ID: Q107880

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

In Microsoft Excel, you can use the following Visual Basic macro to print a

batch of files that are all located in the same directory. The macro

requests a directory name and then prints all the files in that directory.

Sample Macro Code

-----------------

Sub Batch_Print()

Dim Input_Dir, Print_File As String

    Input_Dir = InputBox("Input directory path containing the files

       to print")

    ' Defines Print_File equal to the first Microsoft Excel file found in

    ' the directory specified in the InputBox above.

    Print_File = Dir(Input_Dir & "\*.xl*")

      ' Loops through the directory specified in the above InputBox

      ' and opens each workbook in the directory, prints all sheets

      ' in the workbook and closes the workbook. Continues until are

      ' all files are printed.

      Do While Len(Print_File) > 0

          Workbooks.Open Filename:=Input_Dir & "\" & Print_File

          ActiveWorkbook.PrintOut Copies:=1

          ActiveWorkbook.Close

          Print_File = Dir()

      Loop

End Sub

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided 'as is' and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose. Note that a line that is preceded by

an apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the procedure. Note

also that an underscore character (_) indicates that code continues from

one line to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This Manual"

section in the "Document Conventions" section of the "Visual Basic User's

Guide."

REFERENCES

==========

"Visual Basic Reference," version 5.0, pages 143-145

KBCategory: kbprint

KBSubcategory:

Additional reference words: 5.00


Excel:  OnEntry Macro to Create a Running Total

Article ID: Q123578

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 4.0, 4.0a, 5.0, 5.0c

 - Microsoft Excel for the Macintosh, versions 4.0, 5.0

 - Microsoft Excel for Windows NT, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel, to avoid circular references when you create a running

total in a cell, the total must be stored in a non-calculating part of the

worksheet. This result can be achieved through a macro. The macro examples

in the "More Information" section of this article use cell notes to store

totals.

MORE INFORMATION

================

To create a running total in a cell

-----------------------------------

1. Create a macro similar to either of the following code examples (Visual

   Basic or Microsoft Excel 4.0 macro).

2. Save the file and then close it. Re-open the worksheet file that

   contains the Auto_Open macro.

3. Select the cell that you want to contain the running total.

4. Follow the appropriate procedure below to run the SetNote macro.

   If you are using Microsoft Excel version 5.0:

   1. From the Tools menu, choose Macro.

   2. From the Macro Name/Reference, select the macro SetNote, and then

      choose Run.

   If you are using Microsoft Excel version 4.0:

   1. From the Macro menu, choose Run.

   2. Select the SetNote macro, and then choose OK.

To remove a running total

-------------------------

To remove a running total, follow the appropriate procedure below for your

version of Microsoft Excel.

If you are using Microsoft Excel version 5.0:

1. Select the cell on the worksheet that contains the running total.

2. From the Insert menu, choose Note, and then choose Delete.

If you are using Microsoft Excel version 4.0:

1. Select the cell on the worksheet that contains the running total.

2. From the Formula menu, choose Note, and then choose Delete.

After you open the running total macro sheet, you may notice slight pauses

after you enter data into a cell. Each time data is entered in a cell,

Microsoft Excel will run through the RunningTotal Macro. The slight pause

you notice is the time that the computer takes to process the macro

commands.

Visual Basic Code Example

-------------------------

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of merchantability

and/or fitness for a particular purpose. This Visual Basic procedure

is provided 'as is' and Microsoft does not guarantee that it can be

used in all situations. Microsoft does not support modifications of

this procedure to suit customer requirements for a particular purpose.

Note that a line that is preceded by an apostrophe introduces a

comment in the code--comments are provided to explain what the code is

doing at a particular point in the procedure. Note also that an

underscore character (_) indicates that code continues from one line

to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This

Manual" section in the "Document Conventions" section of the "Visual

Basic User's Guide."

' The Auto_Open name forces this macro to run every time

' the workbook containing this macro is opened.

Sub Auto_Open()

'  Every time a cell's value is changed,

'  the RunningTotal macro runs.

   Application.OnEntry = "RunningTotal"

End Sub

' This macro sets up a cell to be a running total cell.

Sub SetNote()

   With ActiveCell

'     Set note to indicate that a running total is present.

'     If the ActiveCell is empty, multiplying by 1 will

'     return a 0.

      .NoteText Text:="RT_" + (ActiveCell * 1)

   End With

End Sub

' This macro runs each time the value of a cell changes.

' It adds the current value of the cell to the value of the

' cell note.  Then it stores the new total in the cell note.

Sub RunningTotal()

   With Application.Caller

'     Checks to see if the cell is a running total by

'     checking to see if the first 3 characters of the cell

'     note are "RT_".

      If .NoteText(length:=3) = "RT_" Then

'        Change the cell's value to the new value in the cell

'        plus the old total stored in the cell note.

         .Value = .Value + .NoteText(start:=4)

'        Store the new total in the cell note.

         .NoteText "RT_" + .Value

      End If

   End With

End Sub

Microsoft Excel 4.0 Macro Code Example

--------------------------------------

Microsoft provides macro examples for illustration only, without warranty

either expressed or implied, including but not limited to the implied

warranties of merchantability and/or fitness for a particular purpose.

After you enter the macros, define Auto_Open, SetNote, and RunningTotal as

command macros that refer to A1, A5, and A9 respectively.

     A1: Auto_Open

     A2: =ON.ENTRY(,"RunningTotal")

     A3: =RETURN()

     A4:

     A5: SetNote

     A6: =NOTE("RT_"&ACTIVE.CELL()*1)

     A7: =RETURN()

     A8:

     A9: RunningTotal

     A10: =IF(GET.NOTE(,,3)="RT_")

     A11: =   FORMULA(CALLER()+GET.NOTE(,4),CALLER())

     A12: =   NOTE("RT_"&CALLER())

     A13: =END.IF()

     A14: =RETURN()

Explanation of macro:

 - Cell A1 defines this cell as Auto_Open which causes this macro to run

   every time the macro sheet is opened.

 - Cell A2 runs the RunningTotal macro every time a cell's value is

   changed.

 - Cell A3 ends the Auto_Open macro.

 - Cell A5 contains the name of the macro that sets up a cell to be a

   running total cell.

 - Cell A6 sets the active cell's note to be "RT_" & the value of  the

   active cell.

 - Cell A7 ends the SetNote macro.

 - Cell A9 contains the macro that runs each time the value of a cell

   changes. It adds the current value of the cell to the value of the cell

   note. Then it stores the new total in the cell note.

 - Cell A10 checks to see if the cell is a running total by checking to see

   if the first 3 characters of the cell note are "RT_".

 - Cell A11 changes the cell's value to the new value in the cell

   and adds the old total stored in the cell note.

 - Cell A12 stores the new total in the cell note.

 - Cell A13 ends the IF() statement.

 - Cell A14 ends the RunningTotal macro.

KBCategory: kbprg kbcode kbmacro

KBSubcategory:

Additional reference words: 4.00 continuous


XL5: How to Select Cells/Ranges Using Visual Basic Procedures

Article ID: Q120198

----------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

 - Microsoft Excel for the Macintosh, version 5.0

----------------------------------------------------------------------

SUMMARY

=======

The Visual Basic Programming System, Applications Edition, provides a wide

variety of methods for selecting cells, ranges, and named ranges. This

article provides examples of how to perform such operations from within a

Visual Basic procedure.

This article contains the following examples:

 1. How to select a cell on the active worksheet.

 2. How to select a cell on another worksheet in the same workbook.

 3. How to select a cell on a worksheet in a different workbook.

 4. How to select a range of cells on the active worksheet.

 5. How to select a range of cells on another worksheet in the same

    workbook.

 6. How to select a range of cells on a worksheet in a different

    workbook.

 7. How to select a named range on the active worksheet.

 8. How to select a named range on another worksheet in the same

    workbook.

 9. How to select a named range on a worksheet in a different

    workbook.

10. How to select a cell relative to the active cell.

11. How to select a cell relative to another (not the active) cell.

12. How to select a range of cells offset from a specified range.

13. How to select a specified range and resize the selection.

14. How to select a specified range, offset and resized.

15. How to select the union of two or more specified ranges.

16. How to select the intersection of two or more specified ranges.

Note that these examples do not necessarily represent the best or only

way to perform the actions described. Because of the flexibility in the

Visual Basic for Applications programming system, there are often many

different ways to perform the same action.

MORE INFORMATION

================

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided "as is" and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose. Note that a line that is preceded by

an apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the procedure. Note

also that an underscore character (_) indicates that code continues from

one line to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This Manual"

section in the "Document Conventions" section of the Visual Basic "User's

Guide."

The examples in this article use the following Visual Basic methods:

   Method             Arguments

   ------------------------------------------

   Activate           none

   Cells              rowIndex, columnIndex

   Application.Goto   reference, scroll

   Offset             rowOffset, columnOffset

   Range              cell1

                      cell1, cell2

   Resize             rowSize, columnSize

   Select             none

   Sheets             index (or sheetName)

   Workbooks          index (or bookName)

The examples in this article use the following properties:

   Property         Use

   ---------------------------------------------------------------------

   ActiveSheet      to specify the active sheet

   ActiveWorkbook   to specify the active workbook

   Columns.Count    to count the number of columns in the specified item

   Rows.Count       to count the number of rows in the specified item

   Selection        to refer to the currently selected range

1: How to Select a Cell on the Active Worksheet

-----------------------------------------------

To select cell D5 on the active worksheet, you can use either of the

following examples:

   ActiveSheet.Cells(5, 4).Select

   ActiveSheet.Range("D5").Select

2: How to Select a Cell on Another Worksheet in the Same Workbook

-----------------------------------------------------------------

To select cell E6 on another worksheet in the same workbook, you can

use either of the following examples:

   Application.Goto (ActiveWorkbook.Sheets("Sheet2").Cells(6, 5))

   Application.Goto (ActiveWorkbook.Sheets("Sheet2").Range("E6"))

Or, you can activate the worksheet, and then use method 1 above to

select the cell:

   Sheets("Sheet2").Activate

   ActiveSheet.Cells(6, 5).Select

3: How to Select a Cell on a Worksheet in a Different Workbook

--------------------------------------------------------------

To select cell F7 on a worksheet in a different workbook, you can use

either of the following examples:

   Application.Goto _

      (Workbooks("BOOK2.XLS").Sheets("Sheet1").Cells(7, 6))

   Application.Goto _

      (Workbooks("BOOK2.XLS").Sheets("Sheet1").Range("F7"))

Or, you can activate the worksheet, and then use method 1 above to

select the cell:

   Workbooks("BOOK2.XLS").Sheets("Sheet1").Activate

   ActiveSheet.Cells(7, 6).Select

4: How to Select a Range of Cells on the Active Worksheet

---------------------------------------------------------

To select the range C2:D10 on the active worksheet, you can use any

of the following examples:

   ActiveSheet.Range(Cells(2, 3), Cells(10, 4)).Select

   ActiveSheet.Range("C2:D10").Select

   ActiveSheet.Range("C2", "D10").Select

5: How to Select a Range of Cells on Another Worksheet in the Same

   Workbook

------------------------------------------------------------------

To select the range D3:E11 on another worksheet in the same workbook,

you can use either of the following examples:

   Application.Goto _

      (ActiveWorkbook.Sheets("Sheet3").Range("D3:E11"))

   Application.Goto _

      (ActiveWorkbook.Sheets("Sheet3").Range("D3", "E11"))

Or, you can activate the worksheet, and then use method 4 above to

select the range:

   Sheets("Sheet3").Activate

   ActiveSheet.Range(Cells(3, 4), Cells(11, 5)).Select

6: How to Select a Range of Cells on a Worksheet in a Different

   Workbook

---------------------------------------------------------------

To select the range E4:F12 on a worksheet in a different workbook,

you can use either of the following examples:

   Application.Goto _

      (Workbooks("BOOK2.XLS").Sheets("Sheet1").Range("E4:F12"))

   Application.Goto _

      (Workbooks("BOOK2.XLS").Sheets("Sheet1").Range("E4", "F12"))

Or, you can activate the worksheet, and then use method 4 above to

select the range:

   Workbooks("BOOK2.XLS").Sheets("Sheet1").Activate

   ActiveSheet.Range(Cells(4, 5), Cells(12, 6)).Select

7: How to Select a Named Range on the Active Worksheet

------------------------------------------------------

To select the named range "Test" on the active worksheet, you can use

either of the following examples:

   Range("Test").Select

   Application.Goto ("Test")

8: How to Select a Named Range on Another Worksheet in the Same

   Workbook

---------------------------------------------------------------

To select the named range "Test" on another worksheet in the same

workbook, you can use the following example:

   Application.Goto (Sheets("Sheet1").Range("Test"))

Or, you can activate the worksheet, and then use method 7 above to

select the named range:

   Sheets("Sheet1").Activate

   Range("Test").Select

9: How to Select a Named Range on a Worksheet in a Different

   Workbook

------------------------------------------------------------

To select the named range "Test" on a worksheet in a different

workbook, you can use the following example:

   Application.Goto _

      (Workbooks("BOOK2.XLS").Sheets("Sheet2").Range("Test"))

Or, you can activate the worksheet, and then use method 7 above to

select the named range:

   Workbooks("BOOK2.XLS").Sheets("Sheet2").Activate

   Range("Test").Select

10: How to Select a Cell Relative to the Active Cell

----------------------------------------------------

To select a cell that is five rows below and four columns to the left

of the active cell, you can use the following example:

   ActiveCell.Offset(5, 4).Select

To select a cell that is two rows above and three columns to the right

of the active cell, you can use the following example:

   ActiveCell.Offset(-2, -3).Select

11: How to Select a Cell Relative to Another (Not the Active) Cell

------------------------------------------------------------------

To select a cell that is five rows below and four columns to the

right of cell C7, you can use either of the following examples:

   ActiveSheet.Cells(7, 3).Offset(5, 4).Select

   ActiveSheet.Range("C7").Offset(5, 4).Select

12: How to Select a Range of Cells Offset from a Specified Range

----------------------------------------------------------------

To select a range of cells that is the same size as the named range

"Test" but that is shifted four rows down and three columns to the

right, you can use the following example:

   ActiveSheet.Range("Test").Offset(4, 3).Select

If the named range is on another (not the active) worksheet, activate

that worksheet first, and then select the range using the following

example:

   Sheets("Sheet3").Activate

   ActiveSheet.Range("Test").Offset(4, 3).Select

13: How to Select a Specified Range and Resize the Selection

------------------------------------------------------------

To select the named range "Database" and then extend the selection

by five rows, you can use the following example:

   Range("Database").Select

   Selection.Resize(Selection.Rows.Count + 5, _

      Selection.Columns.Count).Select

14: How to Select a Specified Range, Offset and Resized

-------------------------------------------------------

To select a range four rows below and three columns to the right of

the named range "Database" and include two rows and one column more

than the named range, you can use the following example:

   Range("Database").Select

   Selection.Offset(4, 3).Resize(Selection.Rows.Count + 2, _

      Selection.Columns.Count + 1).Select

15: How to Select the Union of Two or More Specified Ranges

-----------------------------------------------------------

To select the union (that is, the combined area) of the two named

ranges "Test" and "Sample," you can use the following example:

   Application.Union(Range("Test"), Range("Sample")).Select

Note that both ranges must be on the same worksheet for this example

to work.

16: How to Select the Intersection of Two or More Specified Ranges

------------------------------------------------------------------

To select the intersection of the two named ranges "Test" and "Sample,"

you can use the following example:

   Application.Intersect(Range("Test"), Range("Sample")).Select

Note that both ranges must be on the same worksheet for this example

to work.

Notes on the Examples

---------------------

 - The ActiveSheet property can usually be omitted, since it is implied

   if a specific sheet is not named. For example, instead of

      ActiveSheet.Range("D5").Select

   you can use

      Range("D5").Select

 - The ActiveWorkbook property can also usually be omitted. Unless a

   specific workbook is named, the active workbook is implied.

 - When you use the Application.Goto method, you cannot use two Cells

   methods within the Range method if the specified range is on

   another (not the active) worksheet. For example, you will receive an

   error message if you use the following example and Sheet1 is not

   the active worksheet:

      Application.Goto _

         (Sheets("Sheet1").Range(Cells(2, 3), Cells(4, 5)))

 - You cannot use the Select method to select a range on any sheet

   other than the active sheet. Instead, you can either use the Activate

   method to activate the correct sheet and then use the Select method,

   or you can use the Application.Goto method to select the range.

 - For any item in quotation marks (for example, the named range "Test"),

   you can also use a variable whose value is a text string. For example,

   instead of

      ActiveWorkbook.Sheets("Sheet1").Activate

   you can use

      ActiveWorkbook.Sheets(myVar).Activate

   where the value of myVar is "Sheet1."

REFERENCES

==========

For more information about any Visual Basic method or property, follow

these steps:

1. From the Help menu in Microsoft Excel version 5.0, choose Contents.

2. Select the "Programming with Visual Basic" topic.

3. Choose the Search button.

4. In the Search box, type the name of the method or property about

   which you want more information, and then choose the Show Topics

   button.

5. Select the topic you want, then choose the Go To button.

KBCategory: kbprg kbcode

KBSubcategory:

Additional reference words: 5.00howto


XL5: Printing Fails After Printing Workbook Multiple Times

Article ID: Q123263

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

 - Microsoft Windows operating system version 3.1, 3.11

 - Microsoft Windows for Workgroups version 3.1, 3.11

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, after you print a workbook several times, and then a

document fails to print, you will be unable to print subsequent documents

from Microsoft Excel.

Note that when this behavior occurs, the file appears to print, and you do

not receive an error message.

CAUSE

=====

This problem occurs after you print a workbook several times. The problem

occurs regardless of the printer driver you are using or the amount of free

system resources on your computer.

Note that this problem may occur more quickly if you use a macro or a

Visual Basic procedure to print a workbook multiple times.

WORKAROUND

==========

To correct this problem, exit and then restart Microsoft Excel.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft Windows

versions listed at the beginning of this article. We are researching

this problem and will post new information here in the Microsoft

Knowledge Base as it becomes available.

KBCategory: kbprint

KBSubcategory:

Additional reference words: 5.00 5.00c


XL5 Err Msg: "File Format No Longer Supported" Creating Add-in

Article ID: Q124180

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0, 5.0c

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you create an add-in, you may receive the

following error message:

   File format no longer supported

When you choose OK, you receive the following error message:

   Document not saved

CAUSE

=====

This behavior occurs when you create an add-in with the same name as an

existing add-in and you choose to overwrite the existing add-in while a

module that references this add-in is open. For example, if you reference

BOOK1.XLA in a module in BOOK2.XLS, you cannot create a new add-in called

BOOK1.XLA while BOOK2.XLS is open.

Note that this behavior occurs only if the add-in that you are creating

contains different information than the existing add-in, even if it is just

a modified version of the existing add-in. Because you cannot open an add-

in for editing, creating an add-in with the same name as an existing add-in

is the only way to "modify" the add-in.

If you open an add-in file either by using the Open command, or by

using a Visual Basic procedure, and you then use the Make Add-In

command to create an add-in with the same name as the open add-in,

you receive the following error message:

   Cannot save this file with the same name as an open document

To stop this error message from being displayed, close Microsoft Excel.

WORKAROUND

==========

To avoid receiving this error message when you create an add-in file,

close any workbooks that contain a module that references the add-in

that you are creating.

MORE INFORMATION

================

In Microsoft Excel versions 5.0 and 5.0c, you cannot open an add-in

for editing. When you open an add-in file while holding down the SHIFT

key, you receive the following error message:

   Cannot open Microsoft Excel 5.0 Add-In for editing. Please edit the

   source document instead.

After you edit the source document, you can use the Make Add-In

command (Tools menu) to update the add-in file with your changes.

However, if a module that references the add-in is open, you receive

the error messages described above.

REFERENCES

==========

For more information about the Make Add-in Command (Tools Menu),

choose the Search button in Help and type:

   add-ins

KBCategory: kbprg kberrmsg

KBSubcategory:

Additional reference words: 5.00 5.00c addins


Excel: Recovering Damaged Files

Article ID: Q109675

----------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 3.0, 4.0, 4.0a

----------------------------------------------------------------------

SUMMARY

=======

Utility programs for personal computers often include a file recovery

utility that you can use to recover damaged or corrupted files. Various

third-party utility applications, including Symantec's Norton Utilities

version 7.0 and Central Point Software's PC Tools version 8.0 for DOS,

contain file recovery utilities that are capable of recovering damaged

Microsoft Excel worksheet files.

In Microsoft Excel, another way to recover damaged worksheets is through

external linking. In certain cases, you can link a new worksheet to a

damaged sheet and recover the last evaluated result in each cell.

MORE INFORMATION

================

For more information on linking worksheets to recover corrupted files,

query on the following words in the Microsoft Knowledge Base:

   corrupted and recover and link

If this process fails, it may still be possible to recover the file using a

file recovery utility program, such as those mentioned above.

Norton Utilities and PC Tools are manufactured by a vendors independent of

Microsoft; we make no warranty, implied or otherwise, regarding these

products' performance or reliability.

KBCategory: kb3rdparty

KBSubcategory:

Additional reference words: 3.00 3.00a 4.00a


Excel AppNote: Built-in Constants in VB, Applications Edition

Article ID: Q112671

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

The Application Note "Built-in Constants in Microsoft Visual Basic

Programming System, Applications Edition," (WE0993) provides a list

of the Microsoft Excel constants and their values for use in

Microsoft Visual Basic Programming System, Applications Edition. The

enclosed WE0993 disk contains the Microsoft Excel 5.0 constants file,

XLCONST.BAS, and the Visual Basic, Applications Edition, constants

file, VBACONST.BAS. You can use these files in Visual Basic version

3.0 projects. These files provide the definitions of these constants

so you can use the name of the constants in your Visual Basic version

3.0 modules. The WE0993 disk also includes a Microsoft Excel workbook

file, XLCONST.XLS, which includes alphabetical and numerical lists of

the Microsoft Excel constants.

You can obtain this Application Note from the following sources:

 - CompuServe, GEnie, and Microsoft OnLine

 - Microsoft Download Service (MSDL)

 - The Internet (Microsoft anonymous ftp server)

 - Microsoft Product Support Services

For complete information, see the "To Obtain This Application Note"

section at the end of this article.

THE TEXT OF WE0993

==================

======================================================================

  Microsoft(R) Product Support Services Application Note (Text File)

         WE0993: BUILT-IN CONSTANTS IN MICROSOFT VISUAL BASIC

               PROGRAMMING SYSTEM, APPLICATIONS EDITION

======================================================================

                                                   Revision Date: 3/94

                                                       1 Disk Included

The following information applies to Microsoft Excel for Windows(TM),

version 5.0.

-----------------------------------------------------------------------

| INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY     |

| ACCOMPANY THIS DOCUMENT (collectively referred to as an Application |

| Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER      |

| EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED      |

| WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR       |

| PURPOSE. The user assumes the entire risk as to the accuracy and    |

| the use of this Application Note. This Application Note may be      |

| copied and distributed subject to the following conditions: 1) All  |

| text must be copied without modification and all pages must be      |

| included; 2) If software is included, all files on the disk(s) must |

| be copied without modification (the MS-DOS(R) utility diskcopy is   |

| appropriate for this purpose); 3) All components of this            |

| Application Note must be distributed together; and 4) This          |

| Application Note may not be distributed for profit.                 |

|                                                                     |

| Copyright (C) 1994 Microsoft Corporation. All Rights Reserved.      |

| Microsoft, MS-DOS, and Visual Basic are registered trademarks and   |

| Windows is a trademark of Microsoft Corporation.                    |

|---------------------------------------------------------------------|

OVERVIEW

========

This Application Note provides a list of the Microsoft Excel constants

and their values for use in Microsoft Visual Basic Programming System,

Applications Edition. The enclosed WE0993 disk contains the Microsoft

Excel 5.0 constants file, XLCONST.BAS, and the Visual Basic,

Applications Edition, constants file, VBACONST.BAS. You can use these

files in Visual Basic version 3.0 projects. These files provide the

definitions of these constants so you can use the name of the

constants in your Visual Basic version 3.0 modules. The WE0993 disk

also includes a Microsoft Excel workbook file, XLCONST.XLS, which

includes alphabetical and numerical lists of the Microsoft Excel

constants.

WHAT ARE BUILT-IN CONSTANTS?

============================

When you create procedures in Microsoft Excel using the Visual Basic

Programming System, Applications Edition, you can use "constants" to

represent values that you use frequently in a procedure. Using

constants makes your code easier to read and maintain. For example, if

you use the value 5.67 frequently, you can define a constant called

<MYVALUE> as 5.67, and then you can use <MYVALUE> in your procedure

everywhere you would use the value 5.67.

Microsoft Excel has built-in constants that are used in Visual Basic

functions, methods, objects, and properties. The Microsoft Excel built-

in constants all begin with the letters "xl," and the Visual Basic,

Applications Edition, built-in constants begin with the letters "vb."

Built-in constants make it easier for you to create procedures in

Microsoft Excel using Visual Basic. For example, to change the

orientation of the active worksheet to Landscape or to check whether a

cell is center-aligned, you could use the following Visual Basic code:

   ActiveWorksheet.PageSetup.Orientation = xlLandscape

   If Range("A1").HorizontalAlignment = xlCenter Then

      MsgBox "Cell A1 is centered!"

   End If

The built-in constants (xlLandscape and xlCenter) are easier to

remember than the numeric values they represent. In addition, when you

use built-in constants, it is easier to read the code and understand

the function the code performs. Without Microsoft Excel's built-in

constants, the lines above would appear as follows:

   ActiveWorksheet.PageSetup.Orientation = 2

   If Range("A1").HorizontalAlignment = -4108 Then

Note how difficult it is to understand these lines without knowing

what the values 2 and -4108 represent.

USING MICROSOFT EXCEL BUILT-IN CONSTANTS IN VISUAL BASIC VERSION 3.0

====================================================================

In Visual Basic in Microsoft Excel, the Microsoft Excel constants and

the Visual Basic, Applications Edition, constants are available

automatically. For the Standard or Professional Editions of Visual

Basic, you must either add the constants file XLCONST.BAS or

VBACONST.BAS to your project so that you can use the constant by name,

or you must use the numeric value of the constant. The Microsoft Excel

constants file (XLCONST.BAS), and the Microsoft Visual Basic,

Applications Edition, constants file (VBACONST.BAS) include the name

of each constant along with the numeric value of that constant. These

files are available on the WE0993 disk that comes with this

Application Note.

LOADING CONSTANTS FROM XLCONST.BAS OR VBACONST.BAS

==================================================

The XLCONST.BAS and VBACONST.BAS files contain the Microsoft Excel and

Visual Basic, Applications Edition, constants that you can use in your

code. For example, to set the orientation of a worksheet in Microsoft

Excel to landscape, you can either set the worksheet's PageSetup

Orientation property to 2, or you can use the constant xlLandscape

supplied in XLCONST.BAS. Using constants in your code makes the code

easier to read. In addition, when you are entering code, you may find

the symbolic constant easier to remember than its numerical specific.

The constants are declared globally so they must be loaded into a code

module, not into a form. To limit the scope of the constants to a form

or procedure, change Global to Const in the declaration and paste them

into the Declaration section of a form or procedure.

To load XLCONST.BAS or VBACONST.BAS into a code module

------------------------------------------------------

1. In the development environment, choose the New Module command from

   the File menu. This adds an empty code module to your project.

2. Make sure the module is the active window, and then choose Load

   Text from the File menu.

3. From the List Files Of Type box, select Basic Files (*.BAS).

4. Select one of the files containing constants, and choose the

   Replace button. If you want to add a file to a module in which you

   already have other declarations, choose the Merge button.

WHERE ARE BUILT-IN CONSTANTS LISTED IN MICROSOFT EXCEL?

=======================================================

All of the built-in constants available in Microsoft Excel are listed

in Visual Basic Reference Help. If you want to know which built-in

constants are available for a particular function, you can look them

up in Microsoft Excel in Visual Basic Reference Help or you can use

the Object Browser.

To look up a built-in constant in Microsoft Excel Help

------------------------------------------------------

1. In Microsoft Excel, choose Contents from the Help menu.

2. In the Microsoft Excel Help Contents window, choose Programming

   With Visual Basic.

3. In the Visual Basic Reference window, choose the Search button.

4. In the Search dialog box, type the name of the function you want to

   view.

5. Choose the Show Topics button.

6. From the Topics list, select the function you want to view, and

   choose the Go To button.

Any built-in constants that are available to the selected function

appear in bold in the help topic text for that function. For example,

the ConvertFormula method uses the following six built-in constants,

all listed in bold: xlA1, xlR1C1, xlAbsolute, xlAbsRowRelColumn,

xlRelRowAbsColumn, and xlRelative.

To look up constants with the Object Browser

---------------------------------------------

1. In a Visual Basic module, choose Object Browser from the View menu.

2. From the Libraries/Workbooks list, select Excel.

3. From the Objects/Modules list, select Constants.

A list of the built-in constants appears in the Methods/Properties

list box.

For a complete list of the Microsoft Excel built-in constants, use the

XLCONST.XLS file located on the WE0993 disk that is included with this

Application Note.

USING THE LISTS OF BUILT-IN CONSTANTS ON THE WE0993 DISK

========================================================

Two lists of these built-in constants are available in the XLCONST.XLS

file that is located on the enclosed WE0993 disk. For your

convenience, these lists are organized alphabetically and numerically.

To print the lists from the XLCONST.XLS file

--------------------------------------------

1. Insert the WE0993 disk in a floppy disk drive on your computer.

2. In File Manager, copy the XLCONST.XLS file from the disk to a

   directory on your hard disk drive.

3. Start Microsoft Excel.

4. Open the XLCONST.XLS file that is located on the directory on your

   hard disk drive, and select the tab of the worksheet that you want

   to print.

5. From the File menu, choose Print.

The information in these lists is organized in the following format

   Constant      |   Object::Statement   |  Value

------------------------------------------------------

   <xlConstant>  |                       | <Value>

                 | <Object>::<Statement> |

                 | <Object>::<Statement> |

where <xlConstant> represents the name of the built-in constant,

<Value> is the numerical value of the built-in constant, and <Object>

is the object to which <Statement> is applied. The following is an

example of an entry for the xlFilterInPlace built-in constant:

   Constant         | Object::Statement     | Value

---------------------------------------------------------

                    |                       |

   xlFilterInPlace  |                       |   1

                    | Range::AdvancedFilter |

In this example, the built-in constant is xlFilterInPlace, its value

is 1, and xlFilterInPlace is used by the AdvancedFilter method, which

is applied to Range.

Note that a built-in constant (xlNone for example) may be available to

multiple functions, so more than one object and statement may be

listed below each built-in constant.

---------------------------------------------------------------------------

TO OBTAIN THIS APPLICATION NOTE

===============================

 - On CompuServe, GEnie, and Microsoft OnLine, Application Notes

   are located in the Microsoft Software Library. You can find

   WE0993 in the Software Library by searching on the word WE0993,

   the Q number of this article, or S14650. WE0993 is a compressed,

   self-extracting file. After you download WE0993, run it to

   extract the file(s) it contains.

 - Application Notes are available by modem from the Microsoft

   Download Service (MSDL), which you can reach by calling (206)

   936-6735. This service is available 24 hours a day, 7 days a week.

   The highest download speed available is 14,400 bits per second (bps).

   For more information about using the MSDL, call (800) 936-4100 and

   follow the prompts. To obtain WE0993, download WE0993.EXE.

   WE0993.EXE is a compressed, self-extracting file. After you

   download WE0993, run it to extract the file(s) it contains.

 - On the Internet, Application Notes are located on the Microsoft

   anonymous ftp server, which you can reach by typing

   "ftp ftp.microsoft.com" (without the quotation marks) at the ">" command

   prompt.

 - If you are unable to access the source(s) listed above, you can

   have this Application Note mailed or faxed to you by calling

   Microsoft Product Support Services Monday through Friday, 6:00 A.M.

   to 6:00 P.M. Pacific time at (206) 635-7070 If you are outside the

   United States, contact the Microsoft subsidiary for your area. To

   locate your subsidiary, call Microsoft International Customer

   Service at (206) 936-8661.

KBCategory: kbprg

KBSubcategory:

Additional reference words: 5.00


XL5: Change to "Prompt Before Saving" Check Box Not Saved

Article ID: Q115138

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel 5.0, you can use the AUTOSAVE.XLA add-in function to

automatically save your workbooks at a time interval that you specify.

When you change the Minutes and Save options, these changes remain in

effect the next time you start Microsoft Excel. However, if you clear the

Prompt Before Saving check box, this change applies only to the current

session of Microsoft Excel. (That is, when you restart Microsoft Excel,

the Prompt Before Saving check box is automatically reselected.)

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. This problem was corrected in

Microsoft Excel for Windows version 5.0c.

MORE INFORMATION

================

You can use a macro to clear the Prompt Before Saving check box. If you

want this macro to start automatically each time you run Microsoft Excel,

create the following Visual Basic, Applications Edition, macro and store it

in your Personal Macro Workbook (which should be located in the XLSTART

subdirectory).

NOTE: For this macro to run correctly, the AUTOSAVE.XLA add-in macro must

be loaded by choosing the Add-Ins command from the Tools menu.

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided 'as is' and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose. Note that a line that is preceded by

an apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the procedure. Note

also that an underscore character (_) indicates that code continues from

one line to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This Manual"

section in the "Document Conventions" section of the "Visual Basic User's

Guide."

Visual Basic Macro

------------------

Sub Auto_Open()

    Application.SendKeys ("%p~")

    Application.Run _

       Macro:=Range("AUTOSAVE.XLA!mcp01.AutoSavePreferences")

End Sub

REFERENCES

==========

For more information about the SendKeys function, choose the Search button

in Visual Basic Help and type:

   SendKeys

KBCategory: kbprg kbcode

KBSubcategory:

Additional reference words: 5.00 reset retain setting


XL5: Can't Get or Set Properties of X Axis in XY Scatter Chart

Article ID: Q111972

----------------------------------------------------------------------

The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

----------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel version 5.0, you may receive one of the following error

messages when you attempt to set or return the x axis scale properties for

an xy (scatter) chart:

   Run-time error '1005':

   "Unable to set the <property> property of the axis class"

   -or-

   Run-time error '1005':

   "Unable to get the <property> property of the axis class"

CAUSE

=====

The following Visual Basic axis class properties for the x axis of an

xy (scatter) chart may cause the above error messages:

   <object>.Axes(xlCategory).MinorUnit

   <object>.Axes(xlCategory).MajorUnit

   <object>.Axes(xlCategory).MinimumScale

   <object>.Axes(xlCategory).MaximumScale

   <object>.Axes(xlCategory).MinimumScaleIsAuto

   <object>.Axes(xlCategory).MaximumScaleIsAuto

   <object>.Axes(xlCategory).MinorUnitIsAuto

   <object>.Axes(xlCategory).MajorUnitIsAuto

   <object>.Axes(xlCategory).ScaleType

WORKAROUND

==========

To set any of the above properties when the axis in question is the x

axis in an (xy) scatter chart, use the Application.ExecuteExcel4Macro

method with the Microsoft Excel 4.0 SCALE() macro command. Below is the

syntax of the Visual Basic command:

   ' Enter the following line of code as a single, continuous line:

   Application.ExecuteExcel4Macro _

      ("SCALE(min_num,max_num,major,minor,cross,logarithmic,reverse,max)")

The following values are acceptable for the arguments for this method

   Argument      value     equivalent to

   ---------------------------------------------------

   min_num       TRUE      MinimumScaleIsAuto = True

                 <value>   MinimumScale = <value>

   max_num       TRUE      MaximumScaleIsAuto = True

                 <value>   MaximumScale = <value>

   major         TRUE      MajorUnitIsAuto = True

                 <value>   MajorUnit = <value>

   minor         TRUE      MinorUnitIsAuto = True

                           MinorUnit = <value>

   cross         TRUE      Crosses = xlAutomatic

                              (if max = FALSE)

                 <value>   Crosses = xlCustom, CrossesAt = <value>

                              (if max = FALSE)

   logarithmic   TRUE      ScaleType = xlLogarithmic

                 FALSE     ScaleType = xlLinear

   reverse       TRUE      ReversePlotOrder = True

                 FALSE     ReversePlotOrder = False

   max           TRUE      Crosses = xlMaximum

                 FALSE     see "cross", above

For example, to set the minimum scale of the X axis to 5, the maximum

scale to 20, and reverse the plot order of the axis, you would use

this command:

'  This line selects the axis.

   ActiveSheet.Axes(xlCategory).Select

'  This line makes the changes.

   Application.ExecuteExcel4Macro "SCALE(5,20,,,,,TRUE)"

Note that the above macro will work only if the chart is created as a

separate chart sheet (that is, it will not work with a chart embedded on a

worksheet).

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. This problem was corrected in

Microsoft Excel for Windows version 5.0c.

REFERENCES

==========

For more information about ExecuteExcel4Macro choose the search button in

Visual Basic Help and type:

        ExecuteExcel4Macro

KBCategory: kbprg kbcode kbmacro kbbuglist kbfixlist

KBSubcategory:

Additional reference words: 5.00


XL5: Advanced Filter Extracts All Records

Article ID: Q117753

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel version 5.0, the Advanced Filter may return all records

to the "Copy To" range, even though the criteria to return all records is

not specified.

CAUSE

=====

This problem occurs when a Print Area is set on the worksheet and you do

either of the following:

 - You insert a row or column in the Print Area region.

   -or-

 - You insert a row above the list range.

When this problem occurs, the Advanced Filter will not function properly on

any worksheet until you follow one of the workarounds below.

WORKAROUNDS

===========

To work around this problem, do either of the following:

 - Exit and restart Microsoft Excel.

   -or-

 - Save the worksheet in SYLK file format, close the worksheet, and reopen

   it.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. This problem was corrected in

Microsoft Excel for Windows version 5.0c.

KBCategory: kbprb

KBSubcategory:

Additional reference words: 5.00 extract


XL5: Opening Quattro Pro WQ1 File Causes GP Fault

Article ID: Q119881

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

--------------------------------------------------------------------

SUMMARY

=======

A file saved in Quattro Pro for DOS version 5.0 in a Quattro Pro WQ1 format

will cause a general protection (GP) fault when you open it in Microsoft

Excel for Windows.

MORE INFORMATION

================

Although Microsoft Excel 5.0 can convert files from the WQ1 format, there

is an incompatibility in the format when the file is saved from Quattro Pro

5.0 for DOS. This conflict causes a GP fault when the file is opened in

Microsoft Excel.

NOTE: The default format for Quattro Pro for DOS version 5.0 is WQ2.

A file saved in the WQ1 file format from Quattro Pro 4.0 for DOS or Quattro

Pro 5.0 for Windows can be opened successfully in Microsoft Excel 5.0.

The following table lists the file formats that are available in Quattro

Pro for DOS version 5.0 that can be opened in Microsoft Excel:

     .WKS          Lotus 1-2-3 version 1a

     .WK1          Lotus 1-2-3 version 2.x

     .SLK          Multiplan

     .DBF          dBASE

     .WRK, .WR1    Symphony

Note: These file formats do not support multi-sheet files.

WORKAROUNDS

===========

To work around this problem, follow the appropriate procedure below.

If you have a version of Quattro Pro earlier than 5.0:

1. Open the file into an earlier version of Quattro Pro, such as

   Quattro Pro 5.0 for Windows.

2. Save the file in the WQ1 format or in a Lotus WK3 format. Close the

   file.

3. Open the file in Microsoft Excel 5.0.

-or-

If an earlier version of Quattro Pro is unavailable, do the following:

1. Using Quattro Pro 5.0 for DOS, save each sheet in the workbook in

   a Lotus WK1 format file. (Quattro Pro for DOS version 5.0 will not save

   in a WK3 format.)

2. Open each WK1 sheet into Microsoft Excel, and drag the tabs for each

   sheet into one workbook.

3. Save the file as a Microsoft Excel Workbook.

The products included here are manufactured by vendors independent of

Microsoft; we make no warranty, implied or otherwise, regarding these

products' performance or reliability.

REFERENCES

==========

For more information about using Quattro Pro spreadsheets in

Microsoft Excel, choose the Search button in Help and type:

   Quattro Pro

KBCategory: kb3rdparty

KBSubcategory:

Additional reference words: 5.00 5.00c gpf kb3rdparty qpro


XL5: Some Functions Unexpectedly Return #NAME Error Value

Article ID: Q121730

----------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

 - Microsoft Excel for the Macintosh, version 5.0

----------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, you may experience the following problems when you use

a worksheet function that is included in the Analysis ToolPak add-in:

 - You receive the #NAME error value.

   -or-

 - The function you want to use is not available in the Function Wizard.

CAUSE

=====

The Analysis ToolPak is not always automatically loaded when you start

Microsoft Excel.

WORKAROUND

==========

To work around this problem, choose Add-ins from the Tools menu, and select

the Analysis ToolPak check box or the Analysis ToolPak--VBA check box.

Note that for the change to take affect, you may need to select the

formulas in the cells that contain the #NAME error, and recalculate the

worksheet (to do this, press F9).

If the Analysis ToolPak is not available in the Add-ins dialog box, you may

need to run the Setup program and reinstall the Add-ins.

MORE INFORMATION

================

The worksheet functions that are loaded as part of the Analysis

ToolPak include the following:

ACCRINT        DEC2BIN     HEX2OCT          ISEVEN          SERIESSUM

ACCRINTM       DEC2HEX     IMABS            ISODD           SQRTPI

BESSELI        DEC2OCT     IMAGINARY        LCM             TBILLEQ

BESSELJ        DELTA       IMARGUMENT       MDURATION       TBILLPRICE

BESSELK        DISC        IMCONJUGATE      MROUND          TBILLYIELD

BESSELY        DOLLARDE    IMCOS            MULTINOMIAL     WORKDAY

BIN2DEC        DOLLARFR    IMDIV            NETWORKDAYS     XIRR

BIN2HEX        DURATION    IMEXP            NOMINAL         XNPV

BIN2OCT        EDATE       IMLN             OCT2BIN         YEARFRAC

COMPLEX        EFFECT      IMLOG10          OCT2DEC         YIELD

CONVERT        EOMONTH     IMLOG2           OCT2HEX         YIELDDISC

COUPDAYBS      ERF         IMPOWER          ODDFPRICE       YIELDMAT

COUPDAYS       ERFC        IMPRODUCT        ODDFYIELD

COUPDAYSNC     FACTDOUBLE  IMREAL           ODDLPRICE

COUPNCD        FVSCHEDULE  IMSIN            ODDLYIELD

COUPNUM        GCD         IMSQRT           PRICE

COUPPCD        GESTEP      IMSUB            PRICEDISC

CUMIPMT        HEX2BIN     IMSUM            PRICEMAT

CUMPRINC       HEX2DEC     INTRATE          RECEIVED

For more information about the Analysis ToolPak, choose the Search button

in Help and type:

     Analysis ToolPak, installation

KBCategory: kbusage kberrmsg kbtool

KBSubcategory:

Additional reference words: 5.00 5.00a 5.00c Atp tool pack toolpack

tools pak


Excel: 1-2-3 Commands to Attach Text Data Labels to XL Chart

Article ID: Q111354

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 3.0, 4.0, 4.0a, 5.0, 5.0c

--------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel versions 4.0 and earlier, there is no way to

automatically place a group of text data labels on a chart.

To create text data labels, you must attach them to data points by using

the Attach Text command from the Chart menu. Each data label must be

manually updated to refer to the original worksheet cell containing the

label to be attached to the data point.

WORKAROUND

==========

Because Microsoft Excel has built-in Lotus 1-2-3 compatibility, you can add

data labels as a group by using the equivalent Lotus keystrokes to create a

graph.

MORE INFORMATION

================

To use 1-2-3 commands to add data labels as a group, do the following:

1. On a new worksheet, enter the following:

      A1: Dog      B1: 10

      A2: Cat      B2: 20

      A3: Mouse    B3: 30

      A4: Bird     B4: 40

2. From the Help menu, choose Lotus 1-2-3. In the Help For Lotus 1-2-3

   Users Dialog box, under Help Options, select the Demo option.

3. To create a chart using Lotus 1-2-3 keystrokes, do the following:

   a. Press G (Graph), X.

   b. Select cells A1:A4 and choose OK in the Help For Lotus 1-2-3

      User's dialog box.

   d. Press A

   e. Select cells B1:B4 to define the first series, and then choose OK.

   f. Press O (Options), D (Data-Labels), A.

   g. Select cells A1:A4, and then choose OK.

   g. To return to the main Graph menu, press Q (Quit) and then press Q

      again.

   h. To create an xy (scatter) chart, press T (Type), X (XY).

   The demo mode will draw the chart and return to the main Graph menu.

   i. Press S (Save), A (Attach), and select the range on the worksheet

      that you want to contain the chart. Choose OK.

Close the Help For Lotus 1-2-3 Users dialog box. The chart is displayed on

the worksheet with the text from column A as the data labels. You can then

modify this chart.

NOTE: The default chart type is a line chart. To create a different style

of chart after selecting your series A, press T (Type), and then select a

different chart type.

To change the chart type once the chart has been created, from the Chart

menu, choose Main Chart, and select a different type of chart.

For additional information, please see the following article(s) in the

Microsoft Knowledge Base:

   ARTICLE-ID: Q118485

   TITLE     : Excel: Macro to Add Labels to Points in an XY (Scatter)

               Chart

   ARTICLE-ID: Q107484

   TITLE     : Excel  AppNote: Tips for Manipulating Data in a Chart

               (XE0183)

KBCategory: kbother

KBSubcategory:

Additional reference words: 3.00 4.00 4.00a


Cannot Find 'Filename' Saving or Opening File

Article ID: Q119057

-----------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for the Macintosh, versions 1.x, 2.x, 3.0, 4.0, 5.0

-----------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you save or open a file, you may receive one of

the following error messages if the path name to the file location is

longer than 255 characters:

 - Cannot find 'Filename'

   -or-

 - Cannot access 'Foldername'

CAUSE

=====

This behavior is by design in Microsoft Excel. The path name of a

file that you open or save is limited to 255 characters because of

the way Microsoft Excel uses the file name internally. For example,

if you save or open a file that has the following path name

   Applications:Microsoft Excel:Folder 1...Filename

where the number of characters from the Applications folder to the

file's name "Filename" exceeds 255, you receive the error messages

above.

In Microsoft Excel version 5.0, when you save a file, you receive the

following error message

   Cannot access 'Foldername'

where Foldername is the name of one of the folders from the beginning

of the path name.

MORE INFORMATION

================

Note that in Microsoft Excel version 5.0, you can create a new folder

by using the New button when you choose Save As from the File menu.

KBCategory: kbenv

KBSubcategory:

Additional reference words: 1.x 2.x 3.00 4.00 5.00 err msg


Procedure to Export Text File with Comma AND Quote Delimiter

Article ID: Q123183

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

 - Microsoft Excel for the Macintosh, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel, there is no menu command to automatically export

data to a text file so that the text file is exported with quotation

marks AND commas as delimiters. For example, there is no command to

automatically create a text file that contains the following:

   "Text1","Text2","Text3"

You can create this functionality in Microsoft Excel by using a

Visual Basic procedure.

MORE INFORMATION

================

You can use the Print # statement in a Visual Basic procedure similar

to the following to export a text file with quotation marks AND

commas as the delimiters. For the procedure to function properly, you must

select the cells that contain your data before you run it.

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of

merchantability and/or fitness for a particular purpose. This Visual

Basic procedure is provided 'as is' and Microsoft does not guarantee

that it can be used in all situations. Microsoft does not support

modifications of this procedure to suit customer requirements for a

particular purpose. Note that a line that is preceded by an

apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the

procedure. Note also that an underscore character (_) indicates that

code continues from one line to the next. You can type lines that

contain this character as one logical line or you can divide the

lines of code and include the line continuation character. For more

information about Visual Basic for Applications programming style,

see the "Programming Style in This Manual" section in the "Document

Conventions" section of the "Visual Basic User's Guide."

   Sub QuoteCommaExport()

      ' Dimension all variables

      Dim DestFile As String

      Dim FileNum As Integer

      Dim ColumnCount As Integer

      Dim RowCount As Integer

      ' Prompt user for destination filename

      DestFile = InputBox("Enter the destination filename" _

          & Chr(10) & "(with complete path):", "Quote-Comma Exporter")

      ' Obtain next free file handle number

      FileNum = FreeFile()

      ' Turn error checking off

      On Error Resume Next

      ' Attempt to open destination file for output

      Open DestFile For Output As #FileNum

      ' If an error occurs report it and end

      If Err <> 0 Then

         MsgBox "Cannot open filename " & DestFile

         End

      End If

      ' Turn error checking on

      On Error GoTo 0

      ' Loop for each row in selection

      For RowCount = 1 To Selection.Rows.Count

         ' Loop for each column in selection

         For ColumnCount = 1 To Selection.Columns.Count

            ' Write current cell's text to file with quotes

            Print #FileNum, """" & Selection.Cells(RowCount, _

               ColumnCount).Text & """";

            ' Check if cell is in last column

            If ColumnCount = Selection.Columns.Count Then

               ' If so then write a blank line

               Print #FileNum,

            Else

               ' Otherwise write a comma

               Print #FileNum, ",";

            End If

         ' Start next iteration of ColumnCount loop

         Next ColumnCount

      ' Start next iteration of RowCount loop

      Next RowCount

      'Close destination file

      Close #FileNum

   End Sub

For additional information, please see the following article(s) in the

Microsoft Knowledge Base:

   ARTICLE-ID: Q103985

   TITLE     : Macro to Export Text File with Comma AND Quote Delimiters

KBCategory: kbprg kbcode

KBSubcategory:

Additional reference words: 5.00 5.00c export quotes commas xl5


Excel 5.0c for Windows: Summary List of Known Issues

Article ID: Q119376

---------------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0c

---------------------------------------------------------------------------

SUMMARY

=======

The following is a list of bugs confirmed in Microsoft Excel version 5.0c

for Windows. This is not a comprehensive list and is current as of August

31, 1994.

For more information on the specific bugs listed in this article, query in

the Microsoft Knowledge Base on the article ID (Qnnnnnn).

==========================

BUG LIST FOR VERSION 5.0c

==========================

 - XL5: GP Fault When Macro Closes Its Own Workbook

 - XL5: GP Fault Using Tab Scrolling Button in Embedded Worksheet

 - XL5: Formatting and Charts Not Saved to .WQ1 Format

 - XL5: Custom Default Chart Format Not Applied to Embedded Chart

 - XL5: Problems Scaling Embedded Excel Chart Object in Word

 - XL5: GP Fault in VBA.DLL on Exit After Saving to Floppy Drive

 - XL5: Can't Link to Worksheet with Exclamation Point in Name

 - XL5: Functions Not Saved to Quattro Pro File Format

 - XL5: GP Fault If Many Line Continuation Characters in Module

 - XL5: Infinite Loop If OLE Automation Server Busy

 - XL5: Chart References to Pivot Table Not Updated Correctly

 - XL5: Embedded Chart Object Grouped with Drawing Objects

 - XL5: Save As or Delete Dialog Box Doesn't Close on OK

 - XL5: "Linked Document Is Unavailable" Editing Linked Chart

 - XL5: OLE Automation Error Using Quit Method with GetObject

 - XL5: Can't Open File with Chart That Refers to Bound Worksheet

 - XL5: Excel Hangs Deleting Toolbar Shortcut Submenu Item

 - XL5: Excel Displays Alerts when Activated Using CreateObject

--------------------------------------------------------------------

XL5: GP Fault When Macro Closes Its Own Workbook

Article ID: Q108507

In Microsoft Excel, you may receive a general protection (GP) fault if

a Visual Basic macro is started by an OnSheetDeactivate command and

the macro then closes the workbook in which it is contained.

--------------------------------------------------------------------

XL5: GP Fault Using Tab Scrolling Button in Embedded Worksheet

Article ID: Q109977

If you edit an embedded Microsoft Excel worksheet object in a Microsoft

Word for Windows document, and the first sheet in the embedded workbook is

hidden, you may receive a general protection (GP) fault when you click the

first tab scrolling button on the worksheet.

--------------------------------------------------------------------

XL5: Formatting and Charts Not Saved to .WQ1 Format

Article ID: Q110708

In Microsoft Excel, the formatting and any chart sheets contained in

the file may be lost when you save the file in the Quattro Pro for DOS

(.WQ1) file format (a format used by Borland International's Quattro

Pro spreadsheet application).

--------------------------------------------------------------------

XL5: Custom Default Chart Format Not Applied to Embedded Chart

Article ID: Q110829

In Microsoft Excel, when you create an embedded chart, the built-in

default chart format is always applied (even when you select a custom

chart format as the default).

--------------------------------------------------------------------

XL5: Problems Scaling Embedded Excel Chart Object in Word

Article ID: Q111805

When you scale a Microsoft Excel Chart object in a Microsoft Word for

Windows document, the chart plot area may be scaled while the chart

text and legend, as well as the object frame, remain unchanged.

When you scale a chart object that is an embedded chart, the chart in

the object is displayed off center, its worksheet cells are visible,

and the Chart object frame returns to its original size.

--------------------------------------------------------------------

XL5: GP Fault in VBA.DLL on Exit After Saving to Floppy Drive

Article ID: Q111906

In Microsoft Excel, if you save a workbook that contains a Visual

Basic module to a floppy disk, and then remove the floppy disk from

the disk drive, if you then save the file with the same filename to

another drive, you receive the following error message

   File already exists

and then the following error message:

   Document not saved

When you quit Microsoft Excel, you receive a general protection (GP)

fault in module VBA.DLL.

--------------------------------------------------------------------

XL5: Can't Link to Worksheet with Exclamation Point in Name

Article ID: Q111941

If you link information from a Microsoft Excel worksheet to a client

application when the worksheet name contains an exclamation point

(!), one of the following may occur:

 - You receive an error message in the client application

   -or-

 - The information appears in the client application, but the link

   cannot be edited or updated

--------------------------------------------------------------------

XL5: Functions Not Saved to Quattro Pro File Format

Article ID: Q111981

In Microsoft Excel, when you save a worksheet to the Quattro Pro for DOS

(.WQ1) file format, if the file contains any of the following functions

   - N()

   - T()

   - NPER()

   - FV() - only if you use the optional arguments pv and type

   - PMT() - only if you use the optional arguments fv and type

   - PV() - only if you use the optional arguments fv and type

you receive the following error message:

   Cannot write record. (Cell: A1)

This error message appears with the reference of the cell that

contains one of the functions listed above. When you open the file

you saved, the cell that contained one of the functions listed above

now contains the value of the function, but the function is gone.

--------------------------------------------------------------------

XL5: GP Fault If Many Line Continuation Characters in Module

Article ID: Q111984

In Microsoft Excel, you may receive a general protection (GP) fault if you

copy and paste lines of code that contain the line-continuation character

(_) in a Visual Basic subroutine.

--------------------------------------------------------------------

XL5: Infinite Loop If OLE Automation Server Busy

Article ID: Q112030

If you use the CreateObject function in a Visual Basic procedure in

Microsoft Excel to create an OLE Automation object, and you then request

information from the object (for example, to display a dialog box), if you

switch back to Microsoft Excel (the Client application), you may receive

the following error message:

   Microsoft Excel is waiting for another application to complete an OLE

   action

The only available buttons are OK and Help. The error message continues to

appear when you choose OK.

--------------------------------------------------------------------

XL5: Chart References to Pivot Table Not Updated Correctly

Article ID: Q112031

In Microsoft Excel, if you create a chart from data in a pivot table,

and you move either the chart or the pivot table to another workbook,

changes you make to the pivot table while the workbook containing the

chart is closed may not be reflected in the chart.

--------------------------------------------------------------------

XL5: Embedded Chart Object Grouped with Drawing Objects

Article ID: Q112078

In Microsoft Excel, if you create multiple drawing objects on a worksheet

and group them, and you then create an embedded chart object, the chart

becomes part of the group when you close and reopen the file that contains

the objects. This problem occurs whether you group the drawing objects

before or after you create the embedded chart.

--------------------------------------------------------------------

XL5: Save As or Delete Dialog Box Doesn't Close on OK

Article ID: Q112178

In Microsoft Excel when you use the SAVE.AS? function or the FILE.DELETE?

function in a Microsoft Excel version 4.0 macro sheet, and you use

ERROR(FALSE) to avoid displaying error messages, the Save As or the Delete

dialog box does not close when you choose OK.

--------------------------------------------------------------------

XL5: "Linked Document Is Unavailable" Editing Linked Chart

Article ID: Q112348

When you edit a linked Microsoft Excel version 4.0 chart object in an

object linking and embedding (OLE) version 1.0 application (the

client), one of the following may occur:

 - In Microsoft Write, you receive the following error message:

      Linked document is unavailable

   -or-

 - In Microsoft Word for Windows version 2.0, the chart object does not

   open for editing.

--------------------------------------------------------------------

XL5: OLE Automation Error Using Quit Method with GetObject

Article ID: Q114225

If you use the GetObject function with a filename in a Microsoft Visual

Basic version 3.0 procedure to open a Microsoft Excel workbook and you then

use the Quit method to quit Microsoft Excel, the following error message

appears:

   OLE Automation error. Worksheet does not have Quit method.

--------------------------------------------------------------------

XL5: Can't Open File with Chart That Refers to Bound Worksheet

Article ID: Q118957

In Microsoft Excel, when you open a Microsoft Excel version 4.0 file that

contains a chart with references to a bound worksheet, one of the following

occurs if the worksheet name contains a bracket character ([]):

 - If the file is a workbook, and the sheet that contains the chart is the

   first sheet in the workbook, you receive the following error message:

      Cannot load an empty Microsoft Excel 4.0 workbook

   -or-

 - If the file is a workbook, and the sheet that contains the chart is NOT

   the first sheet in the workbook, you do not receive an error message,

   but the workbook does not open.

   -or-

 - If the file is a worksheet or a chart, you do not receive an error

   message, but the worksheet or chart file does not open.

--------------------------------------------------------------------

XL5: Excel Hangs Deleting Toolbar Shortcut Submenu Item

Article ID: Q118959

In Microsoft Excel, when you delete a custom submenu item from the Toolbar

shortcut menu using the Delete method in a Visual Basic, Applications

Edition, procedure, your computer stops responding.

--------------------------------------------------------------------

XL5: Excel Displays Alerts when Activated Using CreateObject

Article ID: Q119378

When you use the CreateObject function in a Visual Basic version 3.0

procedure to create a Microsoft Excel OLE Automation object, the

procedure returns an error message if Microsoft Excel is already

running.

--------------------------------------------------------------------

KBCategory: kbbuglist

KBSubcategory:

Additional reference words: 5.00c xl5c


System Error -192 Starting Microsoft Excel

Article ID: Q120256

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for the Power Macintosh, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

When you start Microsoft Excel 5.0 for the Power Macintosh on a

non-Power Macintosh computer, you receive a System Error -192 error

message.

WORKAROUND

==========

If you chose the incorrect platform during setup, run the Setup program

again from Disk 1 of your Microsoft Excel Setup disks, and in the

Maintenance Mode dialog box, choose Remove All. Then run the Setup program

again to install Microsoft Excel for the correct platform.

MORE INFORMATION

================

To check to see which version of Microsoft Excel 5.0 you installed

(Macintosh Only, Macintosh and Power Macintosh, or Power Macintosh Only),

do the following:

1. Select the icon for the Microsoft Excel application.

2. From the File menu, choose Get Info.

3. Compare the Size entry with the values in the following table:

         Size          Platform

         -------------------------------------------

          5209549      Macintosh ONLY

         11904215      Macintosh and Power Macintosh

          7365598      Power Macintosh ONLY

You must install Microsoft Excel version 5.0 for Macintosh ONLY or for

Macintosh and Power Macintosh in order to run the application on a non-

Power Macintosh computer.

KBCategory: kbenv kberrmsg

KBSubcategory: xlmac

Additional reference words: 5.00 err msg


"Invalid Path..." Error Installing Lotus 1-2-3 WK4 Converter

Article ID: Q124181

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

--------------------------------------------------------------------

SYMPTOMS

========

When you run the Setup program for the Lotus 1-2-3 WK4 file

converter, you may receive the following error message:

   Tried to create an invalid path using 'E:\EXCEL' and 'XLCONVW4.DLL'

CAUSE

=====

This problem occurs if you are running a workstation installation of

Microsoft Excel from a protected network server drive. The behavior

occurs because the Lotus 1-2-3 WK4 file converter Setup program

installs the file XLCONVW4.DLL to your Microsoft Excel directory. If

you are running Microsoft Excel from a network server drive, the

Setup program attempts to install the file to the server drive. If

the network drive is protected, or you do not have Write privileges

to the drive, the file cannot be written, and you receive the error

message described above.

WORKAROUND

==========

To work around this problem, use any of the following methods.

Method 1: Contact your network administrator to see about changing your

          rights to the Microsoft Excel directory temporarily in order to

          install the converter.

Method 2: Obtain the updated "Lotus 1-2-3 WK4 File Converter" (WE1130)

          Application Note. This Application Note contains information

          about how to use an alternative installation method to install

          the converter to a directory other than your Microsoft Excel

          directory.

          These instructions were added after the initial release of the

          Application Note. The updated version has a release date of

          12/94. For more information about obtaining this Application

          Note, please see the following article(s) in the Microsoft

          Knowledge Base:

            ARTICLE-ID: Q122583

            TITLE     : XL5: AppNote: Lotus 1-2-3 WK4 File Converter

                        (WE1130)

Method 3: Decompress the file XLCONVW4.DLL to a directory on your local

          hard drive, and modify your EXCEL5.INI file to point to this

          location by using the following steps:

          (Note that this procedure assumes that you have the Decomp

          utility, DECOMP.EXE. This utility is located on Disk 1 of the

          Microsoft Excel version 5.0 disks. This file is not included with

          Microsoft Excel version 5.0c.)

          a. Copy the utility DECOMP.EXE to a directory on your hard drive

             that is located in the PATH statement in your AUTOEXEC.BAT

             file.

          b. Insert the disk that contains the Lotus 1-2-3 WK4 file

             converter, or connect to the network drive where the converter

             is located.

          c. Type the following at the MS-DOS prompt

               decomp <drive>:\XLCONVW4.DL_ <destination>:\XLCONVW4.DLL

             where <drive> is the drive that contains the converter file,

             and <destination> is the drive and directory to which you want

             to copy the converter file.

          d. Open your EXCEL5.INI file (located in your Microsoft Windows

             directory) in a text editor, such as Notepad. Add the

             following line to the [Converters] section

                conv<n>=Lotus 1-2-3 Release 4 or 5

                   (*.wk4),<destination>\XLCONVW4.DLL,*.wk4

             where <n> is the number of the next consecutive converter,

             such as conv2 if conv1 is already listed, and <destination> is

             the drive and directory that contains the converter file.

MORE INFORMATION

================

Lotus 1-2-3 is manufactured by Lotus Corporation, a vendor independent of

Microsoft; we make no warranty, implied or otherwise, regarding this

product's performance or reliability.

KBCategory: kb3rdparty kbnetwork

KBSubcategory:

Additional reference words: 5.00 5.00c


XL5: VB Procedure to Emulate Find Command

Article ID: Q124924

---------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

 - Microsoft Excel for the Macintosh, version 5.0

 - Microsoft Excel for Windows NT, version 5.0

---------------------------------------------------------------------

SUMMARY

=======

You can create a Visual Basic, Applications Edition, procedure that

emulates the behavior of the Microsoft Excel Find command. To do this, use

the Find and FindNext methods in a Visual Basic module.

The code in the "More Information" section of this article enables you to

find all occurrences of a search string in the active worksheet without

changing the selection or the active cell. The code displays a message box

when the search text is located. If the search text is not found, a "Search

Value Not Found" message box is displayed.

NOTE: You can easily modify this code by replacing the MsgBox statements

with the code that you want to run whenever the search text is or is not

found.

MORE INFORMATION

================

Visual Basic Code Example

-------------------------

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided 'as is' and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose. Note that a line that is preceded by

an apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the procedure. Note

also that an underscore character ( _ ) indicates that code continues from

one line to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This Manual"

section in the "Document Conventions" section of the "Visual Basic User's

Guide."

Sub FindStrings()

 Dim firstCell, nextCell, stringToFind As String

   'show an input box and return the entry to a variable

   stringToFind = Application.InputBox("String to find?", "Search String")

    'set an object variable to evaluate the Find command

    Set firstCell = Cells.Find(what:=stringToFind, lookat:=xlWhole, _

        searchdirection:=xlPrevious)

    'If the string is not found, show this message box

    If firstCell Is Nothing Then

        MsgBox "Search Value Not Found.", vbExclamation

    Else

        'otherwise, find the next occurrence of the search text

        nextCell = Cells.FindNext(after:=Range(firstCell.Address)).Address

        'and show it's address in a message box

        MsgBox nextCell

        'continue finding the next occurrence as long as the address of _

         the found cell is not the same as the first cell

        Do While firstCell.Address <> nextCell

            nextCell = Cells.FindNext(after:=Range(nextCell)).Address

            MsgBox nextCell

        Loop

    End If

End Sub

If the range in which the search text is to be found is in a small portion

of the worksheet, use the For...Each control structure instead of the Find

method (For...Each requires less code). The advantage to the Find method is

that it is faster than For...Each on large ranges such as an entire

worksheet.

If the string that you are searching for is only a portion of the contents

of a cell, use the "xlPart" constant for the lookat named argument of the

Find method.

REFERENCES

==========

"Visual Basic User's Guide," pages 148, 149

For additional information, please see the following article(s) in the

Microsoft Knowledge Base:

   ARTICLE-ID: Q108892

   TITLE     : XL5: Cells.Find Returns Error When No Match Found

KBCategory: kbprg kbcode

KBSubcategory:

Additional reference words: 5.00 FindNext Find Searching VBA


XL5: Cells.Find Returns Error When No Match Found

Article ID: Q108892

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

When you run a recorded Visual Basic macro, the Cells.Find, columns.find,

Selection.Find, and Range.Find functions will produce the following macro

error if no data is found:

   Runtime error '91':

   Object variable not Set

This macro error occurs because the Visual Basic Find method returns

a NULL value which makes activating a cell impossible.

WORKAROUND

==========

The following Visual Basic example will attempt to find the text

string "mystring" and produces an alert message which will not cause

the macro to halt.

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of merchantability

and/or fitness for a particular purpose. This Visual Basic procedure

is provided 'as is' and Microsoft does not guarantee that it can be

used in all situations. Microsoft does not support modifications of

this procedure to suit customer requirements for a particular purpose.

Note that a line that is preceded by an apostrophe introduces a

comment in the code--comments are provided to explain what the code is

doing at a particular point in the procedure. Note also that an

underscore character (_) indicates that code continues from one line

to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This

Manual" section in the "Document Conventions" section of the "Visual

Basic User's Guide."

Sub Find_Macro()

    mystring = "mystring"

    Set RangeObj = Cells.Find(What:=mystring, After:=ActiveCell, _

    LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, _

    SearchDirection:=xlNext, MatchCase:=False)

    If RangeObj Is Nothing Then MsgBox "Not Found" Else RangeObj.Select

End Sub

KBCategory: kbcode

KBSubcategory:

Additional reference words: 5.00 VB


Excel: Calculating Weighted Averages

Article ID: Q109211

-------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 2.x, 3.0, 4.0, 4.0a, 5.0

 - Microsoft Excel for the Macintosh, versions 2.x, 3.0, 4.0, 5.0

 - Microsoft Excel for OS/2, versions 2.2, 3.0

-------------------------------------------------------------------

SUMMARY

=======

A weighted average differs from an average in that a weighted average

returns a number that depends both on its value and its weight.

Consider the following example:

A shipment of 10 cases of widgets costs $0.20 per case.

Due to heavy consumption of widgets, a shipment of 40 cases now

costs $0.30 per case.

The average cost of these cases ($0.20+$0.30)/2 = $0.25 would not

be a accurate measure of the average cost of the cases since it

does not take into account that there are thirty more cases being

purchased at $0.30 than at $0.20.  The weighted average would return

$0.28, a more accurate representation of the average cost of a case

of widgets.

MORE INFORMATION

===============

To find a weighted average, do the following:

1. In a new worksheet, enter the following data:

   A1:  Cost     B1:  Cases

   A2:  $.20     B2:  10

   A3:  $.30     B3:  40

2. Follow the appropriate procedure below for your version of Microsoft

   Excel:

   Microsoft Excel Versions 4.0 and Later

   --------------------------------------

   Enter the formula below in any blank cell. It is NOT necessary to enter

   this formula as an array.

      =SUMPRODUCT(A2:A3,B2:B3)/SUM(B2:B3)

   Microsoft Excel Versions 2.x and 3.0

   ------------------------------------

   Enter the formula below as an array in any blank cell.

   =SUM(A2:A3*B2:B3)/SUM(B2:B3)

   NOTE: The above formula must be entered as an array formula. To enter a

   formula as an array formula in Microsoft Excel for Windows or Microsoft

   Excel for OS/2, press CTRL+SHIFT+ENTER. In Microsoft Excel for the

   Macintosh, press COMMAND+ENTER.

REFERENCES

==========

"Function Reference," version 4.0, page 424

"User's Guide 1," version 4.0, pages 153-166

"User's Guide," version 3.0 for Windows, pages 275-289

"User's Guide," version 3.0 for the Macintosh, pages 268-281

KBCategory: kbusage

KBSubcategory:

Additional reference words: 2.0 2.00 2.01 2.1 2.10 2.2 2.20 2.21 3.0

3.00 4.0 4.00 4.0a 4.00a 5.0 5.00  m_excel


XL5: Cannot Set Consecutive Delimiter for TextWizard in Macro

Article ID: Q113910

------------------------------------------------------------

The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel version 5.0, you can use either the Visual Basic

Workbooks.OpenText command or the Microsoft Excel version 4.0 OPEN.TEXT

macro command to open a text file from a macro. Both commands are

equivalent to using the TextWizard to open a text file. However, setting

the Consecutive Delimiter argument for either of these commands will have

no effect in TextWizard.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. This problem was corrected in

Microsoft Excel for Windows version 5.0c.

MORE INFORMATION

================

When you run a macro using either the Workbook.OpenText or OPEN.TEXT

command, the text file will be opened using the Consecutive Delimiter

setting that was last set in TextWizard manually. The Consecutive Delimiter

argument in the command in a macro is ignored.

KBCategory: kbprg

KBSubcategory:

Additional reference words: 5.00


Unexpected Results with Mixed Text and Numbers in Lookup Table

Article ID: Q113261

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 2.x, 3.x, 4.0, 4.0a, 5.0

 - Microsoft Excel for Macintosh, versions 2.x, 3.0, 4.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you create a lookup table, the lookup functions

may return the #N/A error value, or, if you are using the functions in a

Visual Basic, Applications Edition, macro, you may receive a "type

mismatch" error, even though the values in the lookup table are sorted in

ascending order and the value being looked up appears to fall within the

range of the lookup table values.

CAUSE

=====

When you look up a text value, Microsoft Excel looks only at the text

values in your table. Similarly, when you look up a numeric value,

Microsoft looks only at the numeric values.

STATUS

======

This behavior is by design.

MORE INFORMATION

================

If the first column (VLOOKUP) or row (HLOOKUP) of your lookup table

contains both text and numeric values, you can use Microsoft Excel to sort

your table in ascending order. In this case, the numeric values will appear

at the beginning of the table and the text values will appear at the end of

the table. Both text and numbers are then sorted as expected. For example,

the following values

   A1: 3

   A2: 1

   A3: c

   A4: 2

   A5: d

   A6: b

will be sorted as:

   A1: 1

   A2: 2

   A3: 3

   A4: b

   A5: c

   A6: d

However, if you attempt to use a lookup function to locate a text value

that is less than the first text value, the lookup the function returns the

#N/A error value.

It may appear that =VLOOKUP("a",A1:A6,1) should return the value 3, which

is the largest value that is less than the lookup value a. However, the

formula returns the #N/A error value instead. This behavior also occurs

with HLOOKUP(), LOOKUP(), and MATCH() with Match Type arguments of 1 or

negative one -1.

The same behavior also holds true if you attempt to look up a numeric value

that is less than the first numeric value in your lookup table.

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided 'as is' and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose. Note that a line that is preceded by

an apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the procedure. Note

also that an underscore character (_) indicates that code continues from

one line to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line-

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This Manual"

section in the "Document Conventions" section of the "Visual Basic User's

Guide."

Sample Visual Basic Macro Using VLookup

---------------------------------------

Sub test()

   MsgBox Application. _

   VLookup("a", Workbooks("book1.xls"). _

   Worksheets("sheet1").Range("hi"), 1, False)

End Sub

Note that in order to test this sample macro, you must create a range on

sheet1 in book1 similar to the sample range above, and you must give the

range the defined name "hi" (without the quotation marks).

WORKAROUNDS

===========

Method 1: If you want your lookup table to be split into separate tables

          for text and numbers (the default), you must include minimum

          values for both the text and the numeric values in your lookup

          table.

          Zero is the lowest positive integer and the blank space character

          is the lowest printable text character.

Method 2: If you want the table to behave the way it appears after it is

          sorted by Microsoft Excel, such that it returns the highest

          numeric value if a text value is looked up, then you must treat

          your table as text only. The following are two ways to do this:

           - Enter every cell in your table as text. Numeric values can be

             entered as text by typing an apostrophe before the value

             (versions of Microsoft Excel earlier than 5.0) or by

             formatting the cells as text (Microsoft Excel version 5.0).

             -or-

           - Convert the lookup table and the value you are looking up to

             text by entering your formula into an array formula. The

             following is an example that assumes the value to be looked up

             is located in cell B1:

                =VLOOKUP(TEXT(B1,"@"),TEXT(A1:A6,"@"),1)

             NOTE: The above formula must be entered as an array formula.

             To enter a formula as an array formula in Microsoft Excel for

             Windows, press CTRL+SHIFT+ENTER. In Microsoft Excel for the

             Macintosh, press COMMAND+RETURN.

REFERENCES

==========

For more information about Lookup Functions, choose the Search button

in Help and type:

   Lookup Functions

KBCategory: kbusage

KBSubcategory:

Additional reference words: 2.00 2.01 2.10 2.20 3.00 4.00 4.00a 5.00

VLOOKUP LOOKUP HLOOKUP MATCH mixed


Microsoft Excel 5.0 Reads Native Multiplan File Format

Article ID: Q113336

-----------------------------------------------------------------

The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

- Microsoft Multiplan for MS-DOS, versions 1.0, 2.0, 3.0, 4.0, 4.2

-----------------------------------------------------------------

SUMMARY

=======

Microsoft Excel version 5.0 includes a file conversion utility that allows

Microsoft Excel to read all versions of Microsoft Multiplan files in their

native file formats.

MORE INFORMATION

================

The Multiplan converter, XLCONVMP.DLL, supports loading all versions of

Multiplan files 1.x, 2.x, 3.x, 4.2, in all languages, including Kanji. Once

you install this utility, you can run it in Microsoft Excel and you can use

it to open Multiplan files without choosing a specific file type. Several

Multiplan files can be opened at the same time using multi-select in the

Microsoft Excel Open dialog box (from the File menu, choose Open). Once a

Multiplan file is opened in Microsoft Excel, any macros on the sheet can

then be translated using the Macro Translation Assistant.

When you use this utility to open Multiplan files in Microsoft Excel,

Multiplan constants and names are preserved, and most formulas and

formatting (including bold, italic, underlined, and strikethrough text) are

preserved as well. In addition, many of the Multiplan preferences are read

in to Microsoft Excel. However, headers, footers, and some formats, such as

bar, and some fonts will be lost.

You may occasionally encounter problems when you try to open version 1.x

Multiplan files using the converter. If you do, you can work around this

problem by using SYLK format.

Formulas with any of the following functions will not be loaded correctly:

NAME(), VERSION(), ITERCNT(), and DELTA(). When Microsoft Excel encounters

these functions, it generates the following error message:

   File error: data may have been lost

In most cases, when you encounter this error message, Microsoft Excel will

replace the formula with the value produced by the formula in the Multiplan

file. The majority of Multiplan data will be imported correctly and those

formulas that contain the problem functions can then be rewritten manually

using functions available in Microsoft Excel.

The Multiplan converter does NOT support exporting Microsoft Excel files to

Multiplan file formats. Microsoft Excel 2.1 or SYLK file formats must still

be used to export data to Multiplan. For more information on saving

Microsoft Excel 5.0 files in SYLK format, query in the Microsoft Knowledge

Base on the following words:

   SYLK and file and xl5 and formulas

Installing the Multiplan Converter

----------------------------------

In Microsoft Excel 5.0 Setup, the Multiplan converter is installed only

with the Complete/Custom Setup option. Typical and Minimum installations

of Microsoft Excel 5.0 will NOT install the Multiplan converter.

NOTE: Microsoft Office 4.2 setup, which also installs Microsoft Excel 5.0,

installs the Multiplan converter regardless of which setup option is chosen

(that is, Complete, Typical Or Minimum). However, the converter will only

function if you install it with a complete or custom installation.

If the Multiplan converter is not installed when you attempt to open a

Multiplan file, Microsoft Excel will generate the following error message:

   Microsoft Excel needs a converter to open this Multiplan file; run the

   Microsoft Excel Setup program to install it.

To install the Multiplan converter using the Microsoft Excel 5.0 setup

program, do the following:

1. Run Microsoft Excel SETUP.EXE again. Assuming Microsoft Excel 5.0 has

   already been installed correctly, running this file this will start

   Microsoft Excel Setup in maintenance mode.

2. Choose Add/Remove to add a component.

   The Microsoft Excel 5.0 Setup--Maintenance Mode dialog box will appear

   on your screen.

3. From the Options list, select the Tools check box, and choose Change

   Option.

   The Microsoft Excel 5.0--Tools dialog box will appear on your screen.

4. Under Options, select the Multiplan Converter check box and choose OK.

   The main Microsoft Excel maintenance mode dialog box will appear.

5. Choose OK, then choose Continue. Microsoft Excel Setup will then install

   the Multiplan conversion utility.

To install the Multiplan converter using the Microsoft Office 4.2 Setup

program do the following:

1. Run Microsoft Office SETUP.EXE again. If Microsoft Office 4.2

   has already been installed correctly, this program will start the Setup

   program in maintenance mode.

2. Choose Add/Remove to add a component.

   The Microsoft Office 4.2 Setup--Maintenance Installation dialog box will

   appear on your screen.

3. Under Options, choose Microsoft Excel.

4. Select the Change Option button.

   The Microsoft Office 4.2--Microsoft Excel dialog box will appear on your

   screen.

5. Under Options, select the Tools check box, and then choose Change

   Option.

   The Microsoft Office 4.2--Tools dialog box will appear on your screen.

6. Under Options, select the Multiplan Converter check box, and choose OK.

7. Choose OK again and then choose Continue.

Microsoft Office Setup will install the Multiplan conversion utility.

KBCategory: kbusage

KBSubcategory:

Additional reference words: 1.00 2.00 3.00 4.00 4.20 5.00


XL5: "Could Not Open the File..." Running WK4 Converter Setup

Article ID: Q123259

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

--------------------------------------------------------------------

SYMPTOMS

========

When you run the WK4 File Converter for Microsoft Excel Setup program, you

may receive the following error message

   Could not open the file named: '<drive>\DISK1\_MSTEST.EX_'

where <drive> is the letter of the drive from which you are running

the Setup program.

After you receive this error message, the following error messages appears:

   Setup is not yet complete. If you exit now, this software will not be

   correctly installed for use. Exit Setup?

   The WK4 File Converter has not been properly installed.

CAUSE

=====

This problem occurs when you run the WK4 File Converter Setup program

from your computer's hard drive, or a network drive, if the name of

the directory that contains the Setup program is not Disk1. The Setup

program must be run from either the Setup disk, or a Disk1 directory

on your computer or a network drive. The following are examples

of valid directories to run the Setup program from:

   a:

   c:\disk1

   c:\files\disk1

   x:\wk4conv\disk1

WORKAROUND

==========

To avoid receiving this error message, do either of the following:

 - Run the Setup program from the Lotus 1-2-3 WK4 Setup floppy disk.

   -or-

 - Copy the files to a Disk1 directory on your hard drive, or on a network

   server drive, and run the Setup program from this directory.

MORE INFORMATION

================

To open Lotus 1-2-3 WK4 files in Microsoft Excel, you must obtain the

Lotus 1-2-3 WK4 File Converter. The Lotus 1-2-3 WK4 File Converter is

available in application note WE1130 "Lotus 1-2-3 WK4 File

Converter." You can obtain WE1130 from the following sources:

 - CompuServe, GEnie, and Microsoft OnLine

 - Microsoft Download Service (MSDL)

 - The Internet (Microsoft anonymous ftp server)

 - Microsoft Product Support Services

For more information about obtaining the Lotus 1-2-3 WK4 File

Converter, please see the following article(s) in the Microsoft

Knowledge Base:

   ARTICLE-ID: Q122583

   TITLE     : XL5: Lotus 1-2-3 Release 4 for Windows File Converter

Lotus 1-2-3 is manufactured by Lotus Corporation, a vendor

independent of Microsoft; we make no warranty, implied or otherwise,

regarding this product's performance or reliability.

REFERENCES

==========

Lotus 1-2-3 WK4 File Converter README.TXT

KBCategory: kbsetup kb3rdparty kberrmsg

KBSubcategory:

Additional reference words: 5.00 5.00c


XL5: Can't Synchronize Windows By Choosing Arrange All

Article ID: Q119718

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel version 5.0, you cannot synchronize windows horizontally

or vertically by choosing Arrange from the Window menu. However, you can

accomplish this by creating a Microsoft Excel or Visual Basic, Applications

Edition, macro.

MORE INFORMATION

================

The following macros assume that a second window for the worksheet has been

opened by choosing New Window from the Window menu.

Visual Basic Macro

------------------

Sub Sync_On()

   'Enables horizontal and vertical window synchronization

   Application.Windows.Arrange arrangestyle:=xlTiled, _

   ActiveWorkbook:=True, synchorizontal:=True, syncvertical:=True

End Sub

Sub Sync_Off()

   'Disables horizontal and vertical window synchronization

   Application.Windows.Arrange arrangestyle:=xlTiled, _

   ActiveWorkbook:=True, synchorizontal:=False, syncvertical:=False

End Sub

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of merchantability

and/or fitness for a particular purpose. This Visual Basic procedure

is provided 'as is' and Microsoft does not guarantee that it can be

used in all situations. Microsoft does not support modifications of

this procedure to suit customer requirements for a particular purpose.

Note that a line that is preceded by an apostrophe introduces a

comment in the code--comments are provided to explain what the code is

doing at a particular point in the procedure. Note also that an

underscore character (_) indicates that code continues from one line

to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This

Manual" section in the "Document Conventions" section of the "Visual

Basic User's Guide."

Microsoft Excel 4.0 Macro

-------------------------

Sync_On

'Enables horizontal and vertical window synchronization

=ARRANGE.ALL(1,TRUE,TRUE,TRUE)

=RETURN()

Sync_Off

'Disables horizontal and vertical window synchronization

=ARRANGE.ALL(1,TRUE,FALSE,FALSE)

=RETURN()

KBCategory: kbusage

KBSubcategory:

Additional reference words: 5.00 sync hsync vsync


XL5: GP Fault Saving File with Invalid Name Reference

Article ID: Q116329

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you save a file to the Microsoft Excel 4.0

Worksheet or Workbook file format, you receive a general protection

(GP) fault if the file contains an embedded chart with unattached

text that references a name that contains an invalid reference.

CAUSE

=====

This error occurs when you modify a defined name that is used on an

embedded chart so that it refers to an invalid reference. For

example, if an embedded chart contains unattached text that

references the name TEST, and you modify the defined name TEST so

that it refers to a workbook that does not exist, you receive a GP

fault when you save the file to the Microsoft Excel 4.0 Worksheet or

Workbook file format. Note that this error only occurs when you save a new

file to the Microsoft Excel 4.0 Worksheet or Workbook file format. This

problem does not occur if you save the file to the Microsoft Excel 5.0

Worksheet or Workbook format first.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft

products listed at the beginning of this article. We are researching

this problem and will post new information here in the Microsoft

Knowledge Base as it becomes available.

MORE INFORMATION

================

If you modify a name so that it refers to an invalid reference, and this

name is used on a worksheet, the File Not Found dialog box appears, asking

you to locate the file that the name is referencing. If you modify a name

so that it refers to an invalid reference, and the name is used on a chart

sheet, you do not receive an error message; however, you receive a GP fault

when you save the file to the Microsoft Excel 4.0 Worksheet or Workbook

format.

Note that you cannot use a name that contains an invalid reference on

either a worksheet or a chart.

KBCategory:

KBSubcategory:

Additional reference words: 5.00 gpf crash


XL5: Macro Translation Assistant Not Installed

Article ID: Q118956

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0c

--------------------------------------------------------------------

SYMPTOMS

========

When you install Microsoft Excel version 5.0c, the Macro Translation

Assistant file, TRANS.EXE, is not installed on your computer.

CAUSE

=====

This is by design in Microsoft Excel version 5.0c. The Macro Translation

Assistant is not included in this version of Microsoft Excel. When you run

the Setup program, the Macro Translation Assistant is not an available

option.

For more information about the Macro Translation Assistant, query on the

following words in the Microsoft Knowledge Base:

   macro and translation and assistant and 5.0

KBCategory: kbsetup

KBSubcategory:

Additional reference words: 5.00c mta tools translates lotus 1-2-3

multiplan


XL5: GP Fault Copying, Moving, or Scrolling Visual Basic Module

Article ID: Q120721

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you copy or move a Visual Basic module, or

when you scroll the module that you moved or copied, you receive a

general protection (GP) fault.

CAUSE

=====

This behavior occurs when the module contains multiple Type statements, and

a ReDim statement that dimensions an array as one of the user defined

types. If you delete one of the Type procedures, and you then copy or move

the module (to another workbook, or to another location in the same

workbook), you receive a GP fault in module VBA.DLL.

The problem occurs when the ReDim statement is compiled again in the new

workbook. The GP fault occurs either immediately after you move or copy the

module (if the ReDim statement is contained in the first screen of the

module) or when you scroll in the module after moving or copying as soon as

the ReDim statement appears on the screen.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. We are researching this problem

and will post new information here in the Microsoft Knowledge Base as it

becomes available.

MORE INFORMATION

================

A user-defined data type is any data type you define using the Type

statement. User-defined data types can contain one or more elements

of any data type, array, or a previously defined user-defined type.

You can use the ReDim statement to declare dynamic-array variables and

allocate or reallocate storage space.

REFERENCES

==========

For more information about the ReDim Statement, choose the Search

button in the Visual Basic Reference and type:

   ReDim

For more information about a User-Defined Data Type, choose the

Search button in the Visual Basic Reference and type:

   Type

KBCategory: kbprg

KBSubcategory:

Additional reference words: 5.00 5.00c gpf 000B:0F15


GP Fault in Excel 4.0 Printing or Closing Print Preview

Article ID: Q122853

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 4.0, 4.0a

 - Microsoft Excel for the Macintosh, version 4.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel version 4.0 for Windows, when open a file and either

print the file, or view the file in print preview, you may receive the

following error message:

   Excel caused a General Protection Fault in module EXCEL.EXE at

   0003:0B7A.

NOTE: You may not be able to start Microsoft Excel 4.0 again until you exit

and restart Windows.

In Microsoft Excel version 4.0 for the Macintosh, the application may stop

responding, and you may receive a system error.

CAUSE

=====

This problem occurs if a Print Area or Print Title on the worksheet

contains an external reference, such as SHEET1!$A:$A, and the scaling is

set to something other than 100%.

This may occur for example if you open a a file from Microsoft Excel 5.0

that was saved to the Microsoft Excel 4.0 Worksheet format. If the file has

a Print Area or Print Title that references multiple ranges on the

worksheet, and the scaling is set to something other than 100%, this

problem occurs when you print the file, or view the file in print preview.

This problem may also occur when you open a Lotus 1-2-3 file in Microsoft

Excel version 4.0.

NOTE: This problem does not occur in Microsoft Excel 5.0. The problem

occurs only when you open the worksheet in Microsoft Excel version 4.0.

WORKAROUNDS

===========

To avoid the error message above, use any of the following methods:

Method 1: When you save a Microsoft Excel 5.0 sheet as a Microsoft Excel

          4.0 Worksheet, make sure that there is not a multiple range print

          area defined.

Method 2: Set the Print Area or Print Titles again in Microsoft Excel

          version 4.0 by doing the following:

          a. Open the file that is causing this problem.

          b. From the Formula menu, choose Define Name.

          c. From the Names In Sheet list, select Print_Area and or

             Print_Titles, and choose the Delete button.

             This removes the current Print Area and Print Titles.

          d. Choose the OK button.

          e. To reset the Print Area and Print Titles, select the desired

             cells, and choose Set Print Area or Set Print Titles from the

             Options menu.

MORE INFORMATION

================

When you view the file in print preview, the data on the worksheet may

appear to be compressed horizontally, with unusually large margins. The

data may be illegible, overlapping, or displayed as pound signs (#). The

general protection (GP) fault or system error does not occur until you

choose the Close button.

KBCategory: kbprint kbprb

KBSubcategory:

Additional reference words: 4.00 4.00a XL5 5.00 5.00a gpf


XL5: Not All Worksheet Functions Supported As Application

Article ID: Q107564

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

In the Microsoft Visual Basic Programming System, Applications

Edition, not all Microsoft Excel worksheet functions are supported as

methods of the Application object.

MORE INFORMATION

================

You can write Visual Basic procedures that call Microsoft Excel

worksheet functions. The worksheet functions that are available to

Visual Basic procedures are in the Application object, and are listed

in the Methods/Properties list for the Application object in the

Visual Basic Object Browser.

Most worksheet functions that are not available as methods of the

Application object have an equivalent Microsoft Visual Basic built-in

operator or function. For example, the Mod() worksheet function is

not available as a method of the Application object because there is

an equivalent Mod operator built-in to Visual Basic. This is by

design, because a Visual Basic operator works faster than a Microsoft

Excel function in a Visual Basic module.

To display a list of all the Microsoft Excel worksheet functions

available as methods of the Application object in Visual Basic, do

the following:

1. Choose the Search button in Visual Basic Reference Help, type "worksheet

   functions" (without the quotation marks), and choose Show Topics.

2. From the list of topics, select Using Worksheet Functions In Visual

   Basic, and choose Go To.

To locate the equivalent Visual Basic operator or function of a Microsoft

Excel worksheet function that is not available as an Application object

method, do the following:

1. Choose the Search button in Visual Basic Online Help and type:

      programming language

2. Choose Show Topics and choose Go To.

3. Select the operator or function with the same name as the function you

   want to use.

The following is a list of worksheet functions that are not available

as methods of the Application object and do not have an equivalent

Visual Basic operator or function with the same name:

Microsoft Excel                   Visual Basic

worksheet function                equivalent

------------------------------------------------------------

CHAR()                            CHR function

CODE()                            ASC function

DATE()                            DATESERIAL function

ERROR.TYPE()                      ERR function

EXACT()                           STRCOMP function

INDIRECT()                        No direct equivalent - use Range, Cells,

                                  Offset, or any other way of

                                  referencing cells.

INFO()                            No direct equivalent - use the following:

                                  CURDIR function, the following

                                  Application properties (MEMORYTOTAL,

                                  MEMORYUSED, MEMORYFREE, VERSION,

                                  OPERATINGSYSTEM, CALCULATION, COUNT)

ISBLANK()                         ISEMPTY function

ISREF()                           TYPENAME function

LOWER()                           LCASE function

N()                               No equivalent (none needed)

NA()                              No equivalent - use

                                  ActiveCell.Value = "#N/A"

RAND()                            RND function

SIGN()                            SGN function

SQRT()                            SQR function

T()                               No equivalant (none needed)

TODAY()                           DATE function

TRUNC()                           FIX function

TYPE()                            TYPENAME function

UPPER()                           UCASE function

VALUE()                           VAL function

NOTE: The Microsoft Excel worksheet function and the Visual Basic

equivalent operator or function are not always calculated the same

way and may give different results, even when they have the same

name.

Using the Visual Basic equivalent operator or function is preferred

for increased speed and flexibility in calculations. Additionally,

the Visual Basic operator or function is available to all

applications that use the Microsoft Visual Basic Programming System,

Applications Edition.

KBCategory: kbusage

KBSubcategory:

Additional reference words: 5.00


XL5 AppNote: Using Macros Questions and Answers (XE0927)

Article ID: Q109224

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

Following is the complete text for the FastTip for Microsoft Excel

version 5.0 for Windows. It contains the commonly asked questions and

answers about using macros.

======================================================================

  Microsoft(R) Product Support Services Application Note (Text File)

              XE0927: USING MACROS QUESTIONS AND ANSWERS

======================================================================

                                                  Revision Date: 12/93

                                                      No Disk Included

The following information applies to Microsoft Excel, version 5.0.

-----------------------------------------------------------------------

| INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY     |

| ACCOMPANY THIS DOCUMENT (collectively referred to as an Application |

| Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER      |

| EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED      |

| WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR       |

| PURPOSE. The user assumes the entire risk as to the accuracy and    |

| the use of this Application Note. This Application Note may be      |

| copied and distributed subject to the following conditions:  1) All |

| text must be copied without modification and all pages must be      |

| included;  2) If software is included, all files on the disk(s)     |

| must be copied without modification (the MS-DOS(R)  utility         |

| diskcopy is appropriate for this purpose);  3) All components of    |

| this Application Note must be distributed together;  and  4) This   |

| Application Note may not be distributed for profit.                 |

|                                                                     |

| Copyright (C) 1993 Microsoft Corporation.  All Rights Reserved.     |

| Microsoft, MS-DOS, and Visual Basic are registered trademarks and   |

| Windows is a trademark of Microsoft Corporation.                    |

| --------------------------------------------------------------------|

1. Q.  When I open my workbook, I want it to run a macro. How do

       I do this?

   A.  To run a specified macro each time you open a workbook, you can

       use an auto-open macro in one of two ways:

       - You can define the name Auto_Open on a worksheet or macro

         sheet so that the definition refers either to your macro name

         (Microsoft Excel 4.0 and Visual Basic(R) macros) or to the

         first cell in your macro (Microsoft Excel 4.0 macros only).

         -or-

       - You can create an Auto_Open procedure in Visual Basic(R)

         module.

      To define the name Auto_Open

      1. Open the workbook containing the macro you want to run.

      2. Open the workbook that you want to run the macro(if it is not

         the same as the one you opened in step one). Select either a

         worksheet or a macro sheet tab.

      3. From the Insert menu, choose Name, and then choose Define.

      4. In the Name box, type AUTO_OPEN.

      5. In the Refers To box, type the reference to the macro that

         you want to run. Use the following table to determine how to

         reference your macro:

 If you are using this type of macro   Type the reference in this format

------------------------------------------------------------------------

 Microsoft Excel 4.0 macro sheet       =<MyMacro>

 located in same workbook              -or-

                                       =<Macro1>!<A1>

 Microsoft Excel 4.0 macro sheet       =<BOOK2.XLS>!<Mymacro>

 located in separate workbook          -or-

                                       =<[BOOK2.XLS]Macro1>!<A1>

 Visual Basic module located in same   =<MyMacro>

 workbook

 Visual Basic module located in        =<BOOK2.XLS>!<MyMacro>

 separate workbook

      5. Choose OK.

      To use the Auto_Open procedure (Visual Basic modules only)

      1. Open the workbook from which you want to run the macro and

         either select the tab for the module that contains your macro

         or insert a new module.

      2. Add the appropriate procedure from the following table

         (depending on where the macro that you want to run is

         located):

   If you macro is located     Use this procedure

-----------------------------------------------------------------------

   In the same workbook        Sub Auto_Open

                                  Run("<MyMacro>")

                               End Sub

   In a separate workbook      Sub Auto_Open

                                  Run("<BOOK2.XLS>!<Module1.MyMacro>")

                               End Sub

        NOTE: In order to use the Run statement, the workbook

        containing the macro that you want to use must be open. Your

        macro can be a Microsoft Excel 4.0 macro or a Visual Basic

        macro.

      Each time you open the workbook that contains the Auto_Open

      procedure, Microsoft Excel automatically runs the specified

      macro.

      You can use similar methods to define an Auto_Close name and use

      an Auto_Close procedure that will run a specified macro each

      time a workbook is closed. Other similar defined names and

      procedures are Auto_Activate and Auto_Deactivate (which are used

      to run macros when a specified workbook is activated or

      deactivated), and the Auto_SheetActivate procedure, which runs

      macros when a specified sheet is activated.

        NOTE: You can run Auto_SheetActivate only as a procedure in a

        Visual Basic macro; it will not work as a defined name on a

        worksheet or 4.0 macro sheet.

       For additional information, see Chapter 13, "Creating Automatic

       Procedures," in the "Visual Basic User's Guide."

2.  Q. How can I convert my Microsoft Excel version 4.0 macros to

       Visual Basic macros? And, how can I learn more about the

       Applications Edition of the Visual Basic Programming System?

    A. While you are learning to use the Microsoft Excel 5.0 macro

       language, you can continue to write and run version 4.0 macros.

       Although there is no way to automatically translate 4.0 macros,

       the Microsoft Excel 4.0 macro language has been updated to

       incorporate the new features in Microsoft Excel 5.0.

       To begin converting your macros and learning Visual Basic:

        - Review Appendix B, "Switching from the Microsoft Excel 4.0

          Macro Language," in the" Visual Basic User's Guide." This

          appendix describes some key differences between the version

          4.0 and macro languages. In addition, it discusses ways to

          approach the conversion process.

        - Refer to the Visual Basic Samples file located in the EXAMPLES

          subdirectory in the directory in which you installed Microsoft

          Excel. This workbook file contains examples of tasks commonly

          accomplished with macros such as moving and selecting,

          performing repetitive processes using looping structures, and

          communicating with other applications using dynamic data

          exchange (DDE). The version 4.0 macro and its Visual Basic

          equivalent are provided on sheets in this workbook.

        - Review the Examples And Demos lessons in Microsoft Excel Help.

        - Use the Record Macro command to record parts of your macro in

          a Visual Basic module.  Recording a macro will help you learn

          the new macro commands. In addition, you can run the

          unconverted parts of your Microsoft Excel 4.0 macros from

          Visual Basic macros by using the Run method.

              Tip: While you record, you may find it helpful to see

              your Visual Basic module and the sheet on which you're

              selecting, moving, and carrying out commands

              simultaneously. To do this, select the appropriate

              Visual Basic module tab and choose the New Window

              command from the Window menu. Select your sheet tab and

              choose the Arrange command from the Window menu. Select

              the Tiled option and select the Windows Of Active

              Document option, and then choose OK.

        - Print a copy of the Visual Basic Equivalents To Macro

          Functions help topic, located under Excel Macro Functions in

          Microsoft Excel Help. Keep this list of equivalents nearby for

          handy reference.

3.  Q. How are Visual Basic 3.0 and the Applications Edition of

       the Visual Basic Programming System different?

    A. The Applications Edition of the Visual Basic Programming System

       helps you customize Microsoft Excel, whereas Visual Basic 3.0

       allows you to create independent applications. Because the

       Applications Edition of Visual Basic must operate within

       Microsoft Excel, there are some differences in what you can and

       cannot control. For example, the Applications Edition has a

       limited set of object properties for dialog box controls: you

       cannot format or align text, and the events that you can use

       for dialog box controls are limited to OnClick, OnChange, and

       OnShow; Visual Basic 3.0 events such as Focus, Keydown, and

       Mousedown are not available.

       For additional information about the features available in the

       Microsoft Visual Basic Programming System, Applications

       Edition, please refer to the "Visual Basic User's Guide."

4.  Q. With the new menu structure in version 5.0 of Microsoft

       Excel, how do I run my version 4.0 macros that add custom

       commands to menus?

    A. You should eventually revise your macros so that they use the

       Microsoft Excel 5.0 menu structure. If you do customize 5.0

       menus with Microsoft Excel 4.0 macros, note that if your macro

       adds menu commands to the Worksheet or Chart menu bars, they

       will be added to the menu that is in the same relative position

       as the Microsoft Excel 4.0 menu. For example, if in 4.0 your

       macro adds a command to the Formula menu (the third menu from

       the left), the command is added to the View menu in 5.0 (the

       third menu from the left).

        - If you prefer to work with 4.0 menus, switch to the 4.0 menus

          by selecting the Microsoft Excel 4.0 Menus option on the

          General tab.

          -or-

        - Turn on version 4.0 menus from your macro by adding the

          OPTIONS.GENERAL(,,,,,,TRUE) statement before the statements

          that add menus or commands.

       Although custom commands are added both to the 4.0 and 5.0

       menus, they are not deleted from both menus. Therefore, if you

       have a Microsoft Excel 4.0 macro that deletes custom menus and

       commands, you must add macro code that will delete the menus

       and commands from the version 5.0 menus.

KBCategory: kbusage

KBSubcategory:

Additional reference words: 5.00


XL5: Pie Chart Shows Incorrect Percentage Value

Article ID: Q112773

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

 - Microsoft Excel for the Macintosh, version 5.0

 - Microsoft Excel for Windows NT, version 5.0

 - Microsoft Graph for Windows, version 5.0

 - Microsoft Graph for the Macintosh, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel or Microsoft Graph, when you display percentages in a

pie chart (the pie chart type 6 in the AutoFormat dialog box), an incorrect

percentage may displayed for the largest number in the series.

CAUSE

=====

Because of the way Microsoft Excel and Microsoft Graph round numbers, the

percentages will often add up to be 101% instead of 100%. When this

happens, Microsoft Excel and Microsoft Graph subtract 1% from the largest

number in order to force the total percentage to equal 100%.

WORKAROUND

==========

To work around this problem, do the following:

1. Select the largest data label by slowly clicking twice (do not double

   click rapidly). This ensures that only the largest data label is

   selected.

2. From the Format menu, choose Selected Data Labels.

3. From the Number tab, choose the Percentage Category with a 0.00% format.

   This should cause the second largest data label to correctly round up to

   become the largest label.

4. Select all data labels and reformat them as desired by choosing Selected

   Data Labels from the Format menu, and then selecting the appropriate

   number format on the Number tab.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. We are researching this problem

and will post new information here in the Microsoft Knowledge Base as it

becomes available.

MORE INFORMATION

================

Incorrect percentages can also occur when you use percentages in your data

(even when your percentages equal 100.00%). When you use Microsoft Graph

version 5.0, the data in the range A1:B10 below produces an incorrect data

label. The percentage 34.2% is displayed as 33.2% when the data label is

set to "Percent" or "Label and Percent." When the data label is set to

"Value" the percentage displays correctly.

   A1: Name       B1: Sales

   A2: Ford       B2: 24.7%

   A3: GM         B3: 34.2%

   A4: VW         B4:  0.6%

   A5: Chrysler   B5: 13.3%

   A6: Toyota     B6:  8.0%

   A7: Honda      B7:  6.0%

   A8: Other      B8:  6.0%

   A9: Mazda      B9:  2.6%

  A10: Nissan    B10:  4.6%

KBCategory: kbother

KBSubcategory:

Additional reference words: 5.00 5.00c Graph


XL5: Excel 5.0 CBT Is Not Installed Under OS/2

Article ID: Q113147

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

 - Microsoft Windows operating system version 3.1

 - IBM OS/2 versions 2.0, 2.1

--------------------------------------------------------------------

SUMMARY

=========

When you install Microsoft Excel version 5.0 under the OS/2 operating

system, the Microsoft Excel Setup program will not install the CBT

(computer based training) or tutorial.

CAUSE

=====

Specific components of the CBT involve automated cursor movements and

special window effects. These functions will operate correctly under the

Windows operating environment, but cannot be guaranteed to operate

correctly in the IBM OS/2. Therefore, the Microsoft Excel version 5.0 Setup

program detects the operating environment, and will only install the CBT

under Microsoft Windows.

WORKAROUND

==========

To install the CBT files, you can decompress them from the Microsoft Excel

version 5.0 disks to an EXCELCBT directory.

Once the CBT files are installed, you can run it in a full screen session

of OS/2 (you cannot, however, run it in an OS/2 window).

For more information about how to run and install the CBT files under OS/2,

see the "More Information" section of this article below.

MORE INFORMATION

================

The CBT can be run under IBM OS/2 while Microsoft Excel version 5.0 is

running in a full-screen WIN-OS/2 session. If you attempt to run the CBT in

a WIN-OS/2 window the CBT may fail and cause the machine to hang.

To configure Microsoft Excel version 5.0 to run as a full screen

application, follow these steps:

1. In the OS/2 Desktop, locate the Microsoft Excel version 5.0 for

   Windows icon.

2. With the mouse pointer on the Microsoft Excel version 5.0 icon,

   press the right mouse button to display the pop-menu for the icon.

3. From the menu, click the arrow directly to the right of the Open

   option, and then choose Settings.

4. Select the Session tab to display the session options.

5. Select the WIN-OS/2 Full Screen option.

6. Close the Settings window by double-clicking the Close button in

   the upper-left corner of the Settings window.

Before the CBT can be run, it must be installed manually to an

EXCELCBT directory. To install the CBT, follow these steps:

NOTE: The commands below assume that Microsoft Excel is installed on your C

drive in the EXCEL directory. If this is not the case, modify each of the

given commands to the appropriate drive and directory in which Microsoft

Excel for Windows is installed.

1. At the MS-DOS or OS/2 prompt, change to the EXCEL program directory.

   For example, type:

      c:

      cd\excel

2. Use the MS-DOS MD command to create a directory called EXCELCBT. For

   example, type:

      md excelcbt

3. Insert the Microsoft Excel version 5.0 Setup Disk 1 into your computer's

   floppy disk drive (in the steps below, this is drive A).

4. Copy DECOMP.EXE to the EXCEL program directory. For

   example, type:

      copy a:\decomp.exe c:\excel

5. Make sure the Microsoft Excel version 5.0 Setup Disk 1 is still in

   drive A.

6. Type the following MS-DOS commands

      decomp a:\xlcbt.de_  c:\excel\excelcbt\xlcbt.dex

      decomp a:\quickprv.cb_  c:\excel\excelcbt\quickprv.cbt

7. Insert the Microsoft Excel version 5.0 Setup Disk 8 into drive A. Or,

   if you installed Microsoft Excel from Microsoft Office version 4.2,

   insert the disk number listed in the first column in step 8 below.

8. Type the following MS-DOS commands:

    3    decomp a:\93sales.xl_  c:\excel\excelcbt\93sales.xls

    3    decomp a:\accounts.xl_ c:\excel\excelcbt\accounts.xls

    3    decomp a:\analysis.xl_ c:\excel\excelcbt\analysis.xls

    3    decomp a:\art.xl_  c:\excel\excelcbt\art.xls

    3    decomp a:\budget.xl_  c:\excel\excelcbt\budget.xls

   15    decomp a:\cbtlib4.dl_  c:\excel\excelcbt\cbtlib4.dll

    3    decomp a:\chart.xl_  c:\excel\excelcbt\chart.xls

    3    decomp a:\chart2.xl_  c:\excel\excelcbt\chart2.xls

    3    decomp a:\excelcbt.cb_ c:\excel\excelcbt\excelcbt.cbt

    8    decomp a:\excelles.cb_ c:\excel\excelcbt\excelles.cbt

    2    decomp a:\exotic.fm_  c:\excel\excelcbt\exotic.fmt

    3    decomp a:\exotic.wk_  c:\excel\excelcbt\exotic.wk1

    4    decomp a:\home.xl_  c:\excel\excelcbt\home.xls

    3    decomp a:\parts.wk_  c:\excel\excelcbt\parts.wk1

    3    decomp a:\parts.fm_  c:\excel\excelcbt\parts.fmt

    4    decomp a:\products.xl_ c:\excel\excelcbt\products.xls

    4    decomp a:\qtrsales.xl_ c:\excel\excelcbt\qtrsales.xls

    2    decomp a:\sales.xl_  c:\excel\excelcbt\sales.xls

    3    decomp a:\schedule.wk_ c:\excel\excelcbt\schedule.wk1

    3    decomp a:\schedule.fm_ c:\excel\excelcbt\schedule.fmt

    4    decomp a:\stocks.xl_  c:\excel\excelcbt\stocks.xls

    4    decomp a:\summary.xl_  c:\excel\excelcbt\summary.xls

    4    decomp a:\trend.xl_  c:\excel\excelcbt\trend.xls

    4    decomp a:\vbstock.xl_  c:\excel\excelcbt\vbstock.xls

In addition to decompressing the CBT files, a line must be added to the

EXCEL5.INI file that points to the location of the CBT directory. To edit

the EXCEL5.INI file follow these steps:

1. Open the EXCEL5.INI file, which is typically located in the

   OS2\MSDOS\WINOS2 directory. (To edit this file use a text editor

   such as Notepad or OS/2 System Editor.)

2. In the [Microsoft Excel] section of the EXCEL5.INI file add the

   following line:

      CBTLOCATION= c:\excel\excelcbt

   NOTE: CBTLOCATION is case sensitive.

3. Save the EXCEL5.INI file and exit the text editor.

The CBT is now installed and configured.

To activate the CBT, start Microsoft Excel version 5.0. From the Help menu,

choose Quick Preview or Examples And Demos.

KBCategory: kbenv

KBSubcategory:

Additional reference words: 5.00 missing


XL5: Print Reports Not Using Continuous Page Numbers

Article ID: Q112101

----------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

----------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel version 5.0 for Windows, when you print a report (from

the File menu, choose Print Report), the pages in your report are not

numbered consecutively.

CAUSE

=====

The pages of your report may not be numbered consecutively if the First

Page Number setting in the Page Setup dialog box was set to Auto, instead

of 1, when the first view in the report was added.

The Print Report command uses the first view in the report to determine the

initial page number: when this number is Auto, the Print Report add-in does

not acknowledge the Use Continuous Page Numbers setting in the Add Report

and Edit Report dialog boxes; instead, each view begins with page 1.

Example

-------

If you have a workbook that contains four worksheets, each with the

following defined views

   Worksheet   Defined Views

   -------------------------

   Sheet1      View1, ViewA

   Sheet2      View2, ViewB

   Sheet3      View3, ViewC

   Sheet4      View4, ViewD

and you want to print a report that includes the following views (in the

order shown)

   Sheet3, View3

   Sheet2, ViewB

   Sheet1, View1

   Sheet4, ViewD

and you want to use continuous page numbers, the Use Continuous Page

Numbers setting will not work correctly unless the First Page Number

setting was set to 1 at the time View3 (the first view in the

report) was added.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. This problem was corrected in

Microsoft Excel for Windows version 5.0c.

WORKAROUNDS

===========

To print reports with continuous page numbers, the first view in the report

must have its First Page Number setting set to 1. To change this setting

for your reports, do either of the following:

 - Change the First Page Number setting for all sheets to 1 BEFORE you add

   any views

   -or-

 - Change the First Page Number setting for the first view in the report,

   and redefine the view

NOTE: To use either of these workarounds, the Use Continuous Page Numbers

check box (in the Edit Report or Add Report dialog box) must be selected.

To change the First Page Number

Setting for all sheets before adding views

------------------------------------------

1. From the sheet tab shortcut menu, choose Select All Sheets.

2. With all the sheets selected, choose Page Setup from the File menu, and

   select the Page tab.

3. In the First Page Number box, type "1" (without the quotation marks),

   and choose OK.

To change the First Page Number setting for the

First view in the report, and then redefine that view

-----------------------------------------------------

1. Activate the sheet that contains the first view in the report.

2. From the View menu, choose View Manager.

3. From the list of Views, choose the first view in the report and choose

   the Show button.

4. From the File menu, choose Page Setup, and select the Page tab.

5. In the First Page Number box, type "1" (without the quotation marks) and

   choose OK to accept the change.

6. From the View menu, choose View Manager. In the View Manager dialog box,

   choose the Add button.

7. In the Name box, type

      View3

   where View3 is the name of the first view in your report.

8. Under Include With View, make sure that the Print Settings check box is

   selected. Choose OK.

9. When you are prompted to "Overwrite existing view <viewname>?", choose

   OK.

When you print the report, the report should be printed using continuous

page numbers.

NOTE: If a different view is printed first, you will need to redefine that

view so that the First Page Number setting is 1, not Auto.

MORE INFORMATION

================

For more information on printing reports in Microsoft Excel version

5.0, query on the following words in the Microsoft Knowledge Base:

   excel and print and reports and unique

"User's Guide," version 5.0, pages 251, 614-616

KBCategory: kbprb

KBSubcategory:

Additional reference words: 5.00


XL5: "Cannot Find Macro..." Using Run Method with Add-in Macro

Article ID: Q112219

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In a Visual Basic module in Microsoft Excel, if you use the Run method of

the Application object to run a macro located in an add-in, you may receive

the following error message

   Run-time error '1004':

   Cannot find macro '<ADDIN.XLA>!<Addin_Macro>'

where <ADDIN.XLA> is the name of the add-in that contains the macro,

and <Addin_Macro> is the name of the macro that you want to run.

CAUSE

=====

This error occurs when the add-in that contains the procedure you

used with the Run method is not currently open. Even if the add-in is

fast loaded by the following line in the EXCEL5.INI file

   OPEN=/f C:\EXCEL\ADDIN.XLA

where ADDIN.XLA is the add-in file.

STATUS

======

Microsoft has confirmed this to be a problem in the Microsoft products

listed at the beginning of this article. This problem was corrected in

Microsoft Excel for Windows version 5.0c.

WORKAROUND

==========

To use the Run method to run a macro that is contained in an add-in

without receiving the error message above, do any of the following:

 - In the procedure that contains the Run method, use the Open method of

   the Workbooks object to open the add-in before the Run method as in the

   following example:

      Workbooks.Open "c:\EXCEL\ADDIN.XLA"

      Run("ADDIN.XLA!Macro_Name")

   -or-

 - Do the following to manually establish a reference to the add-in from

   the procedure that is calling the add-in macro:

   1. Activate the module that contains the procedure that is running the

      add-in macro.

   2. From the Tools menu, choose References.

   3. If the add-in that contains the macro you want to run is not listed

      under Available References, choose Browse.

   4. From the File Name list, select the add-in you want to reference and

      choose OK. Choose OK again.

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided 'as is' and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose. Note that a line that is preceded by

an apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the procedure. Note

also that an underscore character (_) indicates that code continues from

one line to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line-

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This Manual"

section in the "Document Conventions" section of the "Visual Basic User's

Guide."

MORE INFORMATION

================

When you fast load and add-in, for example by using the /f switch in

the EXCEL5.INI file as explained above, any menus and toolbars

contained in the add-in are available, but the add-in file itself is

not actually loaded, and any macros contained in the add-in are not

loaded. When you demand load an add-in, either by opening the add-in

file, or with the following line in the EXCEL5.INI file

   OPEN C:\EXCEL5\ADDIN.XLA

everything in the add-in is available, including any macros in the

add-in. Therefore, when you demand load and add-in, you do not

receive the above error message when you use the Run method to run a

macro located in the add-in.

For more information about using the /F switch to load an Add-in,

query on the following words in the Microsoft Knowledge Base:

   fast and load and add-in

KBCategory: kbprb

KBSubcategory:

Additional reference words: 5.00 addins addin


XL5: What Is Installed for Each Option in Custom/Complete Setup

Article ID: Q119132

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

The information below describes the components that are installed with each

option in a Complete/Custom setup of Microsoft Excel, version 5.0. The

table lists which options are installed with the typical, minimum, and

complete installations, and it also lists the file size for each of the

components.

MORE INFORMATION

================

When you choose to do a Custom/Complete setup of Microsoft Excel version

5.0, a list of several options is displayed:

   Microsoft Excel

   Online Help and Lessons

   Data Access

   Graphics Filters

   Add-ins Tools

From this list, you can disable the options that you do not want to

install. Each option above, except the first, has several components that

you can choose to disable.

If certain components are missing from Microsoft Excel, you may not have

performed a Complete installation of Microsoft Excel. This list below shows

the components for each category.

NOTE: The components are displayed when you choose the Change Option button

in the Complete/Custom setup screen.

Microsoft Excel

   No suboptions

Online Help and Lessons

   Help for Microsoft Excel

   Help for Visual Basic for Microsoft Excel

   Help for Microsoft Excel 4.0 Macros

   Product Support Information

   Examples and Demos

   Sample Files

Data Access

   Microsoft Query

   Help for Microsoft Query

   Microsoft Query Cue Cards

   Access Driver

   dBASE Driver

   FoxPro Driver

   Paradox Driver

   SQL Server Driver

Graphics Filters

   Windows Metafile filter

   HP Graphic Language filter

   Computer Graphics Metafile filter

   Encapsulated PostScript filter

   Tagged Image Format filter

   PC Paintbrush filter

Add-ins

   Autosave

   Analysis ToolPak

   Report Manager

   Slide Show

   Solver

   View Manager

Tools

   Macro Translation Assistant

   1-2-3 CNF converter

   Multiplan converter

   Setup

   Spell Checker

   MS Info

The following table lists the file that are installed for each type of

setup and also lists the files sizes.

                                FILE SIZE (K) TYPICAL   MINIMUM COMPLETE

                                ------------- -------   ------- --------

MICROSOFT EXCEL                          7653    X         X         X

ONLINE HELP AND LESSONS

    Help for Microsoft Excel             2904    X                   X

    Help for Visual Basic for Micros     2000    X                   X

    Help for Microsoft Excel 4.0 Macros   920                        X

    Product Support Information            80    X         X         X

    Examples and Demos                   1648    X                   X

    Sample Files                           16    X                   X

DATA ACCESS

    Microsoft Query                      2057                        X

    Help for Microsoft Query              448                        X

    Microsoft Query Cue Cards             304                        X

    Access Driver                         320                        X

    dBASE Driver                          448                        X

    FoxPro Driver                         344                        X

    Paradox Driver                        272                        X

    SQL Server Driver                     472                        X

GRAPHICS FILTERS

    Windows Metafile Filter                 8    X                   X

    HP Graphic Language Filter            216    X                   X

    Computer Graphics Metafile Filter      48    X                   X

    Encapsulated Postscript Filter         72    X                   X

    Tagged Image Format Filter             48    X                   X

    PC Paintbrush Filter                   32    X                   X

ADDINS

    AutoSave                               48    X                   X

    Analysis ToolPak                      896                        X

    Report Manager                        136    X                   X

    Slide Show                            240                        X

    Solver                                504    X                   X

    View Manager                          112    X                   X

TOOLS

    Macro Translation Assistant           208

    1-2-3 CNF Converter                    24

    Multiplan Converter                    48                        X

    Setup                                1040    X                   X

    Spell Checker                         529    X                   X

    MS Info                                40    X         X         X

                                               -----      ----     -----

                 TOTAL DISK SPACE REQUIRED(K)  17134      7773     23903

REFERENCES

==========

"User's Guide," version 5.0, page 5-6

KBCategory: kbref

KBSubcategory: xlquery

Additional reference words: 5.00 5.00a install


XL5 Err Msgs: "Excel Busy..." or "Application Can't Be Found"

Article ID: Q117840

----------------------------------------------------------------------

The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

----------------------------------------------------------------------

SUMMARY

=======

Microsoft Excel 5.0 for Windows may not be able to function properly as an

Object Linking and Embedding (OLE) 2.0 server if OLE 2.0-related entries in

the REG.DAT file are missing, damaged, or corrupted.

If you attempt to embed a Microsoft Excel version 5.0 object into another

application when either of these conditions are true, you may receive

either of the following error messages:

   The action cannot be completed because EXCEL is busy.

   -or-

   The server application, source file, or item cannot be found.

   Make sure the application is properly installed, and that it has

   not been deleted, moved, or renamed.

You may also lose your ability to drag selections from one OLE 2.0-

compliant application to another.

MORE INFORMATION

================

When you embed a Microsoft Excel 5.0 object in another application, such as

Microsoft Word 6.0 for Windows, the following entries must be present in

the REG.DAT file (located in the WINDOWS directory) in order for the

embedding process to function properly:

   Microsoft Excel 5.0 Application

   Microsoft Excel 5.0 Chart

   Microsoft Excel 5.0 Worksheet

   OLE (Part 1 of 5)

   OLE (Part 2 of 5)

   OLE (Part 3 of 5)

   OLE (Part 4 of 5)

   OLE (Part 5 of 5)

If any of these entries are missing, or if any of them are damaged or

corrupted, you may not be able to embed Microsoft Excel 5.0 objects in

other applications.

The first three entries shown above are automatically entered in the

REG.DAT file every time you start Microsoft Excel version 5.0.

When you launch Microsoft Excel, it registers itself by copying

information from the EXCEL5.REG file (located in the Microsoft Excel

directory) to the REG.DAT file.

WORKAROUND

==========

Note that the five OLE entries are not automatically reregistered if they

are deleted or if they become damaged or corrupted. In order for these

entries to be replaced, do the following to reregister the OLE2.REG file

with the REG.DAT file:

1. Start File Manager.

2. Switch to the WINDOWS\SYSTEM directory.

3. Select the OLE2.REG file.

4. From the File menu, choose Run.

5. In the Run dialog box, choose OK.

You should receive a message similar to the following:

   Information in C:\WINDOWS\SYSTEM\OLE2.REG has been successfully

   registered in the registration database.

6. Choose OK.

In extreme cases (for example, if the above steps do not allow Microsoft

Excel 5.0 objects to be embedded into other applications), you may need to

totally rebuild the REG.DAT file. For more information about rebuilding the

REG.DAT file, please see the following article in the Microsoft Knowledge

Base:

   ARTICLE-ID: Q107674

   TITLE     : How to Rebuild the REG.DAT File for Word 6.0

KBCategory:

KBSubcategory:

Additional reference words: 5.00


XL5 Err Msg: File Error, Cannot Find XLODBC.DLL

Article ID: Q116176

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 5.0, 5.0c

 - Microsoft Query for Windows, version 1.0

--------------------------------------------------------------------

SYMPTOMS

========

If you are using a workstation installation of Microsoft Excel, and you

choose the Add-ins command to add the ODBC add-in, you may receive the

following error message(s):

   File Error

   Cannot find XLODBC.DLL

   -and-

   Attempt to register XLODBC.XLL failed.

CAUSE

=====

The Add-in Manager in Microsoft Excel does not recognize the MSQUERY

directory as an add-in directory. Therefore, when you select the ODBC

Add-in, the Microsoft Excel Add-in Manager attempts to copy the XLODBC.XLA

file to the wrong directory.

WORKAROUND

==========

To work around this problem, do the following:

1. Delete the XLODBC.XLA file from the EXCEL\LIBRARY directory.

2. From the Tools menu, choose Add-ins.

3. In the Add-ins dialog box, choose Browse, select the XLODBC.XLA file

   from EXCEL\LIBRARY\MSQUERY, and choose OK.

4. Choose NO when you receive the following message:

      Copy XLODBC.XLA to Microsoft Excel Add-in Library?

   You DO NOT want to COPY the file. The proper location of XLODBC.XLA and

   XLODBC.DLL in the EXCEL\LIBRARY\MSQUERY will be retained.

5. Confirm the proper reference of the XLODBC.XLA Add-in in your

   EXCEL5.INI, located in the Windows directory on your local workstation.

   If the Add-in reference still points to EXCEL\LIBRARY, change this line

   to EXCEL\LIBRARY\MSQUERY, and save the EXCEL5.INI file.

MORE INFORMATION

================

Steps to Reproduce Behavior

---------------------------

1. Start Microsoft Excel version 5.0 from the network directory where

   Microsoft Excel is installed.

2. From the Tools menu, choose Add-ins, and choose Browse to add the ODBC

   Add-in (locate the XLODBC.XLA file).

You will receive the "Copy XLODBC.XLA to Microsoft Excel Add-in Library?"

error message.

If you choose YES, the XLODBC.XLA file is copied to the EXCEL\LIBRARY

directory and this file is referenced in the EXCEL5.INI file; however, the

XLODBC.DLL file remains in the EXCEL\LIBRARY\MSQUERY directory. Now you

have two copies of the XLODBC.XLA in two separate locations: one in the

EXCEL\LIBRARY and one in the EXCEL\LIBRARY\MSQUERY subdirectories.

The XLODBC.XLA must be located in the same directory as the XLODBC.DLL file

for the add-in to work with ODBC functionality. The Add-in Manager is using

the copied XLODBC.XLA file located in EXCEL\LIBRARY directory and cannot

find XLODBC.DLL.

KBCategory: kbtool kberrmsg

KBSubcategory:

Additional reference words: 5.00 5.00c addin connection path not found


XL5: Excel 5.0c Setup Program Installs VSHARE.386

Article ID: Q118958

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0c

--------------------------------------------------------------------

SUMMARY

=======

When you install Microsoft Excel version 5.0c, the Share utility is

installed on your computer. The Share utility is required to run Microsoft

Excel. It is used in OLE operations.

MORE INFORMATION

================

If you are running Microsoft Windows version 3.1 or Microsoft Windows for

Workgroups version 3.1 in Standard mode, and you are not running the Share

utility, the SHARE command is added to your AUTOEXEC.BAT file as in the

following example:

   <path>\SHARE.EXE /L:500 /F:5100

where <path> is the drive and directory where the SHARE.EXE file is

located (usually the MS-DOS directory). For example, if your MS-DOS

directory is called DOS and is on drive C, add the following line to your

AUTOEXEC.BAT file:

   C:\DOS\SHARE.EXE /L:500 /F:5100

If you are running Microsoft Windows version 3.1, or Microsoft

Windows for Workgroups (version 3.1 or 3.11) in 386 enhanced mode,

the following occurs if the Share utility is not already loaded on

your computer:

 - The file VSHARE.386 is installed in the SYSTEM subdirectory of your

   Microsoft Windows directory.

   -and-

 - The following line is added to the [386Enh] section of your SYSTEM.INI

   file:

      device=vshare.386

For more information about using VSHARE.386, choose the Microsoft Excel

Product Update topic in the Microsoft Excel Readme file, XLREADME.HLP.

Information is under topic "Using SHARE.EXE or VSHARE.386."

For more information about using VSHARE.386 with Microsoft Excel version

5.0, query on the following words in the Microsoft Knowledge Base:

    vshare.386 and xl5

KBCategory: kbsetup

KBSubcategory:

Additional reference words: 5.00c


XL5 Err Msg: "Cannot Open Printer Driver" with Chart Sheet

Article ID: Q110402

-------------------------------------------------------------

The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

-------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel version 5.0, you may receive the following error

message when you insert a chart into a workbook as a new sheet:

   Cannot Open Printer Driver

When you choose OK, you are able to finish creating the chart.

CAUSE

=====

You may receive the above error message when you insert a chart sheet

into a workbook if you do not have a default printer selected in the

Printers dialog box in Windows Control Panel.

RESOLUTION

==========

To work around this problem, set a default printer by doing either of the

following:

   In Microsoft Excel

   ------------------

   1. From the File menu, choose Print Preview.

   You receive the following error message:

      Current printer is unavailable. Select another printer.

   2. Choose the OK button. In the Printer Setup dialog box that appears,

      from the Printer list, select a printer to be your default printer,

      and choose OK.

   3. Choose Close to exit print preview.

   -or-

   In Microsoft Windows File Manager

   ---------------------------------

   1. From the Main Group in Program Manager, select Control Panel.

   2. From Control Panel, select the Printers icon.

   3. In the Printers dialog box, select a printer from the list of

      installed printers and then select the Set As Default Printer option.

   4. Choose the Close button to accept the change.

If there are no installed printers listed, consult your Microsoft

Windows manual for information on installing the appropriate printer

driver for your printer.

REFERENCES

==========

"User's Guide," version 5.0, pages 267-268

KBCategory: kbusage

KBSubcategory:

Additional reference words: 5.00 paper model


XL5: Returning Multiple Values from a Custom Function

Article ID: Q110693

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel version 5.0, there are two different methods of

returning multiple values from a custom function: one for returning a

variable-sized array and one for returning a fixed-size array.

The following Visual Basic code examples demonstrate each of these methods.

MORE INFORMATION

================

Microsoft provides examples of Visual Basic procedures for

illustration only, without warranty either expressed or implied,

including but not limited to the implied warranties of merchantability

and/or fitness for a particular purpose. This Visual Basic procedure

is provided 'as is' and Microsoft does not guarantee that it can be

used in all situations. Microsoft does not support modifications of

this procedure to suit customer requirements for a particular purpose.

Note that a line that is preceded by an apostrophe introduces a

comment in the code--comments are provided to explain what the code is

doing at a particular point in the procedure. Note also that an

underscore character (_) indicates that code continues from one line

to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This

Manual" section in the "Document Conventions" section of the "Visual

Basic User's Guide."

Method to return a variable-size result array

---------------------------------------------

This method returns an array of values based on an argument range. The size

of the resulting array will fluctuate depending on the number of elements

in the argument array. For example, assume that you want to create a

function that will multiply each value in a range by 100. The following

custom function will accept an array (a range of values) as its argument:

   Function Multiply_Range(myrange As Object) As Variant

     Dim temp As Variant

     Dim i As Integer, j As Integer

     temp = myrange.Value 'creates a copy of the values in myrange

     ' if more than one element then loop through both dimensions of the

     ' array and multiply each element by 100.

     ' if not more than one element then temp is multiplied by 100.

     If IsArray(temp) Then

         For i = 1 To UBound(temp, 1)

             For j = 1 To UBound(temp, 2)

                 temp(i, j) = temp(i, j) * 100

             Next j

         Next i

     Else

         temp = temp * 100

     End If

     Multiply_Range = temp

   End Function

To use the custom function, select the range B1:B4 and enter the

following formula as an array:

   A1:     5       B1:     {=Multiply_Range(A1:A4)}

   A2:     3       B2:     {=Multiply_Range(A1:A4)}

   A3:     1       B3:     {=Multiply_Range(A1:A4)}

   A4:     2       B4:     {=Multiply_Range(A1:A4)}

The result will be:

   A1:     5       B1:     500

   A2:     3       B2:     300

   A3:     1       B3:     100

   A4:     2       B4:     200

NOTE: The above formula must be entered as an array formula. To enter a

formula as an array formula in Microsoft Excel for Windows, press

CTRL+SHIFT+ENTER.

Method to Return Array Result of a Fixed Size

---------------------------------------------

This method for returning multiple values from a custom function assumes

that you will have a fixed number of elements in the resulting array.

The following custom function will accept a starting time and an ending

time and return the number of hours, minutes, and seconds between them in a

3-row by 1-column array.

   Function Elapsed_Time(start, finish As Date) As Variant

      Dim hours, minutes, seconds As Integer

      hours = Hour(finish - start)

      minutes = Minute(finish - start)

      seconds = Second(finish - start)

      Elapsed_Time = Application.Transpose(Array(hours, minutes, seconds))

   End Function

To use this custom function, enter a starting time and a finish time

in two cells (for example, A1 and A2 below). Then, highlight three

cells in a column (for example, A3 through A5 below) and enter the

following as an array formula:

   A1:     1:00:00

   A2:     6:49:34

   A3:     {=Elapsed_Time(A1,A2)}

   A4:     {=Elapsed_Time(A1,A2)}

   A5:     {=Elapsed_Time(A1,A2)}

The result will appear as follows:

   A1:     1:00:00

   A2:     6:49:34

   A3:     5

   A4:     49

   A5:     34

NOTE: The above formula must be entered as an array formula. To enter a

formula as an array formula in Microsoft Excel for Windows, press

CTRL+SHIFT+ENTER.

If you prefer to enter the function horizontally into a range

of cells instead of a vertically, change the Elapsed_Time line to

read:

   Elapsed_Time = Array(hours, minutes, seconds)

REFERENCES

==========

"Visual Basic Users Guide," version 5.0, Chapter 3

KBCategory: kbprg

KBSubcategory:

Additional reference words: 5.00


XL5: Visual Basic Macro to Convert Lotus Files to Excel

Article ID: Q115343

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

One of the features of Microsoft Excel version 5.0 is the ability to read

Lotus 1-2-3 worksheets.

NOTE: In order to read Lotus 1-2-3 version 4.0 files, you need to use the

"Lotus 1-2-3 WK4 File Converter," available as an Application Note.

For additional information, please see the following article(s) in the

Microsoft Knowledge Base:

   ARTICLE-ID: Q122583

   TITLE     : XL5: AppNote: Lotus 1-2-3 WK4 File Converter (WE1130)

In Microsoft Excel version 5.0, you can create a Visual Basic, Applications

Edition, procedure to automatically open each Lotus 1-2-3 file in a

specified directory and save it as a Microsoft Excel workbook file (.XLS).

The following macro example demonstrates the looping procedure to perform

this action. The example provided does not delete the original Lotus files,

and will prompt you if a file with the same name is about to be

overwritten.

MORE INFORMATION

================

Microsoft provides examples of Visual Basic procedures for illustration

only, without warranty either expressed or implied, including but not

limited to the implied warranties of merchantability and/or fitness for a

particular purpose. This Visual Basic procedure is provided 'as is' and

Microsoft does not guarantee that it can be used in all situations.

Microsoft does not support modifications of this procedure to suit customer

requirements for a particular purpose. Note that a line that is preceded by

an apostrophe introduces a comment in the code--comments are provided to

explain what the code is doing at a particular point in the procedure. Note

also that an underscore character (_) indicates that code continues from

one line to the next. You can type lines that contain this character as one

logical line or you can divide the lines of code and include the line-

continuation character. For more information about Visual Basic for

Applications programming style, see the "Programming Style in This Manual"

section in the "Document Conventions" section of the "Visual Basic User's

Guide."

Visual Basic Code Example

-------------------------

'Begin the subroutine

Sub LotusConverter()

'Set "filenam" to the first matching file in the current directory

filenam = Dir("*.wk*")

'Loop to open each matching file in the current directory

Do While Len(filenam) > 0

   On Error Resume Next

   'Opens the file

   Workbooks.Open Filename:=filenam

   'Continues execution if there was no error opening the file.

   If Err = 0 Then

      'Creates "newname" based on original Lotus filename

      newnam = Left(filenam, InStr(1, filenam, ".") - 1) & ".xls"

      'Saves the new file as an Excel normal file

       ActiveWorkbook.SaveAs Filename:=newnam, FileFormat:=xlNormal

      'Closes the current file

      ActiveWorkbook.Close

   Else

      'Display message if opening filenam was unsuccessful.

      MsgBox "Unable to Open file: " & filenam

      'Resets error checking.

      Err = 0

   End If

   'Gets the next file name

   filenam = Dir()

'Repeats the loop for all matching files in the current directory

Loop

End Sub

In order to run the macro, make sure the appropriate directory where

the Lotus 1-2-3 files are located is set as the current directory.

Choose Macro from the Tools menu, and select "LotusConverter" from

the list of macros and choose Run. The macro will proceed without

your intervention unless a duplicate filename is found (in which case

you will be prompted to change the duplicate filename).

KBCategory: kbprg kbcode

KBSubcategory:

Additional reference words: 5.00


XL5: "Cannot Open Help File" Running Examples And Demos

Article ID: Q116393

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you choose Examples And Demos from the Help

menu, the Microsoft Help window appears, and you receive the

following error message:

   Cannot open Help file.

CAUSE

=====

This error message appears when Microsoft Excel cannot locate the

MAINXL.HLP file. The Microsoft Excel Help file, MAINXL.HLP, is

required to run the Examples And Demos. However, if you install the

Examples And Demos option during Setup, and you do not install the

Help For Microsoft Excel option, you cannot run the Examples And

Demos.

WORKAROUND

==========

To run the Examples And Demos in Microsoft Excel, install the

Microsoft Excel Help file using the following steps:

1. Run the Microsoft Excel Setup program.

2. From the Options list in the Microsoft Excel 5.0 Maintenance Mode dialog

   box, select the Online Help And Lessons check box.

3. Choose the Change Option button. From the Options list, select the Help

   For Microsoft Excel check box. Choose OK.

4. Continue with the Setup program.

REFERENCES

==========

For more information about Examples And Demos, choose the Search

button in Help and type:

   examples

KBCategory:

KBSubcategory:

Additional reference words: 5.00 cbt demo "can't open help file"


Importing Text Files Larger Than 16384 Rows

Article ID: Q116232

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, versions 3.0, 4.0, 4.0a, 5.0

 - Microsoft Excel for the Macintosh, versions 3.0, 4.0

--------------------------------------------------------------------

SUMMARY

=======

Text files that contain more than 16384 rows cannot be opened in their

entirety in Microsoft Excel. You cannot open these files because a

worksheet is limited to 16384 rows. If you open a file that contains more

data than this, the size will produce the following error message

   File not loaded completely

and the text file will be truncated at the 16384th row. However, you can

use a macro to open the file and automatically break the text into multiple

worksheets.

MORE INFORMATION

================

The following sample macro prompts the user for a text filename, opens the

file into memory, and determines if the number of rows is larger than

16384. If the number of rows is beyond the Microsoft Excel worksheet limit,

the macro breaks the file into multiple worksheets.

Microsoft provides macro examples for illustration only, without warranty

either expressed or implied, including but not limited to the implied

warranties of merchantability and/or fitness for a particular purpose. This

macro is provided 'as is' and Microsoft does not guarantee that the

following code can be used in all situations. Microsoft does not support

modifications of the code to suit customer requirements.

Enter the following macro into a macro sheet:

A1:  Large_Text_File_Importer

A2:  filename=INPUT("Please enter the Text File's name",2,"Large Text

     File Importer")

A3:  =IF(filename=FALSE,RETURN())

A4:  filenum=FOPEN(filename,2)

A5:  =ECHO(FALSE)

A6:  =NEW(1)

A7:  Counter=1

A8:  =WHILE(FPOS(filenum)<=FSIZE(filenum))

A9:  =MESSAGE(TRUE,"Importing Row "&Counter&" of text file "&filename)

A10: =FORMULA(FREADLN(filenum))

A11: =IF(ROW(ACTIVE.CELL())=16384)

A12: =NEW(1)

A13: =ELSE()

A14: =SELECT("R[1]C")

A15: =END.IF()

A16: Counter=Counter+1

A17: =NEXT()

A18: =FCLOSE(filenum)

A19: =MESSAGE(FALSE)

A20: =RETURN()

Description of macro code:

A1:  Name of the Macro

A2:  Prompt user for the Text file's name (with complete path and file

       extension).

A3:  If input box cancel button was selected, then end macro.

A4:  Open the Text file with Read access.

A5:  Turn screen updating off.

A6:  Create a new worksheet

A7:  Initialize the row Counter name to the value of 1.

A8:  Loop until we reach the end of the file.

A9:  Display a status message at the bottom of Excel.

A10: Read a line from the text file and place into the active cell.

A11: Check to see if the current row is 16384.

A12: If A12 is True, then create a new sheet.

A13: If A12 is NOT True, then do the following...

A14: Select 1 row down from the active cell.

A15: End the IF block.

A16: Increment the Counter name by 1.

A17: Loop back to A9.

A18: Close the text file (opened in cell A4).

A19: Turn the status bar back to normal.

A20: End Macro.

NOTE: This macro does not parse the data into columns. After you use this

macro, you may also need to do the following:

 - If you are using Microsoft Excel 5.0, use the Text To Columns command on

   the Data menu.

   -or-

 - If you are using Microsoft Excel 3.0, 4.0, or 4.0a, use the Data Parse

   command or the Smart Parse command FLATFILE.XLA add-in macro.

Note also that, because this is a macro, it may be significantly slower

than choosing the Open command from the File menu.

REFERENCES

==========

KBCategory:

KBSubcategory:

Additional reference words: 3.00 4.00 5.00 import ascii


XL5: Columns Hidden in File Saved to WK1 Format in SuperCalc

Article ID: Q118998

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you open a file that was created in SuperCalc 5,

the cells on the worksheet are not visible.

CAUSE

=====

This behavior occurs in Microsoft Excel because the worksheet columns

are hidden or saved with a column width of zero when you save a file

to the Lotus WK1 file format in SuperCalc 5.

WORKAROUND

==========

When you open a file in Microsoft Excel that was created in SuperCalc

5, do the following to display cells on the worksheet:

1. Select the entire Worksheet by choosing the Select All button (above

   the row number 1) or CTRL+A.

2. From the Format menu, choose Column, and then choose Unhide.

To display gridlines in the file, do the following:

1. From the Tools menu, choose Options.

2. Select the View tab, and under Window Options, select the Gridlines

   check box. Choose OK.

SuperCalc 5 is manufactured by Computer Associates, a vendor independent of

Microsoft; we make no warranty, implied or otherwise, regarding this

product's performance or reliability.

REFERENCES

==========

For more information about Opening A Document Created By Another

Application, choose the Search button in Help and type:

   importing data from other applications, opening imported documents

KBCategory: kb3rdparty

KBSubcategory:

Additional reference words: 5.00 3rdparty dos 5.5b


XL5: Printer Setup Option Doesn't Affect Selected Sheet

Article ID: Q115342

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0

--------------------------------------------------------------------

SYMPTOMS

========

In Microsoft Excel, when you select a printing option such as Orientation,

Duplex Printing, or Paper Size by using the Printer Setup button in the

Print dialog box instead of the Page Setup dialog box, the printing option

does not affect the selected worksheet.

CAUSE

=====

This behavior is by design in Microsoft Excel. There are two ways to change

the printer settings:

 - The Page Setup method changes the printer settings only for the current

   document.

 - The Printer Setup method changes the printer settings only for new

   documents that you create in Microsoft Excel and other applications that

   use the same printer driver.

Page Setup Method

-----------------

When you use the Page Setup button in the Print dialog box to select a

printing option such as Orientation, and you then choose the Options dialog

box, the change you make affects only the selected sheets in the active

workbook.

Printer Setup Method

--------------------

When you use the Printer Setup button in the Print dialog box to select a

printing option, such as Orientation, the change that you make affects new

documents that you create in Microsoft Excel, and any other applications

that print in Microsoft Windows. This change has the same effect as when

you select the option by choosing the Printers icon in the Control Panel.

WORKAROUNDS

===========

To change a printing option in the selected worksheet in the active

workbook, do the following:

1. From the File menu, choose Page Setup.

2. In the Page Setup dialog box, select the Page tab, and choose the

   Options button.

3. In the printer dialog box (the title of the dialog box is the name

   of the selected printer), select any of the available printing

   options, or choose any buttons to display more printing options.

To change a printing option for new documents only, and for all

applications in Microsoft Windows, do the following:

1. From the File menu, choose Print.

2. In the Print dialog box, choose Printer Setup.

3. From the Printer list, select the printer you want to use, and then

   Choose the Setup button.

4. In the printer dialog box (the title of the dialog box is the name

   of the selected printer), select any of the available printing

   options, or choose any buttons to display more printing options.

Note that the same dialog box is displayed when you follow either of the

above procedures; however, the results of the two procedures are different.

REFERENCES

==========

For more information about the Print command, choose the Search button in

Help and type:

     Print Command (File Menu)

KBCategory: kbprint

KBSubcategory:

Additional reference words: 5.00 truetype graphic orientation portrait

quality source


XL5: Overview of ODBC Add-in Functions and Arguments

Article ID: Q120870

--------------------------------------------------------------------

The information in this article applies to:

 - Microsoft Excel for Windows, version 5.0, 5.0c

 - Microsoft Excel for the Macintosh, version 5.0

--------------------------------------------------------------------

SUMMARY

=======

In Microsoft Excel version 5.0, the XLODBC.XLA ODBC add-in provides ODBC

functions that allow you to connect to external data sources directly.

XLODBC.XLA provides functions in both the Visual Basic and MS Excel 4.0

macro languages. All of the functions are macro commands with the exception

of SQL.REQUEST and SqlRequest, which are worksheet functions.

NOTE: The functions SQLBind, SQLClose, SQLError, SQLExec, SQLGetSchema,

SQLOpen, SQLRetrieve, and SQLRetrieveToFile are displayed in the

Function Wizard when the active sheet is a worksheet. However, these

functions can be used only in a macro or module sheet.

MORE INFORMATION

================

The following is a list of the functions provided by XLODBC.XLA and a

description of the arguments for those functions. The arguments for each

function are shown here as they are displayed in the Function Wizard.

Note that there are some discrepancies in the argument naming conventions

used between Function Wizard and the help files.

SQL.BIND(connection_num,column,reference)

SQLBind(ConnectionNum,Column,Reference)

SQL.CLOSE(connection_num)

SQLClose(ConnectionNum)

SQL.ERROR()

SQLError()

SQL.EXEC.QUERY(connection_num,query_text)

SQLExecQuery(ConnectionNum,QueryText)

SQL.GET.SCHEMA(connection_num,type_num,qualifier_text)

SQLGetSchema(ConnectionNum,TypeNum,QualifierText)

SQL.OPEN(connection_string,output_ref,driver_prompt)

SQLOpen(ConnectionStr,OutputRef,DriverPrompt)

*SQL.REQUEST(connection_string,output_ref,driver_prompt,query_text,col_

names_logical)

*SQLRequest(ConnectionStr,QueryText,OutputRef,DriverPrompt,ColNamesLogical)

SQL.RETRIEVE(connection_num,destination_ref,max_columns,max_rows,

col_names_logical,row_nums_logical,named_rng_logical,fetch_first_logical)

SQLRetrieve(ConnectionNum,DestinationRef,MaxColumns,MaxRows,

ColNamesLogical,RowNumsLogical,NamedRngLogical,FetchFirstLogical)

SQL.RETRIEVE.TO.FILE(connection_num,destination,col_names_logical,

column_delimiter)

SQLRetrieveToFile(ConnectionNum,Destination,ColNamesLogical,

ColumnDelimiter)

*The order of the arguments in the MS Excel 4.0 function SQL.REQUEST

differs from that of the Visual Basic function SQLRequest.

NOTE: Although the argument names differ slightly between the Microsoft

Excel 4.0 macro functions and the Visual Basic functions, the arguments

themselves have the same meaning. For example, the argument ConnectionNum

for a Visual Basic function has the same meaning as connection_num for a

Microsoft Excel version 4.0 macro language function.

The following is a description of the arguments used in the above

functions:

Argument             Description

---------------------------------------------------------------------

ColNamesLogical      True if you want column names returned as the

col_names_logical    first row of the results.

Column               The number of the result column to be bound.

column               Result columns are numbered from left to right

                     starting with 1. Column 0 provides row numbers.

                     If you omit column, all bindings for the

                     connection are removed.

ColumnDelimiter      The string to use to separate the elements in

column_delimiter     each row of the created text file. If omitted,

                     a tab is used.

ConnectionNum        The unique ID returned by SQLOpen for the

connection_num       connection made to the data source.

ConnectionStr        Supplies information, such as the data source

connection_string    name, user ID, and password, required by the

                     driver being used to connect to a data source.

                     Must follow the driver's format (see the "References"

                     section of this article for information about

                     where the driver's help file is located). Strings

                     longer than 255 characters must be broken into

                     an array of strings.

Destination          A string that specifies the name and path of

destination          the file where you want to place the results.

                     An existing file will be overwritten.

DestinationRef       A reference specifying the top-left cell where

destination_ref      results should be placed. Any previous values

                     in the destination cells are overwritten

                     without confirmation. If omitted, results are

                     placed according to previous calls to SQLBind.

DriverPrompt         A number specifying if and how the driver should

driver_prompt        prompt for additional needed information for a

                     connection. Refer to the online help for values.

FetchFirstLogical    Important only if MaxRows is specified for

fetch_first_logical  SQLRetrieve, and there are more rows of results

                     than MaxRows available. Use True to return

                     the first set of rows from the beginning of a

                     query's results. Then call SQLRetrieve repeatedly

                     using False to return the next set of rows until

                     all result rows are returned. Refer to the online

                     help for details.

MaxColumns           The maximum number of columns to be returned to

max_columns          the worksheet starting at DestinationRef.

                     If omitted, all columns are returned.

MaxRows              The maximum number of rows to be returned to

max_rows             the worksheet starting at DestinationRef.

                     If omitted, all rows are returned.

NamedRngLogical      True if you want each column of the results to

named_rng_logical    be declared as a named range on the worksheet.

OutputRef            A cell reference where you want the completed

output_ref           connection string placed.

QualifierText        A string that qualifies the information returned

qualifier_text       by TypeNum--only for a TypeNum of 3, 4, or 5.

QueryText            The SQL query to be executed on the data source.

query_text           Strings longer than 255 characters must be broken

                     into an array of strings. While common queries use

                     a standard syntax, there may be differences in

                     driver limitations and extensions (see the

                     "References" section of this article for information

                     about where the driver's help file is located).

Reference            The location of a single cell on a worksheet where

reference            you want the results bound as a Range object.

                     If Reference is omitted, binding is removed for

                     the column.

RowNumsLogical       Used only when destination is included in the

row_nums_logical     function call. If rowNumbers is True, the

                     first column in the result set contains row

                     numbers. If destination is False or omitted,

                     the row numbers are not returned.

TypeNum              Specifies the type of information you want

type_num             returned. Refer to the online help for values.

REFERENCES

==========

For more information about individual functions, see the appropriate help

file. If you are using Windows, the ODBC driver help files are located in

your windows\system directory and are named DRVXXXXX.HLP. If you are using

a Macintosh, the help files for Microsoft ODBC drivers are located in the

Microsoft folder and are called "ODBC SQL Server Help" and "Q+E ODBC FoxPro

Driver Help."

"Microsoft Excel 5.0 User's Guide," Chapter 23.

KBCategory: kbnetwork

KBSubcategory:

Additional reference words: 5.00


More Information About Knowledge Base (KB) Help

Article ID: Q199990

The KB Help file is a snapshot of the Knowledge Base

written by Product Support Engineers to help

support Microsoft customers at the time this file was

created.

More recent KB articles can be found on Internet,

CompuServe, and GENIE. After you log on to one of these

services with your  account information, follow these steps

to find the KB:

 - On Internet, look in DESKAPPS\ACCESS\KB\README.TXT

 - On CompuServe, type "GO MSKB"

 - On GEnie, type "M 505"

OTHER SOURCES OF MICROSOFT SUPPORT INFORMATION

Microsoft offers Electronic Information Services as an

alternativeto person-to-person support. All U.S. and

Canadian Microsoft customers have access 24 hours a day, 7

days a week to a range of free or low-cost service options

including:

Microsoft FastTips

Toll-free, automated information about key Microsoft

products. Customers have access to technical articles

(including common questions and answers) via voice, fax, and

U.S. Mail. The four categories are:

FastTips for Desktop Applications          (800)-936-4100

FastTips for Personal Operating Systems    (800)-936-4200

FastTips for Development Products          (800)-936-4300

FastTips for Advanced Systems              (800)-936-4400

Microsoft Knowledge Base

This is the primary Microsoft product information source--a

database of more than 25,000 detailed articles containing

technical information, bug lists, fix lists, and more.

Access via CompuServe, the Internet, and GEnie.

Microsoft Download Service

Direct access to Microsoft Download Library (MSDL) by modem

through the Microsoft BBS service at (206) 936-6735. Connect

information: 1200, 2400, or 9600 baud, no parity, 8 data

bits, and 1 stop.

Microsoft Forums on CompuServe

Microsoft facilitates a variety of interactive dialog forums

for its worldwide community of customers. Access by typing:

GO MICROSOFT. CompuServe connect charges apply. To establish

an information service account, contact CompuServe directly

at (800) 848-8199.

Microsoft Information Network

TechNet

Part of the support professionals program, the TechNet CD

contains resource kits, customer solution profiles, case

studies, and tips and techniques for integration. For

TechNet subscriptions, call (800) 344-2121 ext. 035.

Microsoft Developers' Network (MSDN)

Level 1 CD is a Development Library of comprehensive

development information for Win16 and Win32 APIs. Level 2 CD

contains all software needed to develop Windows-based

applications. For Microsoft Developers Network

subscriptions, call (800) 759-5474.

The Internet

Access the Microsoft Software Library and the Microsoft

Knowledge Base by anonymous ftp. The Microsoft Internet FTP

archive host supports anonymous login. The name of the

server is FTP.MICROSOFT.COM; the IP address is

198.105.232.1.


Microsoft Knowledge Base Help File Survey

Article ID: Q199991

               Microsoft Knowledge Base Survey

To better meet your needs, please give us your feedback on the

Microsoft Knowledge Base (KB) Help file. We appreciate your input.

There are several Help files available; which files have you downloaded?

   ____  Access 2.x or Access 1.x                  ____  Word 6.0 articles

   ____  Excel 5.0 Most Useful articles            ____  Windows 3.1 articles

   ____  Visual Basic for Applications             ____  Windows Printing

   ____  Project 4.0 articles                      ____  Publisher

   ____  Windows for Workgroups articles           ____  Office

   ____  Windows for Workgroups 100 Most Useful articles

   ____  Multimedia Helpfile

How did you receive this KB Help file?

   ____ ftp.microsoft.com (Internet), softlib directory

   ____ CompuServe user forums or MSL

   ____ MSDL

   ____ FastTips

   ____ Mailed from PSS

   ____ From a local network or BBS, coworker, or friend

Did you find a resolution to your problem in the KB Help file?

   Yes / No

How do you prefer to receive your KB information?

   ____ A KB Help file with the most useful articles

   ____ A KB Help file with all articles (even if the file is several MB)

   ____ Several KB Help files, each with articles from a major category

   ____ Individual articles, such as those available in the KB on

        Internet and CompuServe

   ____ Other _______________________________________________________

Where do you normally get your technical information?

Please rank each source from 1-8:

   ____ KB Help file

   ____ KB on ftp.microsoft.com or CompuServe

   ____ MSDN or TechNet CDs

   ____ CompuServe Technical Support Forums

   ____ Calling Microsoft FastTips 800 number

   ____ Calling Microsoft Product Support (PSS)

   ____ Calling PSS and receiving technical items by fax/mail/both

   ____ Other _______________________________________________________

Do you have a modem?  Yes / No

May we follow up this survey with a phone call or E-mail if we

need additional information? Yes / No

Name _________________________________________________________

Address, E-mail name, or Internet address

______________________________________________________________

Phone _______________________________

Occupation ___________________________________________________

Type of business/industry ___________________________________________

Microsoft products you use __________________________________________

To submit this survey, please print the Help topic and fax your

responses to Microsoft KB Survey, (206) 704-4412.

NOTE: We are unable to respond to technical support questions at this

phone number.