Solved

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

Posted on 2001-06-22
6
179 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

813 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

11 Experts available now in Live!

Get 1:1 Help Now