The information in this article applies to:
- Microsoft Excel for the Macintosh, versions 1.5, 2.2, 3.0, 4.0
- Microsoft Excel for Windows, versions 2.x, 3.0, 4.0
- Microsoft Excel for OS/2, versions 2.2, 3.0
SUMMARY
If the list box (item 15 or 16) appears empty or blank when a custom
dialog box is displayed in Microsoft Excel versions 1.50 and later,
there are two possible reasons:
- The reference to the list is invalid. The reference to the list
must be in the Text column of the dialog box definition table, and
it must be in text format (for example, R1C1:R10C1). References to
an external sheet that contains apostrophes will cause the problem.
(Example: 'My Sheet'!Test, 'sheet1'!R1C1:R10:C1.) A reference to an
external sheet that is closed will also cause the problem.
- There is no list; that is, the area referred to (by the reference
in the Text column) contains no information. Be sure that the
reference refers to the correct area of the macro sheet or
worksheet.
In Microsoft Excel version 4.0, the references given in item 1 above
would need an extra apostrophe due to the leading apostrophe being
used to indicate a text item. If only one apostophe (as in 'Test
Sheet'!Test) is used it will show no leading apostrophe in that cell
and still bring in blanks. This is particularly necessary on the
Macintosh platform where files with spaces are common and file
references require the apostrophes to work.
References:
"User's Guide 2," version 4.0, pages 276-277
"User's Guide," version 3.0 for the Macintosh, pages 632-633
"User's Guide," version 3.0 for Windows, pages 634-638
"Functions and Macros," version 2.2, pages 177-178
|