Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 04-14-2019, 05:41 PM
WordUser789 WordUser789 is offline Keeping or restoring "Start at" value for heading list after updating styles from a template Windows 10 Keeping or restoring "Start at" value for heading list after updating styles from a template Office 2016
Novice
Keeping or restoring "Start at" value for heading list after updating styles from a template
 
Join Date: Jun 2017
Posts: 25
WordUser789 is on a distinguished road
Default

The code is in my Normal template, along with all my other macros. I tried saving it in the template (and the template as a docm), but same result.

It makes sense that the linked template shouldn't change, but it seems that every time I go back to a document on SP that's had multiple edits, the template is back to "Normal". These people wouldn't be running any code (at least not that they know of!). So I make linking it back to the right template part of the macro.

When I do ctrl+Q and ctrl+space it shows as "Heading 1" all the way through.

Attached is a sample template: not the one I was working on, but has the same result. Click into the line that's styled as Heading 1, Right click list style "Numbered Headings", edit, change "Start At" to 4. "1. Heading 1" becomes "4. Heading 1", which is what I want. Run the macro, and it changes back to "1. Heading 1".

If you look at the "locals" window, it reads the correct value into "x" (in this case, 4), but the last line of code which is supposed to set the value back to "x" once the styles have been updated doesn't change anything: the headings still start at 1.
Attached Files
File Type: dotx Template.dotx (30.8 KB, 10 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping or restoring "Start at" value for heading list after updating styles from a template Custom Template, Multi-List Heading Numbers Reverting to Template Rather than Keeping Local Change whsnow Word 2 03-24-2018 06:57 AM
Keeping or restoring "Start at" value for heading list after updating styles from a template Heading styles come "unlinked" from Multi-level list levels after save. spthomas Word 3 11-27-2013 03:55 PM
2 "autonumbers" in 1 list heading? christie Word 0 08-01-2011 08:24 AM
Keeping or restoring "Start at" value for heading list after updating styles from a template How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM
Word 2007 template "Restart at 1" changes styles BuzzyG Word 0 06-10-2011 01:19 PM

Other Forums: Access Forums

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