Help me impress my boss - VB Question

W

Wendy

I've been tinkering around with this script to get it to post Time and Date
in the notes field of a Task form and I've got it to work (I think the
original script came from Sue's wonderful site) except the cursor ends up at
the end of the previous line (or at the beginning of the notes field), not
at the end of the time/date stamp line. Can someone help?

I'm using OL2K with Exchange Svr 5.5

Sub StampTask()

Dim objApp As Application

Dim objItem As Object

Dim objNS As NameSpace



Set objApp = CreateObject("Outlook.Application")

Set objNS = objApp.GetNamespace("MAPI")

Set objItem = objApp.ActiveInspector.CurrentItem

If objItem.Class = olTask Then

objItem.Body = objItem.Body & vbCrLf & Now() _


End If



Set objItem = Nothing

Set objNS = Nothing

Set objApp = Nothing

End Sub
 

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