loExcel = CREATEOBJECT("Excel.application")Then I want to pass it to the menu in the following code, so that it is available to any program or form called by the menu.
CLOSE ALL SET MESSAGE TO 'Processing...' SET PROCEDURE TO emailCDO, ygprocs, commonprocs SET DELETED ON SET DECIMALS TO 5 SET SAFETY OFF SET TALK OFF SET CONSOLE OFF SET EXACT ON SET EXCLUSIVE OFF SET MULTILOCKS ON loExcel = CREATEOBJECT("Excel.application") PUSH MENU _msysmenu DO pm.mpr READ eventsThanks,