-
WSgeoric1
AskWoody LoungerPhil/Andrew,
Andrew is correct. We didn’t need to discuss the STYLEREF field because it was working for me (and I didn’t even realize anything interesting was going on there!) My problem was with the switches in the SEQ, not in the STYLEREF. Andrew’s suggestion to add c before the s1 in the SEQ field code worked beautifully.
Regarding the use of the s switch in the STYLEREF field, I wasn’t being clever. All I did was: create a heading one line at the beginning of the document, select InsertCaption, select Figure in the Label box, click the Numbering button, select Include Chapter Number in the Chapter Numbering dialog. As far as I know, this is how I’ve always done it, and I don’t recall ever using the n switch you mentioned. And I don’t see documentation for using s with STYLEREF anywhere either. -
WSgeoric1
AskWoody LoungerAndrew,
Thanks for the fix! It works perfectly even after additional testing. I will have many occasions to use it in my large documents.
Summary for others reading this: Adding “c” before “s1” in the SEQ field code keeps the figure number from advancing so that the caption of a “Part 2 of 2” figure retains the same number as the previous figure caption. -
WSgeoric1
AskWoody LoungerAndrew,
I’m trying to figure out why the figure number is jumping. It is not intentional nor is Track Changes being used. The erratic way Word is updating the field seems to be the culprit.
I’ve attached a simple document to illustrate the problem. There are two normal figure captions in chapter 1. In chapter 2, the first figure caption is normal – Figure 2-1 (1 of 2) – and the second uses the c switch – Figure 2-1 (2 of 2).
If I Select All and then update all fields with F9, the second figure of chapter 2 correctly shows Figure 2-1 (2 of 2). However, if I then right-click this figure number and select Update Field, the 1 changes to a 3. It seems to be adding 1 to the number of figures in the previous chapter.
Thanks again,
George -
WSgeoric1
AskWoody LoungerAndrew,
Thanks for your response. The c switch gives me the wrong sequence number when the field updates. (In my doc, the figure that follows Figure 2-30 is Figure 2-42.) The c switch does work in a small test document, however, so there’s something I can’t identify in my main doc that’s mucking things up.Also, in the test file, the field with the c switch doesn’t show up in the Table of Figures unless I generate the TOF by the Caption style (thru the Option button in the Index and Tables dialog). This is unacceptable in my case because I use the Caption style for both tables and figures, and don’t want them combined in one TOF. (I generate my TOFs by specifying either Figure or Table as the caption label in the Index and Tables dialog.)
Using your suggested method of cross-referencing to the previous caption worked as far as producing the correct figure caption, but this caption also does not get picked up in the TOF.
Is there a way to get the TOF to pick up the captions that use the c switch and/or the cross reference without resorting to generating by the Caption style?
-
WSgeoric1
AskWoody LoungerJanuary 29, 2003 at 8:45 pm in reply to: Reminder to Re-protect document upon closing heade (2000/SR1) #649000Thanks again, Hans! It worked! I was able to get it to work for the control number, and then I added a second input box for the date, which also is required to be in the header. A great learning experience for me – I’m sure I’ll use this technique for many other templates, and I do have a ton more of them to do.
One more question if I might: The custom doc property dialog doesn’t seem to recognize the “d mmm yyyy” format, so I had to define the field as Text. Any insight on this? -
WSgeoric1
AskWoody LoungerJanuary 29, 2003 at 2:47 pm in reply to: Reminder to Re-protect document upon closing heade (2000/SR1) #648900Thanks, Andrew. I’m not having success in completely implementing your solution. I was able to create a custom property called CTRLNumber and insert a DocProperty field into the header which displays the default value which I defined for CTRLNumber. But in trying to run your macro, I get an error in the first line. Also, it’s not clear to me how your macro asks the user to provide a new value for the CTRLNumber property.
If there was a way to link a custom property to a variable, maybe I could use a combination of your method and Hans’s. I could link the CTRLNumber custom property to the content of the variable that results from the InputBox. But I see only bookmark names, and no variables, in the dropdown list in the custom property dialog box when I select the Link To Content checkbox. -
WSgeoric1
AskWoody LoungerJanuary 28, 2003 at 6:37 pm in reply to: Reminder to Re-protect document upon closing heade (2000/SR1) #648647Thanks, Hans. The InputBox appears to be exactly what I need here, but I’ve never used one before. After reading the Special Edition Using Word 2000 blurb, I was able to create the InputBox, and I know (from using a MsgBox) that my variable (txtCtrlNum) is being assigned the string value the user gives. But now that I have this variable, I don’t know how to get its contents into the header. I tried the DocVariable field, but it isn’t getting populated with the contents of txtCtrlNum. How should my toolbar button be able to do all the things you say it should do?
-
WSgeoric1
AskWoody LoungerSeptember 6, 2002 at 2:38 pm in reply to: Cell property not obeying recorded macro (2002/SP-1) #614667Stuart,
Your fixes worked, and the Tablespace macro runs beautifully now. Thanks so much!
Woody’s Lounge sure is a valuable resource! -
WSgeoric1
AskWoody LoungerSeptember 6, 2002 at 1:21 pm in reply to: Cell property not obeying recorded macro (2002/SP-1) #614630Thanks again, Stuart. I really appreciate all your help.
When I tried your macro to set every cell in every table, I got a “Compile error. Method or member not found” at .FitText = False. When I removed it, all I got was a steady hourglass and had to close Word. -
WSgeoric1
AskWoody LoungerSeptember 5, 2002 at 7:38 pm in reply to: Cell property not obeying recorded macro (2002/SP-1) #614468Thanks for the clarification, Stuart! I typed in Bryan’s code and it ran — took about 30 seconds to complete the 23 page, 50 table document. But after the macro finished, the cells all had a left padding of .01 instead of .03. The default cell margins in the Table Options did reflect the values the macro specified, but those values appear to be subservient to the values in the Cell Options tab, which are different and don’t appear to have been affected by the macro.
-
WSgeoric1
AskWoody LoungerSeptember 5, 2002 at 6:48 pm in reply to: Cell property not obeying recorded macro (2002/SP-1) #614454Thanks, Klaus and Bryan. But since I’m a VB-newbie I’m confused. I intended to record a macro that would reformat all the cells of the table the insertion point was located in, but for this document doing all the tables at once would be even better! Unfortunately since I’m not very knowledgable about VB, I couldn’t get past the first WIth statement when typing in Bryan’s code. I kept getting “this action will reset your project”. Reminded me of why I always hated programming. And I couldn’t tell exactly how Klaus’s code was meant to modify Bryan’s, or if any particluar table– or all tables? — needed to be selected first before running the Klausian modification of the Bryanian macro.
-
WSgeoric1
AskWoody LoungerIt sounds like you inadvertently created the line by typing either 3 or more hyphens, or 3 or more underscores, followed by the Enter key. These combinations automatically insert a border line if you have the following setting checked:
Tools > Autocorrect > AutoFormat As You Type (tab) > Apply as you type (Borders checkbox)
George Tipton
-
WSgeoric1
AskWoody LoungerDecember 4, 2001 at 6:23 pm in reply to: Customizing Revision Mark (change bar) location (Word 97 SR2) #555933Thanks, Gary, I’ll try it.
I’ve since discovered also that horizontal placement of the revision marks depends on the footer margins. By dragging the right footer margin to the right (using the ruler) I could get the revision marks to move to the right. Unfortunately, this document is so heavily under Infomap’s influence that this fix also forced some other elements to move undesirably, such as the “continued on next page” blurb . -
WSgeoric1
AskWoody LoungerSome unusually large temp files in C:temp were responsible for my getting this message once. I’d check there first.
-
WSgeoric1
AskWoody LoungerThere were no unfamiliar templates, but when I attached a different normal.dot the problem went away. Probably a virus like you said. Thanks for the help, Rajesh!!
![]() |
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 |

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
-
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
47 minutes ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
3 hours, 10 minutes ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
6 hours ago -
0patch
by
WSjcgc50
2 hours, 28 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
3 hours, 7 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
9 hours ago -
Problem opening image attachments
by
RobertG
10 hours, 34 minutes ago -
advice for setting up a new windows computer
by
routtco1001
1 day, 1 hour ago -
It’s Identity Theft Day!
by
Susan Bradley
5 hours, 36 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
1 day, 6 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
1 day, 6 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
1 day, 6 hours ago -
Firefox became sluggish
by
Rick Corbett
1 day, 3 hours ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
1 day, 10 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
1 day, 11 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
8 hours, 27 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
3 hours ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
9 hours, 8 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
10 hours, 19 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
2 days, 2 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
1 day, 6 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 day, 15 hours ago -
23 and you
by
Max Stul Oppenheimer
1 day, 23 hours ago -
April’s deluge of patches
by
Susan Bradley
2 hours, 53 minutes ago -
Windows 11 Windows Updater question
by
Tex265
3 hours, 14 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
3 days, 7 hours ago -
Registry Patches for Windows 10
by
Drcard:))
3 days, 12 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
2 days, 18 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
2 days, 4 hours ago -
Align objects on a OneNote page
by
CWBillow
3 days, 17 hours ago
Recent blog posts
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.