Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2018, 04:29 PM
Swarup Swarup is offline In the Index: How to format the appearance of reference words and page numbers Windows 10 In the Index: How to format the appearance of reference words and page numbers Office 2016
Competent Performer
In the Index: How to format the appearance of reference words and page numbers
 
Join Date: Jul 2018
Posts: 188
Swarup is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
In that case, I'd be inclined to use a macro. As yet though, I don't know whether the numbers are in the headers or footers, whether they're on every page, or how much reformatting you've already done.
The numbers are in both the headers and footers. The document is for use in India, where page edges are likely to be damaged in use, so having them at the top & bottom means they'll last longer.
Quote:
Originally Posted by macropod View Post
That may be due to the use of justification, tabs, etc. However, the use of narrow non-breaking spaces (202F,Alt-x), for example, should ensure consistency.
Are you saying I should type 202F,Alt-x each time?


Quote:
Originally Posted by macropod View Post
The Index is a field. Select and press Shift-F9 to expose the field code.
What screen should be open in front of me when I do Shift-F9? I tried that combination when my MS Word document was open and I was looking at the end of the file on page 305 i.e. the index. But nothing happened when I pressed Shift-F9.
Quote:
Originally Posted by macropod View Post
As I've said twice now, you should use a Word document , not a plain text file, for the concordance. Copy your plain text file's content into a Word document , select the content then use Insert|Table>Convert Text to Table to turn it into a single-column table, add a column to the Table and format the entries in the second column how you want them to appear in the Index.
Thank you, I understand now and should be able to take it from there.
Reply With Quote
  #2  
Old 08-10-2018, 05:13 PM
macropod's Avatar
macropod macropod is online now In the Index: How to format the appearance of reference words and page numbers Windows 7 64bit In the Index: How to format the appearance of reference words and page numbers Office 2010 32bit
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 Swarup View Post
What screen should be open in front of me when I do Shift-F9? I tried that combination when my MS Word document was open and I was looking at the end of the file on page 305 i.e. the index. But nothing happened when I pressed Shift-F9.
You should select the Index. What part of 'select' don't you understand?

As for re-doing the page numbering, try the following macro:
Code:
Sub Main()
Application.ScreenUpdating = False
Dim Sctn As Section, HdFt As HeaderFooter
For Each Sctn In ActiveDocument.Sections
  For Each HdFt In Sctn.Headers
    Call UpdateHeaderFooter(Sctn, HdFt)
  Next
  For Each HdFt In Sctn.Footers
    Call UpdateHeaderFooter(Sctn, HdFt)
  Next
Next
Application.ScreenUpdating = True
End Sub

Sub UpdateHeaderFooter(Sctn As Section, HdFt As HeaderFooter)
Dim Rng As Range, Fld As Field
With HdFt
  If .Exists = True Then
    If (Sctn.Index = 1) Or (.LinkToPrevious = False) Then
      .PageNumbers.NumberStyle = wdPageNumberStyleArabic
      For Each Fld In .Range.Fields
        With Fld
          If .Type = wdFieldPage Then
            Set Rng = .Result
            .Delete
            With Rng
              .Text = "-" & ChrW("&H202F") & " " & ChrW("&H202F") & "-"
              .Fields.Add .Characters(3), wdFieldEmpty, "PAGE", False
            End With
            Exit For
          End If
        End With
      Next
    End If
  End If
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 08-10-2018, 05:25 PM
Swarup Swarup is offline In the Index: How to format the appearance of reference words and page numbers Windows 10 In the Index: How to format the appearance of reference words and page numbers Office 2016
Competent Performer
In the Index: How to format the appearance of reference words and page numbers
 
Join Date: Jul 2018
Posts: 188
Swarup is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
You should select the Index. What part of 'select' don't you understand?
You are saying that the index is a field which needs to be selected. If I were looking at a data base or spread sheet having various fields among which one were the index, then I could easily understand. But when I am looking at a MS Word document which contains text, then in that setting when you say the index is a field that needs to be selected, I do not understand where are the fields among which the index is one to be selected.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing format of page numbers in Index mohsen.amiri Word 0 01-22-2017 09:36 AM
In the Index: How to format the appearance of reference words and page numbers How can I list an index with page numbers of words unknown to the dictionary in a word document? Jay Jay Word 3 08-12-2015 05:53 AM
Sorting Index According to Page Numbers mohsen.amiri Word 14 06-25-2015 09:50 PM
Index - hyphenated page numbers godofpool Word 1 07-09-2012 11:25 AM
In the Index: How to format the appearance of reference words and page numbers wrong page numbers in index ellie2063 Word 1 06-29-2011 05:54 PM

Other Forums: Access Forums

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