![]() |
|
#9
|
|||
|
|||
|
With this post I'm providing a test.docx as suggested by Guessed.
Using this file, I tried the code provided by both Guessed and macropod but neither worked. This could be because I'm doing something wrong like not supplying the color correctly. I ran the code I wrote on this test.docx and this screenshot: test.png - Google Drive shows the result. You'll notice that this is in Excel. My code is excel VBA that opens the Word document and manipulates it, extracting the range start, end point, the shaded text, and wdColor enumeration number for the shading color. The cell interior is also colored using this number. This test.docx is very small, and it's easy to figure out the colors. but I don't know the colors for the many documents I have. Last edited by Tony; 04-08-2021 at 05:04 PM. Reason: added link to screenshot |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Show field shading in Content Control
|
ajanson | Word | 3 | 08-15-2016 04:49 PM |
Clicking the selected Content Control checkbox returns wrong control in vba event
|
DougsGraphics | Word VBA | 2 | 06-24-2015 07:31 AM |
Question: How to maintain gray shading in text control box
|
tluken | Word | 1 | 08-23-2012 10:20 AM |
Shading, but only when printed
|
WilltheGrill09 | Word | 1 | 03-27-2012 02:44 AM |
Equations shading
|
b0x4it | Word | 4 | 05-18-2011 07:54 PM |