Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
accdev accdev is offline
external usenet poster
 
Posts: 3
Default Remove lines after removing table

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   Report Post  
Posted to microsoft.public.word.tables
accdev accdev is offline
external usenet poster
 
Posts: 3
Default Remove lines after removing table

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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What causes Word to display/remove lines around table cells [email protected] New Users 1 December 28th 09 08:15 PM
How do I remove horizontal lines from inside table cells? TechAuthorNMK Tables 4 April 10th 09 08:09 AM
How to remove multiple empty lines in a table Francis4344 Tables 6 October 10th 07 09:40 AM
How do you remove lines in a table? Catherine Microsoft Word Help 2 March 29th 07 12:07 AM
Removing Blank Lines and End of Line Characters in a Word Table Dan Thorman Microsoft Word Help 1 September 11th 06 06:27 PM


All times are GMT +1. The time now is 09:25 AM.

Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"