Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2007

Tip: Looking for answers? Try searching our database.

Table gridlines won't copy as formatted

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephen English - 04 Oct 2007 06:16 GMT
I have a document with a lot of tables in them and the user has formatted
them so that only the bottom border shows in most tables.

When I copy these tables to a new document (in code by selecting
document.range and copying and pasting), in some cases (but not all), all the
borders are showing rather than just the ones selected.

Is there a solution to this please?
Regards
Stephen English
Shauna Kelly - 04 Oct 2007 12:41 GMT
Hi Stephen

What Table style has been used for the table?

The default table style is Table Grid, which has borders. If you create a
table using that default style, it will have borders. If you then remove the
borders, and copy the table, it pastes with its default borders, rather than
the no
borders setting you gave it.

Try changing the style of the Table to be Table Normal and add or subtract
borders as required.

And for some discussion on the issue (where copying and pasting and using
AutoTexts results in the problem), see
http://groups.google.com/group/microsoft.public.word.tables/browse_frm/thread/fc
f4572ea93f76d8/70b553d09d56536#70b553d09d56536


But... having done that, if you're adding or removing borders in code, try
running the code to format the borders twice. I sometimes find that if a
table is based on Table Normal style, you need to run code twice to get the
borders to stick. I have no idea why.

Hope this helps.

Shauna Kelly.  Microsoft MVP.
http://www.shaunakelly.com/word

>I have a document with a lot of tables in them and the user has formatted
> them so that only the bottom border shows in most tables.
[quoted text clipped - 7 lines]
> Regards
> Stephen English
Stephen English - 05 Oct 2007 00:46 GMT
Hi Shauna
Thank you so much for that - yes that solved the problem - just have to fix
up all the tables now!
Cheers
Stephen

> Hi Stephen
>
[quoted text clipped - 34 lines]
> > Regards
> > Stephen English
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.