In this article, we will guide you through the process of forwarding a message in Outlook and updating the category using VB. Whether you are a beginner or an entry-level user, we will provide you with step-by-step instructions to help you accomplish this task.
Forwarding a Message in Outlook
Forwarding an email in Outlook is a simple process that allows you to send a received message to another recipient. Here's how you can do it:
- Open Outlook and go to your inbox.
- Select the email you want to forward by clicking on it.
- Click on the "Forward" button in the toolbar at the top of the screen.
- A new email window will open with the original message attached.
- Enter the recipient's email address in the "To" field.
- If desired, you can add a message to the forwarded email in the body section.
- Click on the "Send" button to forward the message.
That's it! You have successfully forwarded a message in Outlook.
Updating Category in VB
If you want to automate the process of updating the category of a message in Outlook using VB, follow the steps below:
- Open Visual Basic for Applications (VBA) in Outlook by pressing "Alt + F11".
- Go to "Insert" and click on "Module" to add a new module.
- In the module window, paste the following code:
Sub UpdateCategory()
Dim objItem As Object
Dim objMail As Outlook.MailItem
On Error Resume Next
Set objItem = Application.ActiveExplorer.Selection.Item(1)
If Not objItem Is Nothing Then
If objItem.Class = olMail Then
Set objMail = objItem
objMail.Categories = "Updated Category"
objMail.Save
End If
End If
Set objItem = Nothing
Set objMail = Nothing
End Sub
- Save the module and close the VBA editor.
- Now, you can update the category of a message by following these steps:
- Select the email you want to update the category for.
- Go to the "Developer" tab (if it's not visible, enable it from the Outlook options).
- Click on the "Macros" button in the toolbar.
- Select the "UpdateCategory" macro from the list and click on the "Run" button.
- The category of the selected email will be updated to "Updated Category".
By following these steps, you can easily update the category of a message in Outlook using VB.
Conclusion
In this article, we have learned how to forward a message in Outlook and update the category using VB. Forwarding an email in Outlook is a simple process that allows you to send a received message to another recipient. Updating the category of a message using VB automates the process and saves time. By following the step-by-step instructions provided, even entry-level users can accomplish these tasks easily.
References
| Reference | Link |
|---|---|
| Microsoft Outlook | https://www.microsoft.com/en-us/microsoft-365/outlook/email-and-calendar-software-microsoft-outlook |
| Visual Basic for Applications | https://docs.microsoft.com/en-us/office/vba/api/overview/outlook |