Duh….
I need to edit the styleref value.
How are the switches applied in the editor of the field codes of the header properties?
Any help would be appreciated
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Macro populates Header and TOC (Word XP)
Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Macro populates Header and TOC (Word XP)
- This topic has 13 replies, 3 voices, and was last updated 21 years, 4 months ago.
AuthorTopicWSjazman2k
AskWoody LoungerJanuary 29, 2004 at 8:06 pm #399912Viewing 2 reply threadsAuthorReplies-
WSjazman2k
AskWoody LoungerJanuary 29, 2004 at 8:24 pm #776267 -
WSjazman2k
AskWoody LoungerJanuary 29, 2004 at 8:24 pm #776268 -
WSStuartR
AskWoody Lounger -
WSjazman2k
AskWoody LoungerJanuary 29, 2004 at 8:57 pm #776431The person responsible does it manually through the field codes element in the header.
I don’t know if they’ll allow me to write code because they could never maintain it.
It looks like the w slash is what I need according to documentation, but I don’t see any bookmarks in the document.
Do I need to populate the bookmarks?
Thanks -
Andrew Lockton
AskWoody_MVPJanuary 29, 2004 at 10:51 pm #776510What you are trying to do falls into the too hard basket for Word because you are trying to combine the paragraph numbers from two different paragraphs into the one styleref field (possibly a nested one).
A macro solution will need to put a section break between every page, examine the first and preceding numbered paragraphs for each section (page) to find out the style names, examine the last and preceding numbered paragraphs for each section (page) and then use this information to customise the header for that section.
Your best solution would be to negotiate with the document owner on why this is not sensible in its present form.
If you used the full paragraph numbering on every paragraph eg the A becomes 101.1.A then the task becomes somewhat easier but it is still far from easy unless the SAME style is used for EVERY numbered paragraph.
If you come up with a workable solution, I would love to hear what it is because I could probably use it myself – I know I’ve been asked for something like this before.
-
WSjazman2k
AskWoody LoungerJanuary 30, 2004 at 1:33 pm #776826 -
WSjazman2k
AskWoody LoungerJanuary 30, 2004 at 1:33 pm #776827
-
-
Andrew Lockton
AskWoody_MVPJanuary 29, 2004 at 10:51 pm #776511What you are trying to do falls into the too hard basket for Word because you are trying to combine the paragraph numbers from two different paragraphs into the one styleref field (possibly a nested one).
A macro solution will need to put a section break between every page, examine the first and preceding numbered paragraphs for each section (page) to find out the style names, examine the last and preceding numbered paragraphs for each section (page) and then use this information to customise the header for that section.
Your best solution would be to negotiate with the document owner on why this is not sensible in its present form.
If you used the full paragraph numbering on every paragraph eg the A becomes 101.1.A then the task becomes somewhat easier but it is still far from easy unless the SAME style is used for EVERY numbered paragraph.
If you come up with a workable solution, I would love to hear what it is because I could probably use it myself – I know I’ve been asked for something like this before.
-
-
WSjazman2k
AskWoody LoungerJanuary 29, 2004 at 8:57 pm #776432The person responsible does it manually through the field codes element in the header.
I don’t know if they’ll allow me to write code because they could never maintain it.
It looks like the w slash is what I need according to documentation, but I don’t see any bookmarks in the document.
Do I need to populate the bookmarks?
Thanks -
WSjazman2k
AskWoody LoungerJanuary 30, 2004 at 2:27 pm #776858OK, I’m thinking that I’m going to have to code this in order to get it done as soon as possible.
What type of loop would you recommend to capture the values for the variables?
Also, how would I generate the run-time pagination function?
If I’m getting this right, I need to populate each fld.code.txt in a run-time pagination call.
Is there a way to distinguish which is the top and which is the bottom field?
I mean, do they have separate names or am I creating those too?
I think I’ll have a look in the object browser, I guess. -
WSjazman2k
AskWoody LoungerJanuary 30, 2004 at 2:27 pm #776859OK, I’m thinking that I’m going to have to code this in order to get it done as soon as possible.
What type of loop would you recommend to capture the values for the variables?
Also, how would I generate the run-time pagination function?
If I’m getting this right, I need to populate each fld.code.txt in a run-time pagination call.
Is there a way to distinguish which is the top and which is the bottom field?
I mean, do they have separate names or am I creating those too?
I think I’ll have a look in the object browser, I guess.
-
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Perplexity Pro free for 12 mos for Samsung Galaxy phones
by
Patricia Grace
6 hours, 41 minutes ago -
June KB5060842 update broke DHCP server service
by
Alex5723
5 hours, 13 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.06.02.123
by
Alex5723
9 hours, 15 minutes ago -
Excessive security alerts
by
WSSebastian42
4 hours, 56 minutes ago -
* CrystalDiskMark may shorten SSD/USB Memory life
by
Alex5723
18 hours, 43 minutes ago -
Ben’s excellent adventure with Linux
by
Ben Myers
44 minutes ago -
Seconds are back in Windows 10!
by
Susan Bradley
5 hours, 52 minutes ago -
WebBrowserPassView — Take inventory of your stored passwords
by
Deanna McElveen
15 hours, 47 minutes ago -
OS news from WWDC 2025
by
Will Fastie
19 hours, 58 minutes ago -
Need help with graphics…
by
WSBatBytes
3 hours, 14 minutes ago -
AMD : Out of Bounds (OOB) read vulnerability in TPM 2.0 CVE-2025-2884
by
Alex5723
1 day, 10 hours ago -
Totally remove or disable BitLocker
by
CWBillow
9 hours, 19 minutes ago -
Windows 10 gets 6 years of ESU?
by
n0ads
12 hours, 34 minutes ago -
Apple, Google stores still offer China-based VPNs, report says
by
Nibbled To Death By Ducks
1 day, 20 hours ago -
Search Forums only bring up my posts?
by
Deo
42 minutes ago -
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
2 days, 8 hours ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
2 days, 1 hour ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
2 days, 9 hours ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
2 days, 19 hours ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
2 days, 20 hours ago -
Disengage Bitlocker
by
CWBillow
2 days, 10 hours ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
2 days, 22 hours ago -
New Win 11 Pro Geekom Setup questions
by
Deo
36 minutes ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
3 days, 5 hours ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
3 days, 5 hours ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
3 days, 9 hours ago -
New PC transfer program recommendations?
by
DaveBoston
1 day, 14 hours ago -
Windows 11 Insider Preview Build 22631.5545 (23H2) released to Release Preview
by
joep517
3 days, 13 hours ago -
Windows 10 Build 19045.6029 (22H2) to Release Preview Channel
by
joep517
3 days, 13 hours ago -
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
3 days, 2 hours ago
Recent blog posts
- Ben’s excellent adventure with Linux
- Seconds are back in Windows 10!
- WebBrowserPassView — Take inventory of your stored passwords
- OS news from WWDC 2025
- Best tools for upgrading a Windows 10 to an 11
- Master patch listing for June 10, 2025
- 24H2 may not be offered June updates
- June 2025 updates are out
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.