Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-14-2019, 03:37 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

Thank you Andrew!

I see that your code for updating the styles is much simpler than what I had, however my documents are all on SharePoint and accessed by lots of people, most of whom don't have access to the template, so it's forever being set back to "Normal". For each job I work on I modify the macro to have the path to the correct template for that job. Perhaps there's a way to code the template path into each file so the macro reads it from there, but that's for another time.

I've put in the steps you wrote, and stepping through it I can see that "x" gets assigned the correct value, however the step "aLT.ListLevels(1).StartAt = x" doesn't set the value. So the result is that the document still ends up with whatever "StartAt" value is set in the template, not the value of "x". Any idea why?

I've just purchased myself a couple of Word VBA courses on Udemy: determined to learn the underlying principles such as why you sometimes need "Set" when filling and variable and sometimes not!
Reply With Quote
Reply



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 12:13 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