MS Word: How to eliminate 'double' grid-lines in tables - Part 2
Category: Computers > Software
Asked by: rambler-ga
List Price: $8.00
01 May 2006 09:20 PDT
Expires: 31 May 2006 09:20 PDT
Question ID: 724397
A follow-up question to ID=724133: Q: how to eliminate double grid-lines in a table A: set CELLSPACING to zero. The given solution works manually but not within a macro. Manually, one is given a choice between decreasing the numeric value of spacing, or eliminating cell spacing altogether. When I record this in a macro, though, it appears that the macro can only decrease the numeric value of spacing; it cannot eliminate it altogether. I need a solution that will work in a macro.
Re: MS Word: How to eliminate 'double' grid-lines in tables - Part 2
Answered By: hammer-ga on 01 May 2006 10:06 PDT
Rambler, This property isn't exposed to VBA (and therefore to macros), but you can fake it. Once you have recorded your macro, you can manually add the following line to the code it creates: Selection.Tables(1).Spacing = -1 That should make your table look right. I found this technique at the Word MVP FAQ Site. Turning "Allow spacing between cells" off with VBA in a Word 2000 table http://word.mvps.org/FAQS/MacrosVBA/TableSpacingOff.htm I hope this works for you. I'm not sure how well you know Word, so if you need instructions on how to find and edit your macro code, please let me know. - Hammer Search Strategy --------------- word macro table "spacing between cells"
rated this answer:
and gave an additional tip of:
Just what I needed. Thank you.
|There are no comments at this time.|
If you feel that you have found inappropriate content, please let us know by emailing us at email@example.com with the question ID listed above. Thank you.
|Search Google Answers for|