XL5: GP Fault Copying, Moving, or Scrolling Visual Basic ModuleLast reviewed: September 12, 1996Article ID: Q120721 |
The information in this article applies to:
SYMPTOMSIn 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.
CAUSEThis 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.
STATUSMicrosoft 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 NT, version 5.0.
MORE INFORMATIONA 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.
REFERENCESFor more information about the ReDim Statement, choose the Search button in the Visual Basic Reference and type:
ReDimFor more information about a User-Defined Data Type, choose the Search button in the Visual Basic Reference and type:
Type |
KBCategory: kbprg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |