Solved

Paste from Word into Outlook (not as attachment) and send

Posted on 2001-06-22
6
178 Views
Last Modified: 2010-05-02
Hi,
I am new at this.  I need to copy text from a Word document, send it to Outlook and have it pasted into the main body of an e-mail (but not as an attachment).  Can anyone help me?
0
Comment
Question by:Stuff
6 Comments
 
LVL 1

Expert Comment

by:levr
ID: 6219976
This is some fragments from working application.
File is saved as txt type then retrieved.

FileName = "file_name"
oWordDoc.SaveAs FileName:=FileName, FileFormat:=wdFormatText, LockComments:=False, _
            Password:="", AddToRecentFiles:=False, WritePassword:="", ReadOnlyRecommended:=False, _
            EmbedTrueTypeFonts:=False, SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:=False

Open FileName For Binary Access Read As #lngFileNo
        Dim strTemp As String
        strTemp = String(LOF(lngFileNo), " ")
        Get #lngFileNo, , strTemp
        Close #lngFileNo

Set oMess = oSess.Outbox.Messages.Add
        Set oRec = oMess.Recipients.Add
        oRec.Name ="email_address")
        oRec.Resolve
        oMess.Subject ="subject"
        oMess.Text = strTemp
        oMess.DeliveryReceipt = False
        oMess.Update
        oMess.Send SaveCopy:=False, ShowDialog:=False

0
 

Author Comment

by:Stuff
ID: 6220641
Sorry......I should have been more clear.  I need to write a Word Macro that will do this.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 6220672
Why not just turn on macro recording and do it your self.  When done turn off the recording and look at the macro to make it do what you really need.

good luck
mlmcc
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Stuff
ID: 6220686
I can't.....I tried.....might be because of Windows 95 or Office 97....but it won't work.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7139717
Hi Stuff,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Refund points and save as a 0-pt PAQ.

EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 7178650
Placed in PAQ

Computer101
E-E Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 51
VBA filters 2 51
Access query that references subform 5 43
MS Access 03, TransferText, decimal places 8 47
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now