Outlook Macro - Reply with custom FROM field

Sub Reply()
Dim msg As Outlook.MailItem
Set msg = Application.ActiveExplorer.Selection(1).Reply
msg.SentOnBehalfOfName = "This email address is being protected from spambots. You need JavaScript enabled to view it."
msg.Display
End Sub


MS Outlook 2010

Outlook 2010 - Create email template and assign a quick launch button

MS Outlook 2010

To create a new email template:

1. Home > New email
2. Customize email as required.
3. File > Save As
Change File Name (e.g MyTemplate) and change Save as Type to Outlook Template (.oft)
4. Click Save. By default file is saved in C:\Documents and Settings\<username>\Application Data\Microsoft\Templates (Windows XP)

To open this template manually:
Option 1. Navigate to C:\Documents and Settings\<username>\Application Data\Microsoft\Templates (using Windows Explorer) and open MyTemplate.oft file.
Option 2. Outlook 2010 > Developer > Choose Form > Look In: User Templates in File System > MyTemplate.
Note: If "Developer" tab is not visible you can enable it in File > Options > Customize Ribbon

Create a quick launch button to open your template:

1. Developer > Marcos. Type Macro Name (e.g. MyTemplate) and click Create
2. Copy following text:
Set msg = Application.CreateItemFromTemplate("C:\Documents and Settings\<username>\Application Data\Microsoft\Templates\MyTemplate.oft")
msg.Display


Full text in macro should look like this (obviously with path and file name amended):
Sub MyTemplate()
Set msg = Application.CreateItemFromTemplate("C:\Documents and Settings\<username>\Application Data\Microsoft\Templates\MyTemplate.oft")
msg.Display
End Sub


Optional:
If you need to send this template as another user (custom FROM field) put the following line in your macro before msg.Display (make sure you have permissions to send as another user):
msg.SentOnBehalfOfName = "This email address is being protected from spambots. You need JavaScript enabled to view it."

3. Close VB Editor (Macro will be saved automatically)
4. Test you Marco: Macros > Project1.MyTemplate
5. Create quick access button: File > Options > Quick Access Toolbar. Select Macros in Choose Commands From and add your Project1.MyTemplate.
6. Click Modify to change Name and Icon

If Macro doesn't work after restarting Outlook check your security settings as unsigned Macros may be blocked:
File > Options > Trust Centre > Trust Centre Settings > Macro Settings


Windows XP
MS Outlook 2010

Disable Windows Restart prompt after Windows Update

After installing Windows Update you may get a restart prompt which will keep popping up every few minutes. You may want to disable it and restart computer yourself when convenient.
To disable the prompt you need to stop Automatic Updates service. Service will be started automatically after the restart.

Start > Run > services.msc
Automatic Updates > Stop


OR

Start > Run > cmd
net stop wuauserv


Windows XP

Widows 7 - The User Profile Service service failed the logon


After installing some Windows updates on Windows Vista or Windows 7 PC you may not be able to log-on and get error message:
The User Profile Service service failed the logon.
User profile cannot be loaded.

1. Restart computer in safe mode (F8 on boot) and you should be able to login.
2. Start > regedit
3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
4. There will be number of Keys. You need to find one which belongs to your broken profile. You can check "ProfileImagePath" value for each key to find out which one belongs to your profile.
5. Let's say your profile key is named "S-1-5-21-2947451878-954321858-1958354267-4471" There will be another Key called "S-1-5-21-2947451878-954321858-1958354267-4471.bak" (the same with .bak at the end)
6. Right click on the first key and add .bak2 at the end.
7. Right click on the second key and remove .bak from the end.
8. Right click on the first key again and change .bak2 to .bak
9. Restart your computer

This should sort the issue (worked for me). If this doesn't help you can find more information and suggestions here.

Windows Vista,
Windows 7

Newsletter

Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait