Note: The other languages of the website are Google-translated. Back to English

Kako samodejno ustvariti nova opravila pri prejemanju določenih e-poštnih sporočil v Outlooku?

V Outlooku nam je enostavno ustvariti novo nalogo iz e-poštnega sporočila. Ali ste že kdaj poskusili samodejno ustvariti novo nalogo, ko ste prejemali določena e-poštna sporočila? Na primer, želim samo samodejno ustvariti naloge iz sporočil mojega šefa. Kako bi se lahko spoprijeli s tem delom v Outlooku?

Samodejno ustvari nova opravila, ko v Outlooku prejemaš določena e-poštna sporočila s kodo VBA

Samodejno ustvari nova opravila, ko v Outlooku prejemaš določena e-poštna sporočila s kodo VBA

Za reševanje te naloge ni neposredne metode in pravila, toda tukaj lahko združim kodo VBA in pravilo, da jo dokončam, naredite naslednje:

1. Zaženite Outlook in pridržite ALT + F11 tipke za odpiranje Microsoft Visual Basic za aplikacije okno.

2. v Microsoft Visual Basic za aplikacije okno, dvokliknite Ta OutlookSession Iz Projekt1 (VbaProject.OTM) , da odprete način, nato pa v prazen modul kopirajte in prilepite naslednjo kodo.

Koda VBA: samodejno ustvari nove naloge pri prejemanju e-pošte:

Sub CreateNewTask(Item As Outlook.MailItem)
Dim xNewTask As TaskItem
On Error Resume Next
Set xNewTask = Outlook.CreateItem(olTaskItem)
With xNewTask
    .Subject = Item.Subject
    .StartDate = Item.ReceivedTime
    .DueDate = Item.ReceivedTime + 1
    .Body = Item.Body
    .Importance = olImportanceHigh
End With
Set xNewTask = Nothing
End Sub

3. Then save and close the code, after inserting the code, you need create a rule. Please click Rules > Manage Rules & Alerts under the Home tab, see screenshot:

4. In the Rules and Alerts dialog box, click New Rule, see screenshot:

5. In the popped out Rules Wizard, select Apply rule on message I receive option from the Start from a blank rule section, see screenshot:

6. Click Next button, in the Step 1: Select condition(s) list box, choose the condition you want to create. In this example, I will check from people or public group option, and in the Step 2: Edit the rule description (click an underline value) section, click the people or public group link go to the Rule Address dialog box, then double click the email address which you want to auto create task while receiving . See screenshot:

7. Click OK, and go on clicking Next button, in the Step 1: Select action(s) list box, check run a script option, in Step 2: Edit the rule description (click an underline value) box, click on a script link. And a Select Script dialog box will show up, select the previously added macro and click OK.

8. And then click Next > Next to go the Finish rule setup screen. Give a rule name for this new rule you creaed into Step 1: Specify a name for this rule text box, and then check Turn on this rule in Step 2: Setup rule options section, see screenshot:

9. Then click Finish button and click OK to close the Rules and Alerts dialog.

10. From now on, once you receive the emails that from the specific address, Outlook will create the corresponding tasks automatically. You can check these tasks in your task folder. See screenshot:

Kutools for Outlook - Brings 100 Advanced Features to Outlook, and Make Work Much Easier!

  • Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by custom; Auto Reply without exchange server, and more automatic features...
  • BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
  • Reply (All) With All Attachments in the mail conversation; Reply Many Emails in seconds; Auto Add Greeting when reply; Add Date into subject...
  • Attachment Tools: Manage All Attachments in All Mails, Auto Detach, Compress All, Rename All, Save All... Quick Report, Count Selected Mails...
  • Powerful Junk Emails by custom; Remove Duplicate Mails and Contacts... Enable you to do smarter, faster and better in Outlook.
shot kutools outlook kutools tab 1180x121
shot kutools outlook kutools plus tab 1180x121
Comments (1)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hola, me podríais decir por favor qué formato tiene que tener el email que se recibe?

En realidad yo quiero transformar un email en una cita de calendario, pero una vez consiga ésto, intentaré lo otro.

There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations