Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2001-06-22
6
Medium Priority
?
185 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 101

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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

670 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