get current position in message body of mailitem

Status
Not open for further replies.
S

sd

hello

is it possible to get current cursor position (where next text will

appear) in message body of mailitem so that some predefined text/link

can be added at that position?

Thanks
 
Version of Outlook? WordMail or not?

"sd" <dshubhangi@gmail.com> wrote in message

news:298105ae-68bd-4556-af02-63d418e22850@l5g2000pra.googlegroups.com...
> hello

> is it possible to get current cursor position (where next text will
> appear) in message body of mailitem so that some predefined text/link
> can be added at that position?

> Thanks
 
I found cursor position related information on outlookcode.com for

both OL 2003 & OL 2007

Thanks Ken
 
I need to move to end of the word if the current cursor position is in

between the word and then insert the link.For OL 2007 using WordEditor

object it is possible.But for OL 2003 when word is not editor (for

plain text,HTML body format) how to accomplish this?

using redemption safeinspector I can insert the link at current cursor

position but how to know if current cursor position is in between the

word ?

Thanks again
 
You'd need to parse that out yourself. You'd get the position and the full

text and see if the position was at the end of the text or somewhere within

the text.

"sd" <dshubhangi@gmail.com> wrote in message

news:7f850884-51ca-460d-b46d-f191b530a7fa@y4g2000prf.googlegroups.com...

> I need to move to end of the word if the current cursor position is in
> between the word and then insert the link.For OL 2007 using WordEditor
> object it is possible.But for OL 2003 when word is not editor (for
> plain text,HTML body format) how to accomplish this?
> using redemption safeinspector I can insert the link at current cursor
> position but how to know if current cursor position is in between the
> word ?

> Thanks again
 
I was able to find out if the cursor is in between for Plain text

format but how to achive the same for HTML format ?SafeInspector has

HTMLEditor property but was unable to find if cursor is in between the

word.

Thanks again
 
HTMLEditor is an IHTMLDocument object, you would use that object model or

one derived from it.

"sd" <dshubhangi@gmail.com> wrote in message

news:2c07db9c-72c2-4bfe-810f-bfc57752be0a@y4g2000prf.googlegroups.com...

> I was able to find out if the cursor is in between for Plain text
> format but how to achive the same for HTML format ?SafeInspector has
> HTMLEditor property but was unable to find if cursor is in between the
> word.
> Thanks again
 
Thanks again.I was able to move to next/previous word with the help of

HTMLEditor.But is there any way to find out the char at current cursor

position using HTMLEditor?(as I need to insert link to end of word if

cursor is in between the word otherwise just insert link at current

cursor position)

Thanks
 
I don't do enough with IHTMLDocument to know that offhand. Take a look at

the object model for that object and see.

"sd" <dshubhangi@gmail.com> wrote in message

news:36d4768d-4d9c-4bc6-96ac-8ebc3e57f274@r24g2000prf.googlegroups.com...
> Thanks again.I was able to move to next/previous word with the help of
> HTMLEditor.But is there any way to find out the char at current cursor
> position using HTMLEditor?(as I need to insert link to end of word if
> cursor is in between the word otherwise just insert link at current
> cursor position)

> Thanks
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
K insert text into current position of pointer in mailcompose Outlook VBA and Custom Forms 1
T current cursor position in the reply event Outlook VBA and Custom Forms 1
G Get current open draft message body from VBA Outlook VBA and Custom Forms 1
S Macro to extract email addresses of recipients in current drafted email and put into clipboard Outlook VBA and Custom Forms 2
N Having Shared Calendar shift to Current day Using Outlook 0
E Conditional formatting - when current account <> received account ? Using Outlook 3
R Error when trying to forward current email item Outlook VBA and Custom Forms 7
P Auto Insert Current Date or Time into Email Subject Outlook VBA and Custom Forms 2
R VBA for copying sent email to current folder under a shared mailbox Outlook VBA and Custom Forms 17
H Select Specific Account When Sending Email, Based on Current Folder Outlook VBA and Custom Forms 1
W Save Outlook attachment in network folder and rename to current date and time Outlook VBA and Custom Forms 18
F "This action is not available in the current mode" Using Outlook 0
J Old unread emails on current date (MDaemon Server) Using Outlook 1
P Current View Pane for Contacts missing from Outlook 2016 Using Outlook 3
T Attach Current File to a new Email Using Outlook 0
K Daily task list > show tasks on the exact due date and not on the "current date" Using Outlook 1
C Outlook VBA to set current account Outlook VBA and Custom Forms 1
J Outlook 2013 Want to file a note after filtering with search current mailbox Using Outlook 3
R Inbox search, current folder, it's in there-but not found. Using Outlook 2
C Copy Cell value from Excel and paste into current email Outlook VBA and Custom Forms 10
S Auto Create new Task upon Current Task completion Outlook VBA and Custom Forms 28
B Outlook 2007 Save Current View,Font,Toolbar Settings Using Outlook 6
M Change default Current View on People Using Outlook 1
R how to get Outlook VBA code to work on the current folder Using Outlook 3
B Outlook 2010 won't save 'current view' with reading pane at 'bottom' Using Outlook 4
C Either there is no default mail client or the current mail client cannot ... Using Outlook 1
E "Current View" settings across multiple users on same Exchange 2007 account. Using Outlook 1
E Calendar Thumbnail current day background color Using Outlook 3
G How can I identify in VBA if the current window is an item or a folder? Using Outlook 3
C Hover display of DL shows original owner, not current Using Outlook 2
B right click outlook objects in OL2010 acts on current inbox mailitem Using Outlook 6
T Outlook makes every appointment recurring and set to the current date/time Using Outlook 2
D Save Current email in Directory. Outlook VBA and Custom Forms 1
L create new mail item from current item Outlook VBA and Custom Forms 4
S Count of Contacts In Current View BCM (Business Contact Manager) 1
S VBA access current contact? BCM (Business Contact Manager) 1
J Toolbar button to process current mailitem Outlook VBA and Custom Forms 1
X Re: how to access current text selection Outlook VBA and Custom Forms 1
T date/time field, current year Outlook VBA and Custom Forms 2
N Customize current view (in Account List) Business Contact Manager BCM (Business Contact Manager) 1
Q Remove filter from current view - outlook 2003 Outlook VBA and Custom Forms 4
D Re: How to specify the "current entry id" to GetItemFromID? Outlook VBA and Custom Forms 1
T Re: mailItem.HTMLBody should retrieve only current text Outlook VBA and Custom Forms 1
Witzker Outlook 2019 Macro to check Cursor & Focus position Outlook VBA and Custom Forms 8
A Form Position with Dual Monitors Outlook VBA and Custom Forms 2
D Outlook Message Window Changes Size and Position Using Outlook 1
K outlook 2010 changes text tab position when sending Using Outlook 2
D Outlook 2003 contact folder opend in scrolled down position Using Outlook 2
Commodore Renamed folder staying at the same position Using Outlook 3
Commodore Outlook 2010 - Search Folders position Using Outlook 6

Similar threads

Back
Top