Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-16-2019, 04:10 PM
Guessed's Avatar
Guessed Guessed is offline Insert StyleRef and Seq field into text Windows 10 Insert StyleRef and Seq field into text Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Create a paragraph with content and fields set up this way
Table {StyleRef 1 \s}.{Seq Table \s 1}

This can be used in every instance and doesn't need to be reset after each Heading 1.

In terms of making a macro to insert this in the required place, I would say it is easiest to save that content as a building block and then just insert that BB in the required range. Something along the lines of the following...
ActiveDocument.AttachedTemplate.BuildingBlockTypes (1).Categories("General").BuildingBlocks("bbName") .Insert Where:=Selection.Range, RichText:=True
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert StyleRef and Seq field into text Styleref field returns error Levi92 Word 6 10-21-2018 01:30 PM
StyleRef field shows <> Stoic Word 2 04-20-2017 04:42 AM
Insert StyleRef and Seq field into text Insert text form field help sj80 Word 1 01-26-2016 10:50 PM
Problem using a StyleRef field in footer sleake Word 10 06-27-2013 07:45 AM
Insert StyleRef and Seq field into text StyleRef field Ulodesk Word 4 03-21-2012 11:15 AM

Other Forums: Access Forums

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