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

Copy Entire Email Content - Paste into new Task



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 24th 09, 04:14 AM posted to microsoft.public.outlook.program_vba
Kolz
external usenet poster
 
Posts: 1
Default Copy Entire Email Content - Paste into new Task

Getting tired of drag and drop and if copying a message having to open up the
message in the text, so what i want to do is copy the entire message and
paste into a new task.

"one click" macro.

I use Office 2007. I realize you don't get "html" in an html format but
a copy/paste will give you pictures and pretty close to the original format.

Problem is ... I don't know VBA . I am a closet "RECORD MACRO" guy but...
can't do that in Outlook.

Help please.. Thanks in advance
Ads
  #2  
Old July 1st 09, 03:00 PM posted to microsoft.public.outlook.program_vba
Alan Moseley
external usenet poster
 
Posts: 61
Default Copy Entire Email Content - Paste into new Task

This will do pretty much what you ask. Copy the Sub below into your
ThisOutlookSession code window. Open up an email that you want to create a
task for, and run the macro.

Public Sub CreateTaskFromEmail()
Dim msg As Outlook.MailItem
Dim tsk As Outlook.TaskItem
Set msg = ActiveInspector.CurrentItem
Set tsk = Outlook.CreateItem(olTaskItem)
tsk.Subject = msg.Subject
tsk.Body = msg.Body
tsk.Display
Set msg = Nothing
Set tsk = Nothing
End Sub

--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"Kolz" wrote:

Getting tired of drag and drop and if copying a message having to open up the
message in the text, so what i want to do is copy the entire message and
paste into a new task.

"one click" macro.

I use Office 2007. I realize you don't get "html" in an html format but
a copy/paste will give you pictures and pretty close to the original format.

Problem is ... I don't know VBA . I am a closet "RECORD MACRO" guy but...
can't do that in Outlook.

Help please.. Thanks in advance

  #3  
Old July 3rd 09, 05:17 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Copy Entire Email Content - Paste into new Task

Actually, that won't do what everything that Kolz describes and seems to
want, because the Body property contains only plain text, not the pictures
and formatting. I've posted a new code sample at
http://www.outlookcode.com/codedetail.aspx?id=2040 that copies the full
formatted body from one Outlook 2007 item to another, taking advantage of
Word being the editor for all items except sticky notes and distribution
lists.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Alan Moseley" wrote in message
...
This will do pretty much what you ask. Copy the Sub below into your
ThisOutlookSession code window. Open up an email that you want to create
a
task for, and run the macro.

Public Sub CreateTaskFromEmail()
Dim msg As Outlook.MailItem
Dim tsk As Outlook.TaskItem
Set msg = ActiveInspector.CurrentItem
Set tsk = Outlook.CreateItem(olTaskItem)
tsk.Subject = msg.Subject
tsk.Body = msg.Body
tsk.Display
Set msg = Nothing
Set tsk = Nothing
End Sub

--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"Kolz" wrote:

Getting tired of drag and drop and if copying a message having to open up
the
message in the text, so what i want to do is copy the entire message and
paste into a new task.

"one click" macro.

I use Office 2007. I realize you don't get "html" in an html format
but
a copy/paste will give you pictures and pretty close to the original
format.

Problem is ... I don't know VBA . I am a closet "RECORD MACRO" guy
but...
can't do that in Outlook.

Help please.. Thanks in advance



 




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
How do I email my entire task list? ooanderson Outlook - Using Forms 1 July 25th 08 02:42 PM
Activex pop-up notice when using Copy and Paste for outgoing email iskender akhundov Outlook Express 2 March 7th 07 03:38 PM
ActiveX pop-up notice when using Copy and Paste for outgoing email donald Outlook Express 2 January 8th 07 01:19 AM
Cut and paste email content into Contact record Mike Carr Add-ins for Outlook 3 September 22nd 06 09:35 AM
Copy and paste recipients list into To field of new email message displays as ; [email protected] Outlook - General Queries 0 March 9th 06 05:19 PM


All times are GMT +1. The time now is 04:38 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.