MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Sub BookmarkInstancesOfStyle Dim strLanguages As Variant Dim i As Long Dim frange As Range i = 0 Selection.HomeKey wdStory Selection.Find.Style = ActiveDocument.Styles("user-style") strLanguages = Array("de", "en", "es", "fr", "it") With Selection.Find Do While .Execute(FindText:="", Forward:=True, _ MatchWildcards:=False, Wrap:=wdFindStop, MatchCase:=False) = True Set frange = Selection.Range ActiveDocument.Bookmarks.Add "MainTOC_" & strLanguages(i), frange i = i + 1 Selection.Collapse wdCollapseEnd Loop End With End Sub
|How to check if an MS Word is closed in C#||21||100|
|How to open a ZIP file.||6||44|
|Microsoft Word Add-in Start automatically||8||50|
|find a specific style and pass it to a access table||4||50|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
18 Experts available now in Live!