![]() |
|
#1
|
||||
|
||||
![]() Try replacing the code you posted with: Code:
ActiveWindow.View.ShowFieldCodes = True With Selection ' URL ActiveDocument.Hyperlinks.Add Anchor:=.Range, Address:="|", TextToDisplay:="Print Item" .Move Unit:=wdCharacter, Count:=-4 .End = .End + 1 ActiveDocument.MailMerge.Fields.Add Range:=.Range, Name:="Website_URL" .EndKey Unit:=wdLine .TypeText " / " .EndKey Unit:=wdLine ' TEXT LINK URL ActiveDocument.Hyperlinks.Add Anchor:=.Range, Address:="|", TextToDisplay:="Text Link" .Move Unit:=wdCharacter, Count:=-4 .End = .End + 1 ActiveDocument.MailMerge.Fields.Add Range:=.Range, Name:="Text_Link" End With ActiveDocument.Fields.Update ActiveWindow.View.ShowFieldCodes = False
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
Oh wow. That is fantastic!!! Thank you!
I bow down. |
#3
|
|||
|
|||
![]()
Sorry to be a pain, but I'm getting two issues. The first is that the 'press clip' and 'text link' are not displaying the correct style - where can I insert something like:
PHP Code:
The second is that I can't seem to insert a paragraph break between the 'text link' and the 'header' of the next section: Print Item / Text LinkMagnetite project expands on business' solid industry standing ######, Advertising feature 2, 29/10/14, page 10 Building on...operator for the Iron Bridge joint venture. Print Item / Text Link'Welfare card key to stemming drug funds' as ice threat grows ######, General News, 29/10/14, page 4 THE drug ice is becoming...was not exempt. Print Item / Text LinkNot joining China-led bank a mistake: Raby When it should look like this: Magnetite project expands on business' solid industry standing ######, Advertising feature 2, 29/10/14, page 10 Building on...operator for the Iron Bridge joint venture. Print Item / Text Link 'Welfare card key to stemming drug funds' as ice threat grows ######, General News, 29/10/14, page 4 THE drug ice is becoming...was not exempt. Print Item / Text Link Here is the full code for this operation: PHP Code:
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
ASW122 | Mail Merge | 5 | 07-14-2014 09:35 PM |
How do MS Office products link to URLs? | stegraham | Office | 2 | 10-22-2013 04:52 AM |
![]() |
acappella | Word | 3 | 07-24-2012 03:28 PM |
Template does not display in Installed Templates | JimH | Word | 1 | 02-01-2012 11:59 AM |
mailmerge with custom URLs? | guthrie | Mail Merge | 0 | 03-06-2011 08:39 PM |