Run code at close event

  • Thread starter Thread starter Hans-Christian Francke
  • Start date Start date
H

Hans-Christian Francke

I use the following code to add a new taskitem.

Set myObj = mySpace.GetDefaultFolder(olFolderTasks).Items.Add()

myObj.Display

Now when closing/saving the item, I would like to run som VBA code.

Thank for any hint.

Kind regards
Hans-Christian Francke
 
You can use the Write or Close event:

Function Item_Close()

End Function

Function Item_Write()

End Function
 
Back
Top