Solved

vb word table borders

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now