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

2 simple macros - create task from email and move email to folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 29th 07, 01:42 AM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 6
Default 2 simple macros - create task from email and move email to folder

Hello,
I am trying to create 2 simple macros, ideally that I evoke witha
shortcut key.

1. Create a task from an email and attach a copy of the email to the
task. - I don't want the original email moved anywhere. This is to
save having to drag the email to the task button.

2. Move email from inBox to my archive_folder. I want to be able to
hit a keyboard shortcut and move the email out of my inbox to my
"archive" without having to drag it.

I've found a lot of scripts but they all do overly complex things

Thanks in advance for any help,
sharon

Ads
  #2  
Old January 29th 07, 07:27 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default 2 simple macros - create task from email and move email to folder



1. Create the task with the CreateItem function. Call its Attachments.Add
function and pass ActiveExplorer.Selection(1) to it - if the e-mail is the
one selected item.

2. See the Move function in the VBA help for a sample.

You can't create shortcut keys in VBA. But you can customize the toolbar:
Right click on it, goto customize, commands, macro, and drag your macro
names onto the toolbar. Then right click on that new button and edit its
name. Use an & character to create an accelerator.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am 28 Jan 2007 16:42:35 -0800 schrieb :

Hello,
I am trying to create 2 simple macros, ideally that I evoke witha
shortcut key.

1. Create a task from an email and attach a copy of the email to the
task. - I don't want the original email moved anywhere. This is to
save having to drag the email to the task button.

2. Move email from inBox to my archive_folder. I want to be able to
hit a keyboard shortcut and move the email out of my inbox to my
"archive" without having to drag it.

I've found a lot of scripts but they all do overly complex things

Thanks in advance for any help,
sharon

  #3  
Old January 29th 07, 08:45 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 2
Default 2 simple macros - create task from email and move email to folder

Do #1 with a rule
Rule description:
Apply this rule after the message arrives
with specify subject words in the subject
move a copy to the Tasks folder

It won't set a time or any other information, but you would then have
a task with a copy of the email message in it.

#2 can be done by pressing Alt+F followed by Alt+R, and choose a date
and hit enter.
Alternatively, you can put a button on your toolbar to do the first
two keyboard combinations, then choose a date and hit enter.

Right click on the toolbar and pick Customize. On the file menu list,
find Archive, and drag it to the desired spot. With the Customize
window still open, right click the new button, and pick Change Button
Image. I used the little floppy icon with the arrow pointing at the
disk to indicate archiving. Then right click the button again and pick
Default Style.


On Jan 28, 7:42 pm, wrote:
Hello,
I am trying to create 2 simple macros, ideally that I evoke witha
shortcut key.

1. Create a task from an email and attach a copy of the email to the
task. - I don't want the original email moved anywhere. This is to
save having to drag the email to the task button.

2. Move email from inBox to my archive_folder. I want to be able to
hit a keyboard shortcut and move the email out of my inbox to my
"archive" without having to drag it.

I've found a lot of scripts but they all do overly complex things

Thanks in advance for any help,
sharon


  #4  
Old February 3rd 07, 10:14 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 6
Default 2 simple macros - create task from email and move email to folder

On Jan 28, 10:27 pm, "Michael Bauer [MVP - Outlook]"
wrote:
1. Create the task with the CreateItem function. Call its Attachments.Add
function and pass ActiveExplorer.Selection(1) to it - if the e-mail is the
one selected item.

2. See the Move function in the VBA help for a sample.

You can't create shortcut keys in VBA. But you can customize the toolbar:
Right click on it, goto customize, commands, macro, and drag your macro
names onto the toolbar. Then right click on that new button and edit its
name. Use an & character to create an accelerator.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?...4&languageid=1
(German:http://www.VBOffice.net/product.html?pub=6)

Am 28 Jan 2007 16:42:35 -0800 schrieb :

Hello,
I am trying to create 2 simple macros, ideally that I evoke witha
shortcut key.


1. Create a task from an email and attach a copy of the email to the
task. - I don't want the original email moved anywhere. This is to
save having to drag the email to the task button.


2. Move email from inBox to my archive_folder. I want to be able to
hit a keyboard shortcut and move the email out of my inbox to my
"archive" without having to drag it.


I've found a lot of scripts but they all do overly complex things


Thanks in advance for any help,
sharon


Thanks for your reply. I should have said, I don't know how to script.
Is there a good tutorial out there for this?

  #5  
Old February 4th 07, 09:53 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default 2 simple macros - create task from email and move email to folder



You can start with the VBA help, which contains a lot of samples. Open the
object browser and switch from All Libraries to Outlook. E.g. find the
Attachments class in the left pane and the Add function in the right one and
then press F1 for help. That works for all mentioned functions.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)


Am 3 Feb 2007 13:14:59 -0800 schrieb :

On Jan 28, 10:27 pm, "Michael Bauer [MVP - Outlook]"
wrote:
1. Create the task with the CreateItem function. Call its Attachments.Add
function and pass ActiveExplorer.Selection(1) to it - if the e-mail is

the
one selected item.

2. See the Move function in the VBA help for a sample.

You can't create shortcut keys in VBA. But you can customize the toolbar:
Right click on it, goto customize, commands, macro, and drag your macro
names onto the toolbar. Then right click on that new button and edit its
name. Use an & character to create an accelerator.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?...4&languageid=1
(German:http://www.VBOffice.net/product.html?pub=6)

Am 28 Jan 2007 16:42:35 -0800 schrieb :

Hello,
I am trying to create 2 simple macros, ideally that I evoke witha
shortcut key.


1. Create a task from an email and attach a copy of the email to the
task. - I don't want the original email moved anywhere. This is to
save having to drag the email to the task button.


2. Move email from inBox to my archive_folder. I want to be able to
hit a keyboard shortcut and move the email out of my inbox to my
"archive" without having to drag it.


I've found a lot of scripts but they all do overly complex things


Thanks in advance for any help,
sharon


Thanks for your reply. I should have said, I don't know how to script.
Is there a good tutorial out there for this?

  #6  
Old February 4th 07, 10:57 AM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 6
Default 2 simple macros - create task from email and move email to folder

Thanks Michael!!!

WIth the Help of that advice, the earlier posts, and the scripts he
http://blogs.msdn.com/smguest/archiv...04/617343.aspx

I was able to hack together the perfect scripts!!


On Feb 4, 12:53 am, "Michael Bauer [MVP - Outlook]"
wrote:
You can start with the VBA help, which contains a lot of samples. Open the
object browser and switch from All Libraries to Outlook. E.g. find the
Attachments class in the left pane and the Add function in the right one and
then press F1 for help. That works for all mentioned functions.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?...4&languageid=1
(German:http://www.VBOffice.net/product.html?pub=6)

Am 3 Feb 2007 13:14:59 -0800 schrieb :



On Jan 28, 10:27 pm, "Michael Bauer [MVP - Outlook]"
wrote:
1. Create the task with the CreateItem function. Call its Attachments.Add
function and pass ActiveExplorer.Selection(1) to it - if the e-mail is

the
one selected item.


2. See the Move function in the VBA help for a sample.


You can't create shortcut keys in VBA. But you can customize the toolbar:
Right click on it, goto customize, commands, macro, and drag your macro
names onto the toolbar. Then right click on that new button and edit its
name. Use an & character to create an accelerator.


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?...4&languageid=1
(German:http://www.VBOffice.net/product.html?pub=6)


Am 28 Jan 2007 16:42:35 -0800 schrieb :


Hello,
I am trying to create 2 simple macros, ideally that I evoke witha
shortcut key.


1. Create a task from an email and attach a copy of the email to the
task. - I don't want the original email moved anywhere. This is to
save having to drag the email to the task button.


2. Move email from inBox to my archive_folder. I want to be able to
hit a keyboard shortcut and move the email out of my inbox to my
"archive" without having to drag it.


I've found a lot of scripts but they all do overly complex things


Thanks in advance for any help,
sharon


Thanks for your reply. I should have said, I don't know how to script.
Is there a good tutorial out there for this?



 




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
Move email messages to a specified folder based on a category DougLost Outlook and VBA 2 October 7th 10 04:18 PM
Help problems setting up rule to move email to a public folder Dab Outlook - General Queries 0 October 18th 06 02:09 AM
No longer possible to manually move email msg. to a new Folder Pappion Outlook Express 2 October 4th 06 02:18 PM
No longer possible to manually move email msg. to a new Folder Pappion Outlook Express 2 October 2nd 06 02:45 PM
move contact email from one distribution folder to another herasmomma Outlook - Using Contacts 3 April 20th 06 11:55 AM


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