+ Reply to Thread
Results 1 to 5 of 5

Mailto: 255 char limitation

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Mailto: 255 char limitation

    I'm looking to create a mailto link. The issue i'm having is with the 255char limit i believe. I'd like to enter quite a few email addresses so that they'll automatically be entered into outlook when I click on the link. Is there a way to do this? all the addresses come from a different row of a column. I've concatenated them all with a comma delimiter so that formula can be used to enter after the mailto.

    What I have:

    =hyperlink("mailto:" & =$K$12&IF($K$13<>"",","&$K$13,"")&IF($K$14<>"",","&$K$14,"")&IF($K$15<>"",","&$K$15,"")&IF($K$16<>"",","&$K$16,"")&IF($K$17<>"",","&$K$17,"")&IF($K$18<>"",","&$K$18,"")&IF($K$19<>"",","&$K$19,"")&IF($K$20<>"",","&$K$20,"")&IF($K$21<>"",","&$K$21,"")&IF($K$22<>"",","&$K$22,"")&IF($K$23<>"",","&$K$23,"")&IF($K$35<>"",","&$K$35,"")&IF($K$36<>"",","&$K$36,"")&IF($K$37<>"",","&$K$37,"")&IF($K$38<>"",","&$K$38,"")&IF($K$39<>"",","&$K$39,"")&IF($K$40<>"",","&$K$40,"")&IF($K$41<>"",","&$K$41,"")&IF($K$42<>"",","&$K$42,"")&IF($K$43<>"",","&$K$43,"")&IF($K$44<>"",","&$K$44,"")&IF($K$45<>"",","&$K$45,"")&IF($K$46<>"",","&$K$46,"")&IF($K$47<>"",","&$K$47,"")&IF($K$48<>"",","&$K$48,"")&IF($K$49<>"",","&$K$49,"")&IF($K$50<>"",","&$K$50,"")&IF($K$51<>"",","&$K$51,"")&IF($K$52<>"",","&$K$52,"")&IF($K$53<>"",","&$K$53,"")&IF($K$54<>"",","&$K$54,"")&IF($K$55<>"",","&$K$55,"")&IF($K$56<>"",","&$K$56,"")&IF($K$57<>"",","&$K$57,"")&IF($K$58<>"",","&$K$58,"")&IF($K$59<>"",","&$K$59,"")&IF($K$60<>"",","&$K$60,""))

    I've also tried to do things like display all the emails so that they can be copied to the clipboard after the excel file has been saved and then viewed as a webpage. This runs into the 1024char limit when leaving the concatenated addresses in a cell or even a text box. any fancy idea on a way to accomplish any of this?

    Tom
    Last edited by DonkeyOte; 01-20-2011 at 04:36 AM. Reason: modified title slightly

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Mailto:

    There is no way around the 255 char limit if you go the Hyperlink route.

    Given use of Outlook - have you considered using VBA to generate the mail item ?
    I'd suggest checking out Ron de Bruin's Email Pages - there are a lot of examples, eg: http://www.rondebruin.nl/mail/folder3/smallmessage.htm
    (note the comment re: .Display as opposed to .Send should you wish to modify manually prior to send)

  3. #3
    Registered User
    Join Date
    01-20-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Mailto: 255 char limitation

    I was avoiding VB because this excel sheet will be saved and used as a web page. Will the web page require special permissions or security checks if VB is used in the code, and will the code still work as a webpage?

    Thank you DonkeyOte for your previous reply

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Mailto: 255 char limitation

    Quote Originally Posted by tpleier View Post
    I was avoiding VB because this excel sheet will be saved and used as a web page.
    In which case - VBA is a no go.

    You might need to consider multiple links (assuming you can't use mail groups etc) so as to circumvent the 255 char limitation.

  5. #5
    Registered User
    Join Date
    01-20-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Mailto: 255 char limitation

    That is what I was afraid of, I appreciate all of your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1