Reply
 
Thread Tools Display Modes
  #1   Report Post  
Tieu
 
Posts: n/a
Default how to remove form feed chars?

Hi,

There are page break/form feed chars (shape of a SQUARE) in a Word Document.
Can I remove them automatically using VBA? Also, how can I delete an entire
page using macro. Thanks in advance.





  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi Tieu,

There are page break/form feed chars (shape of a SQUARE) in a Word Document.
Can I remove them automatically using VBA? Also, how can I delete an entire
page using macro.

Can you explain where these characters may have come from? Are you able to
select one and delete it? (IOW, is your problem primarily getting rid of a
whole bunch of them, or are you literally unable to delete them?)

A macro to delete a page (off the top of my head, so there may be small typos
or syntax errors):

Sub DeletePage()
'Make sure the cursor is on the page
'then run the macro
ActiveDocument.Bookmarks("\page").Range.Select
Selection.Delete
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

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
Macro to update ToC in a form - I'm stuck! La La Lara Microsoft Word Help 7 February 24th 05 10:27 PM
Remove shading on "check boxes" in template form to prevent grey p Pletsmour Microsoft Word Help 1 January 26th 05 03:45 AM
How can I spellcheck the text entered into a locked form? Missy Microsoft Word Help 1 January 20th 05 05:20 PM
Table Gridlines in Word 2003 Form Linda L Tables 1 January 5th 05 10:52 PM
Word Templates Remove Timo Microsoft Word Help 3 December 21st 04 08:15 AM


All times are GMT +1. The time now is 01:49 PM.

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

About Us

"It's about Microsoft Word"