+ Reply to Thread
Results 1 to 3 of 3

Error while using Hyperlink and Vlookup

  1. #1
    Registered User
    Join Date
    06-20-2019
    Location
    Minnesota
    MS-Off Ver
    Office 2019
    Posts
    39

    Angry Error while using Hyperlink and Vlookup

    Hello! I am attempting to create a hyperlink that sends mail to a person depending on multiple variables. Everything works well, but it fails when there are more than 4 values that are pulled from the vlookups to incude in the body of the email. This is a problem because I have a very large table that needs data to be pulled from many spots in order for the correct email body to be sent. I have attached my formula for generating the email by clicking. Also - I have tried using a vlookup with multiple return columns as an array formula, but that seems to only print out to multiple cells, rather than keeping it all in one cell - and in this case printing them all to an email.

    =HYPERLINK("mailto:" & $L4 & "?subject=360 Reviews" & "&body=Hello,%0A%0AYou have been chosen to be a 360 Reviewer for the following employee(s):%0A%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,2,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,3,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,4,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,5,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,6,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,7,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,8,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,9,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,10,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,11,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,12,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,13,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,14,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,15,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,16,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,17,FALSE)&"%0A"&VLOOKUP($K4,UniqueListTranspose!$A$2:$DH$420,18,FALSE), "Generate Email")
    Last edited by xAcrosonicx; 08-07-2019 at 09:09 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Hyperlink + Mailto + Vlookup Array

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-20-2019
    Location
    Minnesota
    MS-Off Ver
    Office 2019
    Posts
    39

    Re: Hyperlink + Mailto + Vlookup Array

    Good to know, thank you! I have updated my title accordingly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. hyperlink a mailto with a table in the body text.
    By bennadelaidefringe in forum Excel General
    Replies: 0
    Last Post: 12-04-2015, 12:19 AM
  2. [SOLVED] Avoid triggering the mailto hyperlink
    By Large114 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2015, 10:51 AM
  3. MAILTO hyperlink email issue
    By Nans434 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-25-2012, 01:00 PM
  4. mailto hyperlink within button?
    By jamer02 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-28-2011, 07:46 AM
  5. mailto hyperlink within button?
    By jamer02 in forum Excel General
    Replies: 0
    Last Post: 06-28-2011, 06:09 AM
  6. Zeilenumbruch in mailto:-Hyperlink
    By loriot in forum Excel General
    Replies: 1
    Last Post: 10-18-2005, 11:05 AM
  7. =hyperlink() for mailto:
    By README in forum Excel General
    Replies: 2
    Last Post: 02-25-2005, 11:06 AM

Tags for this Thread

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