Please HELP....second post.

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
 
S

Sue Mosher [MVP]

It's not possible to control the cursor position.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
W

Wendy

Please excuse my ignorance but would it be possible to tell it page down
then end? Or is that 'cursor position'. Sorry but it seems like it's SO
CLOSE to working.

Wendy

It's not possible to control the cursor position.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP]

There's nothing to even put the cursor *into* the notes area, much less move it around. The only possible solution might be to fool around with SendKeys, and that's such a kludge that I can't recommend it.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 

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