Solved

vb word table borders

Posted on 2006-10-23
4
518 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

776 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