+ Reply to Thread
Results 1 to 3 of 3

Match Styles in Cross-Reference (from Bookmark) to match surrounding text in Word (VBA)

  1. #1
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    403

    Match Styles in Cross-Reference (from Bookmark) to match surrounding text in Word (VBA)

    Hi guys,

    When using "Cross-reference" of a Bookmark. The "Cross-reference" uses the same Style as the Bookmark.

    I would like a way that would go through the word document and give me the choice for each "Cross-reference" whether I want to keep the current format or to use the format of the rest of the line. (I have a feeling it might use "mergeformat")


    Using VBA word this is what I have got/found from the internet:

    Please Login or Register  to view this content.
    The above code seems to kind of work.. but not really.


    Any ideas guys?

    Thanks,
    Jimmy

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: Match Styles in Cross-Reference (from Bookmark) to match surrounding text in Word (VBA

    Moved from the Excel VBA to the Word VBA forum.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Match Styles in Cross-Reference (from Bookmark) to match surrounding text in Word (VBA

    Try:
    Please Login or Register  to view this content.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Cross Check Columns for Index Match Match
    By Harr in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 12-31-2015, 11:35 AM
  2. [SOLVED] Postcode Match: Cross Reference from another list
    By denise001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-25-2013, 06:22 AM
  3. Match and VLookup to cross reference data
    By MrO in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-05-2013, 03:53 PM
  4. Closest Match Cross Reference Table
    By Jonathan78 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-08-2013, 05:20 PM
  5. Replies: 2
    Last Post: 10-11-2012, 08:05 AM
  6. Replies: 4
    Last Post: 04-26-2011, 04:38 PM
  7. Replies: 3
    Last Post: 04-21-2006, 12:13 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1