Solved

vb word table borders

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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…
Suggested Courses
Course of the Month9 days, 1 hour left to enroll

617 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