PC Review


Reply
Thread Tools Rate Thread

Cursor Location After Running a Macro

 
 
srm
Guest
Posts: n/a
 
      27th Apr 2007
I'm using Outlook 2003 and creating Macros to enter repetitive notes
in contacts and tasks. I have the following code working but every
time it is run, the cursor goes to the top left of Notes for the
contact or task. Is it possible to have the cursor remain after the
text?

Public Sub RequestSoftware()

Set objItem = Application.ActiveInspector.CurrentItem
objItem.Body = objItem.Body & Format(Date, "mm/dd/yy") & "
- " & "This is my text and I want the cursor to be at the end of it" &
vbCrLf

End Sub

Thank you.

Shawn

 
Reply With Quote
 
 
 
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      27th Apr 2007


With the Redemption (www.dimastr.com) you can determine the cursor position.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am 26 Apr 2007 19:11:54 -0700 schrieb srm:

> I'm using Outlook 2003 and creating Macros to enter repetitive notes
> in contacts and tasks. I have the following code working but every
> time it is run, the cursor goes to the top left of Notes for the
> contact or task. Is it possible to have the cursor remain after the
> text?
>
> Public Sub RequestSoftware()
>
> Set objItem = Application.ActiveInspector.CurrentItem
> objItem.Body = objItem.Body & Format(Date, "mm/dd/yy") & "
> - " & "This is my text and I want the cursor to be at the end of it" &
> vbCrLf
>
> End Sub
>
> Thank you.
>
> Shawn

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro - save to current location vs excel default location leezard Microsoft Excel Misc 0 28th Oct 2008 03:04 PM
Freeze cursor position while running a macro Kamran Microsoft Word Document Management 1 11th Sep 2008 04:11 PM
From Macro in Excel find cursor location eg.C7 =?Utf-8?B?a3QodWsp?= Microsoft Excel Misc 1 10th May 2006 03:03 PM
How to trick a page into running at a location different from it'sphysical location? Luke Dalessandro Microsoft ASP .NET 0 15th Jan 2006 05:59 AM
Running a macro from a remote location Jeff Microsoft Access Macros 0 15th Mar 2004 09:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 AM.