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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top