A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Reposition cursor in body



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 22nd 13, 03:35 PM
truhi truhi is offline
Junior Member
 
First recorded activity at Outlookbanter: Mar 2013
Posts: 1
Default Reposition cursor in body

Hi,
I'm using outlook 2010 , I've created a new mail which contains an image and text.
I want the cursor to reposition in the body of item.
In that way, I can fill in the "To" and "cc" field, and when I click in the content field, I can start typing in the body of item.
I created the following vba code, Item.Body.select Line, I get an error

How to code a cursor can be positioned within the body of the Item?
Code:
Dim Item As MailItem
Set Item = Application.ActiveInspector.CurrentItem
    Item.Body.select 
    Item.Body = "sentence 1" & vbNewLine & vbNewLine & _
 "sentence 2"

   
  Item.Display
Thank you very much
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
body of exception meeting gets overwritten by body of series message recall failure delay? Outlook - Calandaring 0 September 17th 08 05:56 PM
cursor chili gal Outlook - Installation 1 July 31st 08 09:36 AM
Move the cursor to Message Body DG Outlook and VBA 1 November 16th 07 05:53 AM
TaskItem.Body and AppointmentItem.Body = access violation (NULL pt Kayako Inc. Outlook and VBA 0 August 14th 07 12:36 AM
Reply in Outlook cursor on TO line instead of body of message [email protected] Outlook - General Queries 0 June 27th 06 09:21 PM


All times are GMT +1. The time now is 07:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.