Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-06-2023, 01:09 AM
TallTrees TallTrees is offline Set autonumber to bold Windows 10 Set autonumber to bold Office 2021
Novice
Set autonumber to bold
 
Join Date: Jul 2022
Posts: 8
TallTrees is on a distinguished road
Default Set autonumber to bold

Hi



Is there a way to set autonumbering to bold for a particular paragraph, using VBA?

When I apply Range.Font.Bold it doesn't also apply it to the number.

The paragraph in question is part of a multi level list with styles linked to the various levels. The number formatting is not bold in the multilevel list. I essentially need two different styles at the same level but have yet to find a way to do this. My workaround is to have a macro to change the formatting of a paragraph and insert a TC marker, while it remains part of the numbered list. (See my other threads!)

Sorry for the brevity of this post, but I am having to post on my phone.

Thanks
Reply With Quote
  #2  
Old 04-06-2023, 05:01 PM
Guessed's Avatar
Guessed Guessed is offline Set autonumber to bold Windows 10 Set autonumber to bold Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,995
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

The formatting of the autonumber is overridden by the formatting of the paragraph mark at the end of that paragraph. So code to apply formats to the number would be along the lines of...
Code:
Range.Paragraphs(1).Range.Characters.Last.Font.Bold = True
Your other thread has code that creates the styles where the font attributes of the two numbered styles follow the attributes of the styles.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoNumber manual numbered documents jec1 Word VBA 2 08-07-2022 11:57 PM
Bold Header if it is not Bold (Check to see if it is Bold) armendarizj Word 2 01-06-2022 05:45 PM
Does Word have Autonumber Format (like in FrameMaker)? Luxanais Word 7 05-19-2015 12:57 AM
Set autonumber to bold Autonumber MS Word template Lpitt56 Word 1 09-22-2011 04:04 PM
need autonumber in my excel file mit Excel 2 06-21-2011 10:56 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:02 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft