Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-17-2011, 08:54 PM
b0x4it b0x4it is offline Change EndNote citations color Windows 7 32bit Change EndNote citations color Office 2010 32bit
Advanced Beginner
Change EndNote citations color
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default Change EndNote citations color

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
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change EndNote citations color Endnote and in-text citations in Word 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
Change EndNote citations color how to change page color 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

Other Forums: Access Forums

All times are GMT -7. The time now is 01:14 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft