![]() |
#6
|
|||
|
|||
![]()
Glad it works.
Any issues applying it to your real worksheet just come back and ask, we can sort it out. Your second post wasn't there for me when I made my second post and I never received email notification of it. Quote:
The workbook I posted has all the code on the test255 sheet module, that's it, no other modules exist. Do you have more than one workbook open ? Quote:
if you changed the TextToDisplay and did run it again it would have overwritten the existing hyperlinks. I left it in so you could see how the links were done. The range of email addresses is hard coded to range("B10:B30") then for each cell in that range the hyperlink is built in the cell offset 1 column to the left (the -1). I don't know what your actual text will be in the cells for the email body. Based on what you have in the worksheet you attached, I would change the body line in the code so the line feeds are changed. Code:
body = Replace(Range("D" & lnkrw), "%0D%0A", Chr(10)) & Replace(Range("E" & lnkrw), "%0D%0A", Chr(10)) |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Stargehzer | Word | 2 | 11-17-2018 07:07 PM |
Strange Characters appear when selecting SHOW ALL NON PRINTING CHARACTERS | ann Amber | Word | 1 | 08-01-2015 08:06 PM |
![]() |
robpgreer | Mail Merge | 3 | 05-06-2011 04:27 PM |
Decoding mailto subjects | smaslin | Outlook | 0 | 03-09-2009 08:09 AM |
mailto in word | cinvernizzi | Word | 0 | 02-17-2009 03:03 PM |