Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2025, 12:26 AM
Guessed's Avatar
Guessed Guessed is offline In a style set font color to themecolor Windows 10 In a style set font color to themecolor Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
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

Try this instead
Code:
ActiveDocument.Styles(wdStyleHeading1).Font.Color = -721354753

__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #2  
Old 03-20-2025, 01:36 AM
Astrid Astrid is offline In a style set font color to themecolor Windows 10 In a style set font color to themecolor Office 2019
Novice
In a style set font color to themecolor
 
Join Date: Apr 2022
Posts: 9
Astrid is on a distinguished road
Default

Thanks for your response.

This changes only the color. This is not what I want to archieve.
I want to set the color to the relative position in the palet, not to a fixed value, so that when the theme is changed, the color in the style changes as well.
Reply With Quote
Reply

Tags
color, style, theme



Similar Threads
Thread Thread Starter Forum Replies Last Post
Style Font Color Changes After Close?? the.ronin Word 2 05-20-2018 07:26 PM
Style Font Color: Background 1 gmgj Word 3 12-20-2017 04:00 PM
In a style set font color to themecolor Hyperlink style won't accept font color or underlining Jennifer Murphy Word 14 03-19-2017 03:02 PM
Font Color Question//.Replacement.Font.Color = 12611584 rsrasc Word VBA 3 09-05-2015 09:03 PM
Setting Font Color and Style "permanently" wings1080 Word 5 12-19-2014 08:44 AM

Other Forums: Access Forums

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