# Error with VBA sending email from Excel

**URL:** <https://community.hubspot.com/t/error-with-vba-sending-email-from-excel/95024>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [November 29, 2023, 1:00pm UTC](https://community.hubspot.com/t/error-with-vba-sending-email-from-excel/95024 "2023-11-29T13:00:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samanthaj738](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/samanthaj738/32/31639_2.png) [@Samanthaj738](https://community.hubspot.com/u/Samanthaj738)\
**Post date:** [November 29, 2023, 1:00pm UTC](https://community.hubspot.com/t/error-with-vba-sending-email-from-excel/95024/1 "2023-11-29T13:00:31Z")

</div>

Hi I’m hoping that someone might help me please - I have a VBA written and working perfectly in Excel BUT if I run it I get the error - do you want to send without tracking - I have tried both CC and BCC = " " but that doesn’t work I would prefer not to turn off the tracking on my outlook - has anyone got a fix for me pls!

 ![Samanthaj738_0-1701260550755.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/1/d1a262765aabe307150ce98663aab747089b573e.png)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 1, 2023, 7:35pm UTC](https://community.hubspot.com/t/error-with-vba-sending-email-from-excel/95024/2 "2023-12-01T19:35:36Z")

</div>

Hey, @Samanthaj738 👋 Thanks for your question. It’s hard to say without more information. Can you share the specific code you are working with?

Some general troubleshooting tips are:

- check the email tracking add-ins or tools integrated with your Outlook. You can try disabling any one-at-a-time to see if this resolves the error
- check the [Trust Center settings in Outlook](https://support.microsoft.com/en-au/office/view-my-privacy-options-in-the-microsoft-office-trust-center-d672876e-20d3-4ad3-a178-343d044e05c8)

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![Samanthaj738](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/samanthaj738/32/31639_2.png) [@Samanthaj738](https://community.hubspot.com/u/Samanthaj738)\
**Post date:** [December 7, 2023, 9:54pm UTC](https://community.hubspot.com/t/error-with-vba-sending-email-from-excel/95024/3 "2023-12-07T21:54:43Z")

</div>

Thanks as above it works if I turn the tracking off - but I dont want to do that are you able to please assist

---

<div class="post-metadata">

**Author:** ![Samanthaj738](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/samanthaj738/32/31639_2.png) [@Samanthaj738](https://community.hubspot.com/u/Samanthaj738)\
**Post date:** [December 3, 2023, 7:55am UTC](https://community.hubspot.com/t/error-with-vba-sending-email-from-excel/95024/4 "2023-12-03T07:55:53Z")

</div>

Yes if I turn off the tracking and Log email in my outlook settings it works perfectly - but I dont want to do this - hub spot wanting to know if I want to send without tracking is the problem how can I turn off this alert please

 ![Samanthaj738_1-1701590100275.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/a/faa37ad4f863ae64ee53ed9c5814ca7d45f9e3c5.png)
