Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-01-2018, 12:10 PM
kkkwj kkkwj is offline set table rows to theme accent colors Windows 10 set table rows to theme accent colors Office 2016
Novice
set table rows to theme accent colors
 
Join Date: Nov 2017
Posts: 6
kkkwj is on a distinguished road
Default set table rows to theme accent colors


If I manually apply a Word table theme to a table, the table colors change when I change the word design theme using the list of color themes.

But, if I set the table colors programmatically to a specific RGB value, the table colors don't change when the theme changes. I suppose this is correct behavior, assuming that explicit color settings have priority over theme settings (that's the way font settings work).

My problem is that I can't find a way to set the row colors of a table to a theme accent color like I do for shapes. For shapes, I use

Code:
shape.Fill.foreColor.ObjectThemeColor = wdThemeColorAccent2
But for tables, there is no ObjectThemeColor variable. All I can find is this code, which chooses from a list of predefined wd* colors that have nothing to do with theme colors.

Code:
.Rows(i).Shading.ForegroundPatternColor = wdColorGold
Is it possible to set table row colors to theme accent colors?

I thought maybe you can only make those kinds of settings higher up in the table object, perhaps indirectly through a table style that is bound to the table. But looking at the object browser, there are no fields in the TableStyle or Style objects that look like the .Fill.<ColorFormatObject> that provides an ObjectThemeColor field.

It's possible for tables to respond to theme color changes because I see it happen with my eyes. But maybe it's not possible programmatically. If anyone can point me in the right direction, I would appreciate it. thank you
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
More than 12 colors in a theme? Designzilla PowerPoint 3 01-16-2015 06:18 AM
Powerpoint Theme Colors conversion DSanger PowerPoint 12 01-12-2015 12:34 PM
Word/Office Theme Colors pmokover Word 1 09-07-2014 02:48 PM
set table rows to theme accent colors Change accent theme color used as shape fill (not RGBs) preetidb PowerPoint 4 12-30-2013 03:22 PM
set table rows to theme accent colors Unable to change font colors from theme colors choy Word 3 08-01-2012 09:12 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:34 AM.


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