15 total posts
Same color to grid lines
Wnat colors are your grid lines(table border lines) at present ?
To change color, try:
Highlight the table. Then Format>Borders and Shading. Choose the color.
Table line color in word
The lines are currently black. I want to change all the lines, even though they are varying line weights to the blue. You suggestion does not work, I've already tried. Thanks!
My thoughts are to turn on Field Code display then search
And replace as need be. I don't have Word on my Linux box so I can't try that. I do know I've exported docs as RTF files and used code to change such in an automated system but that may be diving too deep.
WORD PIPE (or WORDPIPE) found with google.com may be a good tool to acquire if you do this too often.
but changing the RTF
If you are exporting to an RTF file, then changing anything there, all you've got is the exported doc changed, and the original Excel file is not changed at all.
That doesn't sound like what he wants. But it is an interesting work-around.
oops!! sorry he was talking about a Word doc to begin with.
So, if you export as RTF, and then
are able to find and edit all the (Word RTF file) table line colors, it would be an easy job to then re-saving the RTF file back out as a Word .DOC file.
I wonder if the line colors of a table are easily found?
No experts required. Just edit the RTF. For example...
With a little google I can find the RTF "spec" or language.
-22 \brdrcf<N> <N> is the color of the picture border from the
color table in the RTF header. This control
should follow the picture border controls \brdrt,
\brdrr, \brdrb, and \brdrl."
We could then search and replace that with the color we wish either with a macro or code or any tool we wish.
The lines mentioned do they relate to
Word "Table of Cells [Using Insert Table]" or a "Word Data Base [Using Mail Merge]"
However you did mentioned "Grid Lines"??
The fact is that I feel you can only "Hide Gridlines" in a Word Data Base
Come back with a reply as I may be able to help?
answer to gridline question
Not really gridlines I guess, but all the lines in the Word table.
try reformating the border lines again to the color desired, since the cell border lines have been formated to different "points". It need not to be "cell by cell".
You might need a macro to walk through the table ...
and do it cell by cell. You write that cell by cell works, so half of the work is done already.
can a macro read the current type & width on a line?
If a macro can read the current type & width on a line, then changing the color of the line, while maintaining the current line weight and type, then I'd say a macro can do it.
That's because to change the color manually, you need to ensure you also maintain the current other line characteristics.
But I don't see how it can do that. I hope you can do so.
I can write VBA-code in Access fairly well, for Excel I'm a beginner and for Word I'm an absolute beginner. But I'm sure a macro can do it. It might be necessary to change the things that don't change into their old values, but that should be all.
Some don't like it, but the alternative to writing a macro is to do it manually. In this case you could make a new table in the right color, set the lines to the right thickness, then one by one copy/paste the contents. If it's not too big a table, it's a viable way to do it, maybe.
This May Help
To Change Cell Line Colours
This may help In existing cells containing your Word data or of just newly Cells
You may have to select a line or lines or a column or a batch of columns at start.
To colour the complete Cell block = Tool Bar = Table = Table Folder = Table Properties = button - Borders and Shading = - Automatic [use dropdown arrow] = Select your colour =
May have to customise to your requirements further by playing with under Settings the Icons - Non Box/All/Grid/Custom = ? [The centre preview box will show you the cell pattern]
To only change the colour of one cell line or a complete cell line = Select part or all of the Cell Line or Cell Block = Tool Bar = Table = Table Properties = button - Borders and Shading = Automatic [use dropdown arrow]? choose your colour? = under - Setting ? play with the icons - Non/Box/All/Grid/Custom =]
To further modify any of your the cells to your requirements use one of the 7 buttons around the Preview Box = -