![]() |
|
#14
|
||||
|
||||
|
It works for me, with character and paragraph Styles alike. Indeed, you could even simplify the line to:
.Style = "DB_Content" Do note that, apart from any paragraph-level attributes applied by your Style (e.g. alignment, space before/after, font name & size), hyperlinks have their own character Styles (basically, blue underlined text), so those will take precedence over your Style. You can, of course, re-apply the Style's font attributes such as bold & italics to the paragraph, so as to re-format the hyperlinks, after applying the Style, using code like: Code:
With .Paragraphs(1).Range.Font
.Bold = ActiveDocument.Styles("DB_Content").Font.Bold
.Italic = ActiveDocument.Styles("DB_Content").Font.Italic
End With
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Not press F9 to refresh URLs?
|
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 |
URLs in citations
|
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 |