DefType Statements Change If Workbook Used on New Platform (134412)
The information in this article applies to:
- Microsoft Excel for Windows 95 7.0a
- Microsoft Excel for Windows 5.0c
- Microsoft Excel for Windows NT 5.0
- Microsoft Excel for the Macintosh 5.0a
This article was previously published under Q134412 SYMPTOMS
In the versions of Microsoft Excel listed above, when you transfer a
Microsoft Excel workbook from the Windows platform to the Macintosh
platform, or vice versa, any DefType statements that are contained within a
Visual Basic module in the workbook may be changed arbitrarily or may
disappear completely.
WORKAROUND
To avoid this problem, use apostrophes to comment out any DefType
statements in your code before you transfer the workbook to a different
platform (Windows or Macintosh). Once the file has been transferred, you
can remove the apostrophes from the DefType statements, and your code
should behave as expected.
For more information about comments in Visual Basic Code,
click the Index tab in Microsoft Excel Help, type the following text
double-click the selected text, and then click Colors And Capitalization.
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 97 for Windows and Microsoft Excel 98 Macintosh Edition.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbbug kbenv kbfix kbProgramming KB134412 |
---|
|