Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.word.tables
|
|||
|
|||
![]()
I'm an amateur with Word vb. In Access 2003 I'm generating the content of a
Word doc that has been set up from a template. There is one table with current billing charges and another with temporary adjustments. If there are no adjustments I delete the adjustments table, but I also want to get rid of the 2 lines (header and detail) that the table took up. Here is some of the delete code: wrdobj.ActiveDocument.Tables(2).Delete. How do I get rid of the 2 lines? |
#2
![]()
Posted to microsoft.public.word.tables
|
|||
|
|||
![]()
I finally did something that worked. I had to play around with the Count
until it did exactly what I wanted. I created a bookmark just above the table. When there is a table I just delete it. wrdobj.ActiveDocument.Tables(3).Delete wrdobj.ActiveDocument.Bookmarks("G2").Select wrdobj.Selection.Delete Unit:=wdCharacter, Count:=6 "accdev" wrote: I'm an amateur with Word vb. In Access 2003 I'm generating the content of a Word doc that has been set up from a template. There is one table with current billing charges and another with temporary adjustments. If there are no adjustments I delete the adjustments table, but I also want to get rid of the 2 lines (header and detail) that the table took up. Here is some of the delete code: wrdobj.ActiveDocument.Tables(2).Delete. How do I get rid of the 2 lines? |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
What causes Word to display/remove lines around table cells | New Users | |||
How do I remove horizontal lines from inside table cells? | Tables | |||
How to remove multiple empty lines in a table | Tables | |||
How do you remove lines in a table? | Microsoft Word Help | |||
Removing Blank Lines and End of Line Characters in a Word Table | Microsoft Word Help |