How to Fix Outlook Send on Behalf Permission Errors in VBA
Question details
The user encounters an error in an Outlook VBA script when attempting to send an email on behalf of another account using the SentOnBehalfOfName property.

- Product
- Microsoft Outlook
- Device & OS
- not provided
- Scenario
- Running an automated VBA script to send emails from a shared or secondary account without adequate delegation permissions.
- Observed behavior
- The VBA procedure fails and throws a permission error because the user lacks the necessary Exchange delegation permissions to send messages on behalf of the specified address.
Verify the exact email address of the account you are trying to send from, and check whether that secondary account is already configured in your current Outlook profile.
Use the SendUsingAccount Property with Late Binding
Modify your VBA code to send the email directly through a specific authorized account in your Outlook session instead of relying on delegation permissions.
By utilizing late binding and the SendUsingAccount property, the script bypasses the need for explicit Send on Behalf permissions. This method works perfectly when the secondary account is already configured in your active Outlook session.
Press ALT + F11 in Outlook to open the Visual Basic for Applications (VBA) editor and locate the module containing your email script.
Find the line of code that sets the '.SentOnBehalfOfName' property and either delete it or comment it out by adding an apostrophe (') at the beginning of the line.
Assign the specific account index or name to the '.SendUsingAccount' property. For example, use 'Set .SendUsingAccount = OutlookApp.Session.Accounts.Item(1)' to use the first configured account.
Save the changes and run the macro to verify that the email sends successfully without triggering a permission error.

Request Exchange Send on Behalf Permissions
If you must use the SentOnBehalfOfName property, you need to acquire explicit delegation permissions from your email administrator.
Looking for a Lightweight Alternative to Microsoft Office?
While WPS Office does not include an email client like Outlook, it provides a highly compatible, robust, and free suite for Word, Excel, and PowerPoint alternatives. If you are looking to streamline your document workflow without the heavy cost of Microsoft Office, WPS Office is the perfect solution.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package.
- 2. Install the Software: Run the installer and follow the simple on-screen instructions to set up WPS Office on your computer.
- 3. Open Your Documents: Launch WPS Office and instantly open your existing Microsoft Office files without any formatting loss.

Frequently Asked Questions
What is the difference between Send As and Send on Behalf in Outlook?
Send As allows you to send an email that appears to come directly from the mailbox owner, keeping your identity hidden. Send on Behalf shows the recipient that the email was sent by you on behalf of the mailbox owner. Both require explicit Exchange permissions.
Why does SentOnBehalfOfName fail even when I have Full Access to the mailbox?
Having Full Access permissions allows you to open and read a mailbox, but it does not automatically grant the ability to send emails from it. Send on Behalf or Send As permissions must be explicitly assigned by an administrator.
Can I use SendUsingAccount with an account that is not set up in my Outlook profile?
No, the SendUsingAccount property only works if the target email account is currently configured, authenticated, and connected within your active Outlook session.
Does WPS Office support VBA macros?
Yes, WPS Office supports VBA macros in its Word, Excel, and PowerPoint alternatives, allowing you to automate tasks and run legacy Microsoft Office scripts with high compatibility.




