Cursor location in email item?

Status
Not open for further replies.
B

Bob Bridges

I do a respectable amount of coding in VBA/Access and /Excel, but hardly any

(so far) in Outlook. From the little bit of research I did today, Outlook is

a very different animal. Is there a user's guide or text that I should

tackle before doing anything serious in VBA/Outlook?

Specifically what I'm looking for is the location of the cursor. I have in

mind writing a subroutine that identifies the entire paragraph in which the

cursor is locating it, and setting certain formatting (typeface, size, color)

for the entire paragraph. I'll be using HTML and I've a little familiarity

with the DHTML object model, but the cursor location is eluding me so far.
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Outlook itself doesn't support that. But if Word is the email editor, you

can use the Word object model: The Inspector.WordEditor property returns a

Word.Document object.

Best regards

Michael Bauer

Am Tue, 19 Jan 2010 22:16:01 -0800 schrieb Bob Bridges:


> I do a respectable amount of coding in VBA/Access and /Excel, but hardly


any
> (so far) in Outlook. From the little bit of research I did today, Outlook


is
> a very different animal. Is there a user's guide or text that I should
> tackle before doing anything serious in VBA/Outlook?

> Specifically what I'm looking for is the location of the cursor. I have


in
> mind writing a subroutine that identifies the entire paragraph in which


the
> cursor is locating it, and setting certain formatting (typeface, size,


color)
> for the entire paragraph. I'll be using HTML and I've a little


familiarity
> with the DHTML object model, but the cursor location is eluding me so far.
 
S

Sue Mosher [MVP]

In the future, please give your Outlook version, because there are

significant differences between versions. Michael's advice applies to

Outlook 2007 and also Outlook 2003 with Word as the email editor. For

Outlook 2003 with the built-in editor, see

http://www.outlookcode.com/codedetail.aspx?id=1358 for a code sample that

shows how to work with the HTMLDocument and its Selection.

Sue Mosher

"Bob Bridges" <rhbridg.RemoveThisNode@attglobal.net> wrote in message

news:68622F50-C86F-4B56-AED5-FC94F826CE3A@microsoft.com...
> I do a respectable amount of coding in VBA/Access and /Excel, but hardly
> any
> (so far) in Outlook. From the little bit of research I did today, Outlook
> is
> a very different animal. Is there a user's guide or text that I should
> tackle before doing anything serious in VBA/Outlook?

> Specifically what I'm looking for is the location of the cursor. I have
> in
> mind writing a subroutine that identifies the entire paragraph in which
> the
> cursor is locating it, and setting certain formatting (typeface, size,
> color)
> for the entire paragraph. I'll be using HTML and I've a little
> familiarity
> with the DHTML object model, but the cursor location is eluding me so far.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
F Insert date at cursor location Outlook VBA and Custom Forms 4
M When I click “new message” in outlook, my cursor defaults to the body of the m Using Outlook 6
K Placing cursor over an email name it would show the name of the person Using Outlook 1
R Test if cursor is in To... field Outlook VBA and Custom Forms 1
T current cursor position in the reply event Outlook VBA and Custom Forms 1
T Changing Sent Items location in Outlook 2019 Using Outlook 0
N Free/busy publish at http location does not work Using Outlook 1
L New Location for the Search Bar Using Outlook 6
E How to display "Change Folder" in Change Default Email Delivery Location in Exchange Outlook 2016 Using Outlook 1
DoctorJellybean Preserve OST file location in new installation? Using Outlook 4
S Moving .OST file location unsuccessful! Using Outlook 6
W Appointment occurrences change the location property Using Outlook 0
A Missing context menu on Location field Using Outlook 2
V Change default default save location to Quick Access Using Outlook 1
T Remove Old Location From Tasks Pane Using Outlook 1
Diane Poremsky Meeting Location Warning Message New Slipstick.com Articles 0
Kika Melo Change location of Outlook SecureTemporary Files Folder Using Outlook 5
Pierce007 Maps/location in making an appointment Using Outlook 2
J Live Meeting Location populate from body Outlook VBA and Custom Forms 4
K After Carbonite restore pst files are found in a weird location Using Outlook 2
I Save selected email message as .msg file (with user to choose folder location) Outlook VBA and Custom Forms 14
Tech Checkers Make Outlook add Contact Card Address in Location Field based on Appointment Subject Name. Using Outlook 2
moron save as & file location dialog box popup Outlook VBA and Custom Forms 2
H Can't change the location of the Data File (.ost) in Outlook 2013 Using Outlook 2
Fozzie Bear Wishlist To be able to add a local folder or network share location in foldern view Outlook Wishlist 1
R Outlook will not send from home location Using Outlook 6
S Workgroup template file location? Using Outlook 2
L Cannot update Location field in Contacts - Runtime Error 438 Using Outlook 0
K Change the default Archive location via GPO in Outlook 2010 Using Outlook 3
P Trying to get 'Calendar Name' to appear like 'Subject' and 'Location' in event Calendar Printing Assistant 0
S Holidays after 2012 & NOT displaying location Using Outlook 8
C Outlook 2010 - Default PST location Using Outlook 4
M Outlook 2003: Restore location Using Outlook 1
Z Mail delivery location - I think Using Outlook 1
T Location and simple copying of emails and settings, OL 2010 and Win 7 64bit. Using Outlook 3
J Remove location field from displaying Calendar Printing Assistant 8
D Junk Mail location Using Outlook 1
D Extracting Location info from All Day Event in mailboxes into webpage Exchange Server Administration 3
J Move PST /changing default location in Outlook 2007 or 2010 64b on W7 64bit Using Outlook 2
G Pop up information location issue Using Outlook 4
C Multiple Locations in Calendar not showing 2nd location in invite Using Outlook 2
J .bcm file location BCM (Business Contact Manager) 1
S New Outlook Distribution List Location Outlook VBA and Custom Forms 2
T Location field Outlook VBA and Custom Forms 1
H popup window "Location Information" Microsoft Office Outlook 2007 Using Outlook 3
V change the Default email Delivery Location Outlook VBA and Custom Forms 3
I Changing Location of BCM data files BCM (Business Contact Manager) 1
D Script help - retain forwarded email body & location of script Outlook VBA and Custom Forms 5
S I have a Question on location of a Custom Outlook menu for my ADDI Outlook VBA and Custom Forms 1
M Issue transferring Outlook 2016 email accounts & settings onto new computer Using Outlook 8

Similar threads

Top