Microsoft KB Archive/106205

{|
 * width="100%"|

Excel: Can't Use EXEC Task ID with APP.ACTIVATE

 * }

-

The information in this article applies to:


 * Microsoft Excel for Windows, versions 2.x, 3.0, 4.0, 4.0a
 * Microsoft Windows operating system version 3.1

-

The "Function Reference" states that the EXEC function task ID number can be returned to the APP.ACTIVATE function. However, if you are running Microsoft Excel with Microsoft Windows 3.1 and you use the task ID number returned by the EXEC function in an APP.ACTIVATE function, you will receive a macro error. This error occurs because, under Windows 3.1, the APP.ACTIVATE function requires the application's Title_Text, and does not accept a Task_Id_Number.