Solved

vb word table borders

Posted on 2006-10-23
4
520 Views
Last Modified: 2008-01-09
I have a vb app that creates a word application.
I am trying to get rid of the table borders, but they still show up.

How do I get rid of them?

This makes them gray instead of black

    wdTable.Borders(wdBorderTop).LineStyle = wdLineStyleNone
    wdTable.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
    wdTable.Borders(wdBorderLeft).LineStyle = wdLineStyleNone
    wdTable.Borders(wdBorderRight).LineStyle = wdLineStyleNone
    wdTable.Borders(wdBorderHorizontal).LineStyle = wdLineStyleNone
    wdTable.Borders(wdBorderVertical).LineStyle = wdLineStyleNone
0
Comment
Question by:jackjohnson44
  • 2
4 Comments
 
LVL 20

Accepted Solution

by:
hes earned 500 total points
ID: 17789553
Have you tried
With ActiveDocument.Tables(1)
   wdTable.Borders(wdBorderTop).LineStyle = wdLineStyleNone
    wdTable.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
    wdTable.Borders(wdBorderLeft).LineStyle = wdLineStyleNone
    wdTable.Borders(wdBorderRight).LineStyle = wdLineStyleNone
    wdTable.Borders(wdBorderHorizontal).LineStyle = wdLineStyleNone
    wdTable.Borders(wdBorderVertical).LineStyle = wdLineStyleNone
End With
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 17795488
may be you set the color to white

ie

wdTable.Borders(wdBorderTop).Color = wdColorWhite
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 17795495
wdTable.Borders(wdBorderTop).Color = wdColorWhite
    wdTable.Borders(wdBorderBottom).Color = wdColorWhite
    wdTable.Borders(wdBorderLeft).Color = wdColorWhite
    wdTable.Borders(wdBorderRight).Color = wdColorWhite
    wdTable.Borders(wdBorderHorizontal).Color = wdColorWhiteone
    wdTable.Borders(wdBorderVertical).Color = wdColorWhite

and don't set the line style
0
 

Author Comment

by:jackjohnson44
ID: 17795580
actually I just printed it out and they did not appear.
I think it is some sort of page markup or something.
Is there a way to turn off showing bookmarks and other things?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question