Microsoft KB Archive/163823

= Illegal Operation Using Function Instead of Sub In Macro =

Article ID: 163823

Article Last Modified on 9/26/2003

-

APPLIES TO


 * Microsoft Project 4.1 Standard Edition
 * Microsoft Project 4.1a

-



This article was previously published under Q163823



SYMPTOMS
When you run a macro that uses a function instead of a subroutine, you receive an error message indicating an illegal page fault or an exception error, such as the following:

WINPROJ caused an exception c0000026H in module KERNEL32.DLL at 0137:bff85f2a.



WORKAROUND
Use a Sub statement instead of a Function statement. For example, change this code: Function test End Function to this code: Sub Test End Sub



STATUS
Microsoft has confirmed this to be a problem in the products listed at the beginning of this article. We are researching this problem and will post additional information here in the Microsoft Knowledge base as it becomes available.

Keywords: KB163823

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.