Results 1 to 11 of 11
  1. #1
    5 Star Lounger
    Join Date
    Apr 2001
    Location
    Arriving Somewhere but not Here
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts

    table border styles

    In Word 97...

    Is there away to define a style that will apply a border to a table cell? I can create a style that sets font and paragraph settings (including bordering the paragraph, which I don't want) no problem but as yet no joy in setting up something like, say, a header style that puts a 1.5pt border on the top of the selected table cells.

    stuck

  2. #2
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,049
    Thanks
    124
    Thanked 119 Times in 116 Posts

    Re: table border styles

    Hi,

    There is no method built into Word that lets you do this. You might want to look at . For more on tables, you may also want to look at <A target="_blank" HREF=http://www.addbalance.com/usersguide/tables.htm> Tables in a Legal Environment.

    Hope this helps,
    Charles Kyle Kenyon
    Madison, Wisconsin

  3. #3
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: table border styles

    Hi stuck,

    Actually there is a way to do this as part of the style definition. Although I'm working at the moment on Word 2000 I've done this on Word 97 and it works the same:

    Create a new style that you will use specifically to put top borders in table cells.
    To add the top border to the style definition:
    Go to Format>Style.
    Click on Modify>Format and then Border.
    In the Borders and Shading dialog, make sure it says Applies to: Paragraph.
    Then just place a border by selecting the style, color and width of your choosing, and then clicking at the top of the preview diagram.
    Click OK, OK and Apply to work your way back out of the dialogs.

    You may not immediately see the top border on your screen (depending on the weight of the line you chose and your view settings), but if you go to Print Preview or print the page, you will see your border there.

    The ability to apply borders to table cells as properties of the paragraph, rather than the cell, appears to be little-documented, but actually has lots of potential applications.

    Gary

  4. #4
    5 Star Lounger
    Join Date
    Apr 2001
    Location
    Arriving Somewhere but not Here
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: table border styles

    Gary,

    I know of this method and it's NOT what I want. Your method applies a border to the paragraph. True, if the cell has no borders it *looks* as if you have bordered the cells but you can then get a double border effect by subsequently applying borders to the cell.

    stuck

  5. #5
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: table border styles

    Hi again,

    OK, fair enough - although I figure, if you now have a cell that "looks" like it has a border, why would you subsequently go and apply a border to the cell? :-)

    But getting back to your original posing of the problem - why do you pose the requirement as needing to apply the borders, via a style? If it's an ease of use issue (you want the style and cell border formatting applied in one go), then why not just create a macro that will apply a style as well as apply a cell border? You can put this macro on a button or menu item, or have it triggered by a key shortcut. Seems like this would achieve the result you need.

    Gary

  6. #6
    5 Star Lounger
    Join Date
    Apr 2001
    Location
    Arriving Somewhere but not Here
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: table border styles

    Gary,

    I wouldn't subsequently apply a border to the cell but years of experience warn me never to be surprised by what others can get up to with Word!

    It is an ease of use issue and so the macro to do both idea is my best bet. I just wondered if I was missing something in the style option.

    Thanks,

    (un)stuck

  7. #7
    Bronze Lounger IanWilson's Avatar
    Join Date
    Dec 2000
    Location
    Bristol, United Kingdom
    Posts
    1,523
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: table border styles

    Why not create a table that has exactly the borders you want and save it as an autotext entry? You could even create a button on the toolbar to insert it.

    Ian

  8. #8
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,049
    Thanks
    124
    Thanked 119 Times in 116 Posts

    Re: table border styles

    One followup point in case you are upgrading in the near future...

    According to what I've heard, Word XP does have table styles.
    Charles Kyle Kenyon
    Madison, Wisconsin

  9. #9
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: table border styles

    Hi stuck,

    As Ian suggested, autotext is probably the easiest way to go. I use that.

    Another approach, similar to autotext, would be to create the table as you want in a new document and then save it. You can then Insert | File to get the table.

    The disadvantage to both approaches is that you're actually getting a table with the number of rows/cols that you originally created. Not quite the flexibility of styles. But if Office XP truly has table styles, it's the first useful thing I've heard about Office XP as far as I'm concerned (well, maybe the 2nd or 3rd). Still not enough to run out and buy.

    Fred

  10. #10
    Star Lounger
    Join Date
    Jun 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: table border styles

    Hi

    There's always the wonderful selection. Just write a macro that selects the first row(column/whatever) and then applies border shading thus;

    With .Borders(wdBorderTop)
    .LineStyle = wdLineStyleSingle
    .LineWidth = wdLineWidth150pt
    .ColorIndex = wdAuto
    End With

  11. #11
    5 Star Lounger
    Join Date
    Apr 2001
    Location
    Arriving Somewhere but not Here
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: table border styles

    Ian,

    I like this Autotext idea, why didn't I think of it? <img src=/S/doh.gif border=0 alt=doh width=15 height=15>

    I could also use the AutoCorrect feature so that an appropriately formatted table row magically appears when I type something suitable.

    Thanks everyone, got enough to keep me busy for a while. <img src=/S/groovin.gif border=0 alt=groovin width=21 height=21>

    (un)stuck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •