Auto Run a macro or sub on task open

L

LWD3

I have the following sub that works off a button from the tool bar.

Public Sub subInsertDate()
Dim itm As Object
Dim strNote As String
On Error Resume Next

Set itm = Application.ActiveInspector.CurrentItem

If Not itm Is Nothing Then
strNote = itm.Body
itm.Body = Date & " - " & vbCrLf & strNote
End If

Set itm = Nothing

End Sub

How do I get this to auto execute when I open a specific task?
 

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

Top