XL5: Errors Using Wildcard in Sheet Name with Consolidate

ID: Q118755

5.00 WINDOWS kbfixlist

The information in this article applies to:

SYMPTOMS

In Microsoft Excel, when you use a wildcard character in a sheet name in the Consolidate dialog box, you receive the following error messages

   Cannot open consolidation source file '[BOOK1.XLS]sheet*'

   Cannot find 'SHEET*'

   Cannot open consolidation source file 'SHEET*'

   No data was consolidated

where BOOK1.XLS is the name of the workbook that contains the worksheets that you want to consolidate, and SHEET* is the reference that you entered to consolidate all of the worksheets that begin with the word SHEET.

Additionally, when you choose Consolidate again from the Data menu, the reference that you entered is listed twice in the All References list; once with the worksheet name in capitals, and once in lowercase, as in the following example:

   'sheet*'!$A$1
   'SHEET*'!$A$1

CAUSE

This behavior occurs because you cannot use the asterisk (*) or question mark (?) wildcard character to consolidate multiple sheets in a workbook. This behavior is by design of Microsoft Excel. However, seeing multiple error messages and multiple occurrences of the sheet reference may be confusing. This problem occurs only when you include the book name in the Reference box in the Consolidate dialog box, and then use the Add button, instead of the OK button, to enter the reference.

WORKAROUND

To avoid receiving these error messages, and having the sheet reference with the wildcard character listed twice, do either of the following:

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 in Microsoft Excel version 5.0c, you still cannot consolidate multiple sheets in a workbook using the asterisk (*) or question mark (?) wildcard character. However, when you attempt this, you do not receive the duplicate "Cannot open consolidation source file..." error message, or the "Cannot find..." error message (the other error messages appear), and the reference is only listed once in the All References list.

REFERENCES

For an Overview Of Consolidating Data, choose the Search button in Help and type:

   consolidating data

KBCategory: kbfixlist KBSubcategory:

Additional reference words: 5.00 err msg

Keywords          : kbfixlist
Version           : 5.00
Platform          : WINDOWS

Last Reviewed: November 17, 1998