A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Paste cells from Excel into message body



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 29th 06, 06:02 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Paste cells from Excel into message body

Am 28 Mar 2006 11:49:56 -0800 schrieb goshute:

With the Outlook Object Model you canīt set the focus on the body window and
you canīt determine the cursor position.

The Redemption gives you all these possibilities. You can get it from
www.dimastr.com

Another workaround could be to write all the e-mail in Word. Save the
document then as HTML file, read the file content and write it into the
e-mails HTMLBody property.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


How do I paste cells from Excel into a custom message form? I do not
want to send an attachment.

I have everthing else worked out.

I would like to copy certain cells in Excel then paste into the body
after vSect1 and send the e-mail.

I have copied this from the macro recorder in Outlook but do not know
what to do with it if anything.

Selection.PasteExcelTable False, False, False
Selection.TypeParagraph

Here is the code I do have:

Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
Set myNameSpace = objOutlook.GetNamespace("MAPI")
Set myOutBox = myNameSpace.GetDefaultFolder(olFolderOutbox)

With objOutlookMsg
Set objOutlookRecip = .Recipients.Add(strName)
objOutlookRecip.Type = olTo
.Subject = "Test Sub"
.Body = vSect1 & vbCrLf & vSect2
.Save
.Move myOutBox
End With

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy and paste recipients list into To field of new email message displays as ; [email protected] Outlook - General Queries 0 March 9th 06 04:19 PM
large printing in message body Mrs. Mopp Outlook Express 4 March 2nd 06 05:54 AM
images in message body Mike N Outlook Express 3 February 9th 06 11:08 PM
how to change the mail message body Ram Add-ins for Outlook 10 January 27th 06 05:21 PM
Outlook should allow cut and paste when creating message rules. exflier Outlook - General Queries 1 January 18th 06 03:14 PM


All times are GMT +1. The time now is 07:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright Đ2004-2025 Outlook Banter.
The comments are property of their posters.