Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2005

Tip: Looking for answers? Try searching our database.

Delete tables in the page footer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Senad Isanovic - 08 Apr 2005 10:45 GMT
I have two tables in the page footer and want to delete one of these,
depending on what optionbox in the form is selected
This code is not working so I need something similar.?

   ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
   Selection.GoTo What:=wdGoToBookmark, Name:="bSidfStrategic"
   With ActiveDocument.Bookmarks
       .DefaultSorting = wdSortByName
       .ShowHidden = False
   End With
   Selection.Tables(2).Select
   Selection.Tables(2).Select
   Selection.Tables(2).Delete
   Selection.Delete Unit:=wdCharacter, Count:=1
Helmut Weber - 08 Apr 2005 10:56 GMT
Hi Senad,

not much use in recording something like that.

Have a look at this example:

With ActiveDocument.Sections(1).Headers
(wdHeaderFooterPrimary).Range.Tables(1).Delete
End With

Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.