Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2021, 12:45 AM
RRB's Avatar
RRB RRB is offline Advanced Index Query Windows 8 Advanced Index Query Office 2013
Susan Flamingo
Advanced Index Query
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 302
RRB is on a distinguished road
Default Further Index Question


Thank you very much for your detailed reply.

Question:

I have a certain way I have broken up this document into sections.

I have text formatted the section names with Style "SectionNames".

How can I cause the index entry to reflect the last text of that style?.

So on Page 12 starts a section called "Crazy Section" (which is formatted with style "SectionName"

On Page 13 I have an index entry of text "Cucumber".

So in the Index, it should appear as:

Cucumber - Crazy Section

Can this be done W/O using bookmarks?

Thank You
Reply With Quote
  #2  
Old 04-29-2021, 12:59 AM
macropod's Avatar
macropod macropod is offline Advanced Index Query Windows 10 Advanced Index Query Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Quote:
Originally Posted by RRB View Post
I have text formatted the section names with Style "SectionNames".

How can I cause the index entry to reflect the last text of that style?
As demonstrated in my previous reply, that is done by applying the relevant formatting (Style) to the XE field. Whether the whole field is formatted that way, or just the part for the relevant indexing level, is inconsequential.
Quote:
Originally Posted by RRB View Post
On Page 13 I have an index entry of text "Cucumber".

So in the Index, it should appear as:

Cucumber - Crazy Section

Can this be done W/O using bookmarks?
As should have been clear from my previous reply, Index Entries are marked with XE fields. Bookmarks have no part in this.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 04-29-2021, 03:26 AM
RRB's Avatar
RRB RRB is offline Advanced Index Query Windows 8 Advanced Index Query Office 2013
Susan Flamingo
Advanced Index Query
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 302
RRB is on a distinguished road
Default

Sorry for driving you crazy, let me get this straight:

If I format the XE field (selecting the XE field and choosing the style) using the defined style "SectionNames" that entry in the index will use the TEXT of the last instance formatted with that style ("Crazy Section")

Something doesn't sound right here...

(I would have thought that we would have to insert a variable using "StyleRef" in the EX field (a field within a field???) and use the \t switch something like this:

{ XE "cucumber" \t {styleref "SectionName"} }

Am I missing something?

Your patients is appreciated

Susan
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a I create an index in a word document where index entries control sections of the document? pfriorda Word 3 12-28-2017 08:02 PM
Advanced Index Query Updating font in index without updating style of index Nick B Word 4 11-28-2016 02:00 AM
Query and Power Query not working Excel 2016 bl10 Excel 0 07-22-2016 06:25 PM
Get Paragraph index from bookmark starting index vince692 Word VBA 6 05-13-2016 04:51 AM
How to Query Text in MS-Excel 2010 or Import Data & Query outside of Excel? mag Excel 0 10-18-2012 11:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:23 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