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 / Page Layout / June 2004

Tip: Looking for answers? Try searching our database.

Frames

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rob - 29 Jun 2004 18:27 GMT
Hi All - Is there a way to delete all frames in a word
document at once? My scanner OCR's text into Word, but
puts it into multiple frames. Any ideas?
Jay Freedman - 29 Jun 2004 19:46 GMT
> Hi All - Is there a way to delete all frames in a word
> document at once? My scanner OCR's text into Word, but
> puts it into multiple frames. Any ideas?

Hi Rob,

This little macro will remove all the frames...

Sub ZapFrames()
  ActiveDocument.Frames.Delete
End Sub

(See http://www.gmayor.com/installing_macro.htm if necessary.)

You may not be happy with the result, though. When the frame goes away, the
text that was in it gets deposited at the point where the frame's anchor
was. If that point is the beginning of the paragraph of regular text
immediately following the frame's position, all will be well -- but my
experience is that OCR programs tend to anchor all their frames at the top
left corner of the page. You could easily wind up with a lot of scrambled
eggs. :-(

Another possible complication is that the macro will delete only frames
whose anchors are in the main body of the document. If there are any frames
tucked into headers, footers, footnotes, or other "stories" (Word's term),
that will take a bit more effort.

Signature

Regards,
Jay Freedman
Microsoft Word MVP          FAQ: http://word.mvps.org

Rob - 29 Jun 2004 20:58 GMT
Thank you very much for this answer. This may complicate
things but i'm not a programmer. Where would I plug in
this script? Any help would be appreciated.

>-----Original Message-----
>> Hi All - Is there a way to delete all frames in a word
[quoted text clipped - 23 lines]
>tucked into headers, footers, footnotes, or other "stories" (Word's term),
>that will take a bit more effort.
Rob - 29 Jun 2004 21:10 GMT
Figured it out....Thanks!

>-----Original Message-----
>Thank you very much for this answer. This may complicate
[quoted text clipped - 40 lines]
>>
>.
 
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.