|
-
Feb 15th, 2002, 11:04 PM
#1
Insert text???? Please Help!
Can I get an example of how to insert text in an open Outlook reply window? Pretty, pretty, please.
-
Feb 16th, 2002, 03:13 PM
#2
OK, here's what I came up with:
VB Code:
Private Sub UpdateMailReply()
'Add text to the top-most Outlook message window.
Dim objOutlook As Outlook.Application
Dim objOutlookInspector As Outlook.Inspector
Dim objOutlookAttach As Outlook.Attachment
'Create the Outlook session.
Set objOutlook = CreateObject("Outlook.Application")
'Get the top-most message window.
Set objOutlookInspector = objOutlook.ActiveInspector
'Add text to the message.
objOutlookInspector.CurrentItem.Body = "Hello World!" & objOutlookInspector.CurrentItem.Body
'Add attachment to the message.
Set objOutlookAttach = objOutlookInspector.CurrentItem.Attachments.Add("C:\MyTextDoc.txt", 1)
Set objOutlook = Nothing
End Sub
But that kills all the pictures and formatting in the message and replaces it with straight text. Isn't there a way to just add text to the body without replacing the entire body? Or better yet, can I insert a file as text? Outlook lets you do this, but I couldn't find any InsertText method or something to use in VB.
-
Feb 17th, 2002, 08:38 PM
#3
*BUMP*
Anyone? Insert file text or add text to outlook reply without changing body format. Anyone? Please!
-
Feb 18th, 2002, 12:27 AM
#4
Addicted Member
reply
-
Feb 19th, 2002, 12:10 AM
#5
Anyone know anywhere where I might even be able to find a clue to the answer? or something close? or anything?
I can't believe this is this hard. Nobody seems to know how to do this. Is this impossible? Doesn't a mail item have a range or something? This has to be possible. I really need this. Anyone?
-
Feb 19th, 2002, 01:55 AM
#6
JUST A HUNCH
This is just a hunch, don't rely on me.
Try getting the handle on the Open Outlook Window,
go through your API Text Viewer, there must be some function for adding text to an open window.
It's just a hunch. I'm a mid-newbie thing guy.
-
Feb 20th, 2002, 12:38 AM
#7
I wrote a stupid workaround that works for now, but I will find the answer someday, someday.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|