Solved

vb word table borders

Posted on 2006-10-23
4
522 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Microsoft Access combo box help 2 57
vb6 connector to SQL Server 2 42
Getting warning: You are about to delete 1 row(s) 9 61
VBA Shell can't Find Word document 11 155
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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 process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

751 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