Using classic Outlook for Windows in business environments
Dear Herwin,
Thank you also for your kind cooperation.
I see. In that case, you can use the PickFolder method (source: https://stackoverflow.com/questions/12688476/di...*) to display a dialog box that allows you to select an Outlook folder for your reply and original message. You can use this method in your Application.ItemSend event handler and assign the selected folder to item.SaveSentMessageFolder for your reply. For your original message, you can use item.Reply.Parent.Move method to move it to the same folder as your reply. You can find an example of this approach here: https://forums.slipstick.com/threads/97981-macr...*.
Alternatively, you can use a macro that runs after sending a message and prompts you to choose a folder for both the reply and the original message. You can find an example of this approach here: https://www.slipstick.com/outlook/email/choosin...*.
More about Macros:
A macro is a subroutine that performs a specific task or a series of tasks. You can write a macro by using Visual Basic for Applications (VBA), which is a programming language that runs inside Outlook and other Office applications.
To write a macro for Outlook VBA, you need to follow these steps:
(https://support.microsoft.com/en-gb/office/crea...)
- On the Developer tab of the Microsoft Office Fluent ribbon, click Visual Basic. If you don’t see the Developer tab, you can enable it by going to File > Options > Customize Ribbon and checking the box for Developer under Main Tabs.
- In the Project window, double-click the module you want to contain the macro. A module is a container for your code. If you don’t have any modules, you can add one by right-clicking on your project name and selecting Insert > Module.
- On the Insert menu, click Procedure. This will open a dialog box where you can name your macro and specify its type (Sub or Function) and scope (Public or Private).
- In the Name box, type a name for your macro. The name cannot contain spaces or special characters.
- Click OK. This will create an empty subroutine with your macro name in the code window.
- Type the code you want to run in the body of the subroutine between
SubandEnd Sub. You can use various objects, methods, properties and events from Outlook VBA to automate tasks such as sending emails, creating appointments, moving messages etc. - Save your project by clicking on File > Save Project As… and choosing a location and name for your project file (.otm).
- Run your macro by clicking on Run > Run Sub/UserForm, pressing F5 key or using keyboard shortcuts such as Alt+F8.
You can find more on that here: https://learn.microsoft.com/en-us/office/vba/ou...
* Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
Best Regards,
Georgw A.