Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 07-18-2018, 06:08 PM
macropod's Avatar
macropod macropod is offline Risk Matrix table using Content Controls Windows 7 64bit Risk Matrix table using Content Controls Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,514
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try the attached. I needed to make some minor changes to your table (including restoration of the placeholder texts), but that won't affect its utility.

Note: If you want to shade the output cells to match the ratings, you could change:
Code:
  .Range.Tables(1).Cell(r, c).Range.Text = StrTxt
to:
Code:
  With .Range.Tables(1).Cell(r, c)
    .Range.Text = StrTxt
    .Shading.BackgroundPatternColor = Tbl.Cell(i + 1, j + 1).Shading.BackgroundPatternColor
  End With
Do note, though, that this will apply the light grey shading to those cells if you click through them without making a selection. Making that the default state might work for you.
Attached Files
File Type: dotm Scouts Risk Assessment.dotm (64.5 KB, 38 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
insert the 2 content controls into a Repeating Section in a table smaccharoli Word VBA 2 02-27-2018 08:49 AM
Risk Matrix table using Content Controls Duplicating one or more table rows or an entire table with content controls kevinbradley57 Word VBA 10 08-17-2017 02:13 PM
Risk Matrix table using Content Controls 2nd matrix gives a resut that doesn´t match numbers in the 1st matrix Diver Excel 25 02-22-2017 04:39 PM
Macro to save docx to doc that checks compatibility and converts content controls to static content. staicumihai Word VBA 4 10-12-2016 08:23 PM
Content Controls - Add Table Rows dgiromini Word VBA 1 04-11-2014 03:04 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:34 PM.


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