TimeStamp in a Task form

A

Agust

Hi.
I used a sample code from the outlookcode website to create a timestamp in a
OL task form, assigned it to a toolbar button. It works fine but I'd like to
have the stamp appear in top of the field a the cursor just below. Think
that's possible?
reg,
Agust

this is the code I used
Sub StampTime()
Dim objItem As Object
Dim objNS As namespace

Set objNS = Application.GetNamespace("MAPI")
Set objItem = Application.ActiveInspector.CurrentItem
If objItem.Class = olTask Then
objItem.body = objItem.body & vbCrLf & Now() _
& " - " & objNS.CurrentUser
End If

Set objItem = Nothing
Set objNS = 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