Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 05-17-2011, 09:28 PM
macropod's Avatar
macropod macropod is offline Change EndNote citations color Windows 7 32bit Change EndNote citations color Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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.
Reply With Quote
  #3  
Old 05-18-2011, 07:55 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

Thanks for your reply.
Reply With Quote
Reply

Thread Tools
Display Modes


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 03:08 PM.


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