XL97: Conditional Compilation Code Lost With 5.0/95 Format (161959)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q161959 SYMPTOMS
If you save a Microsoft Excel 97 workbook in the Microsoft Excel 5.0/95
Workbook file format, you lose any Conditional Compilation directives in
your code.
NOTE: You are not warned about the loss of your code when saving your file
in the 5.0/95 file format.
CAUSE
Conditional Compilation directives are not used in earlier versions of
Visual Basic for Applications and Microsoft Excel.
RESOLUTION
If you have already saved your file in the 5.0/95 file format, you must
reenter your Conditional Compilation directives when you open your file in
Microsoft Excel 97.
If you have not yet saved your file in the 5.0/95 file format and you
want to preserve your Conditional Compilation directives, either save
your module as a .bas file (you can import it into other projects) or
comment the Conditional Compilation directives, and then save your file in
the 5.0/95 file format.
REFERENCES
For more information about Conditional Compilation, click the Index tab in
Visual Basic for Applications Help, type the following text
and then double-click the selected text to go to the "Understanding
Conditional Compilation" topic.
| Modification Type: | Major | Last Reviewed: | 6/23/2005 |
|---|
| Keywords: | kbdtacode kbProgramming KB161959 |
|---|
|