![]() |
|
#1
|
|||
|
|||
![]()
I am using the following code to make Endnote citations Blue for the purpose of having tagged pdf with blue links. The problem is that for the citation like [3], this code changes the color of the whole [3], but I want to change the color of just 3 and not the brackets. Is there any way to do that either by using VBA or through Endnote's setting?
Code:
Sub ChangeCitationColor() ActiveWindow.View.ShowFieldCodes = Not ActiveWindow.View.ShowFieldCodes Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find.Replacement.Font .Color = wdColorBlue End With With Selection.Find .Text = "^19 ADDIN EN.CITE" .Replacement.Text = "^&" .Forward = True .Wrap = wdFindContinue .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAll ActiveWindow.View.ShowFieldCodes = Not ActiveWindow.View.ShowFieldCodes End Sub |
#2
|
||||
|
||||
![]()
For the Endnotes addin (which I've never used), you're at the mercy of what that addin supports. Rather like Word's citation fields, in which you can't change the colour of the individual components (eg the page #).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] Last edited by macropod; 05-18-2011 at 10:39 PM. |
#3
|
|||
|
|||
![]()
Thanks for your reply.
|
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
nato2015 | Word | 1 | 07-04-2015 03:35 PM |
Change highlight color | maceslin | Word | 3 | 04-30-2013 04:43 AM |
color change for same shape | ajkiran | PowerPoint | 1 | 11-10-2012 07:41 AM |
![]() |
gezz7louise | Word | 2 | 11-06-2011 07:51 AM |
endnote and import reference from word to endnote | uncung | Word | 0 | 06-18-2011 08:09 AM |