Solved

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

Posted on 2001-06-22
6
177 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

747 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

12 Experts available now in Live!

Get 1:1 Help Now