VBA Email Hyperlink to Workaround 255 Character Limit, With Conditions

AJLS

New Member
Joined
Sep 14, 2023
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have seen threads with a solution to beat the 255 character limit, I am unable to amend it to work with the conditions i am looking for. The formula I have that works when below the character limit is:

=IF(F3=Sheet2!$A$4,HYPERLINK("mailto:"&Sheet2!$H$1&"?subject="&A3&" "&B3&" &body=Hello, %0A%0AThe Parts for "&C3&" have arrived and are stored in location "&H3&".%0A%0ABest Regards%0A%0APRT Goods In","Notify Receipt"),IF(F3=Sheet2!$A$3,HYPERLINK("mailto:"&Sheet2!$H$1& "?subject="&A3&" "&B3&" &body=Hello, %0A%0AThe Parts for "&C3&" have now shipped.%0A%0ABest Regards%0A%0APRT Aberdeen","Notify Shipment"),"N/A"))

I can get away with this depending on the content of the cells that make up the email. I have added a snip of the worksheet, any help would be greatly appreciated.

Thank you
 

Attachments

  • Worksheet Snip.png
    Worksheet Snip.png
    24.5 KB · Views: 54
Hi, was there supposed to be a follow up question in there somewhere?
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi, was there supposed to be a follow up question in there somewhere?
Hi FormR,

No sorry, I posted my thanks, and when i came back to the page there was still a draft so I posted it again. I tried to delete it but just ended up with a blank post.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top