In Word 95 there use to be an option to remove all the frames from a
document. I can't find this feature in Word 2000 or Word XP. Is it still
there as at the moment I'm having to copy all the text out of a frame and
pasting it into a new document which takes ages!
Thanks
Mark
> ActiveDocument.Frames.Delete
>
> see http://www.gmayor.dsl.pipex.com/installing_macro.htm
--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
"MT" <post...@netware6.net> wrote in message
news:bdi365$904$1...@hercules.btinternet.com...
Thanks but using Ctrl+A and Ctrl+Q doesnt seem to do anything .. the frames
are still there. I have also pasted the line into a macro as per Graham's
instructions but that doesnt do anything either.
I still cant seem to work out how to delete all the frames in a document and
retain the text. I can delete frames individually losing the text within
them but thats it with Word 2000 and Word XP. As I said in my original post
I can do this with Word 95 but cant find the option to do it in the new
versions.
Thanks
Mark
"Suzanne S. Barnhill" <sbar...@mvps.org> wrote in message
news:OnC5R$OPDHA...@tk2msftngp13.phx.gbl...
--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
"MT" <post...@netware6.net> wrote in message
news:bdq0vq$28$1...@sparta.btinternet.com...
"Suzanne S. Barnhill" <sbar...@mvps.org> wrote in message
news:ORZsZzzP...@TK2MSFTNGP11.phx.gbl...
Do you remember how you did it in Word95? Usually, Word doesn't loose any
functionality in newer versions.
You might try the following macro:
Dim i As Integer
For i = 1 To ActiveDocument.Frames.Count
ActiveDocument.Frames(1).Range.Select
Selection.Cut
ActiveDocument.Frames(1).Delete
Selection.Paste
Next i
But since you said that Graham's macro did "nothing", I doubt you have
frames at all...
Klaus
Hi MT,
Do you perhaps mean a HTML frameset (Menu "Format > Frames")?
I don't think they were available in Word95, and have never used them.
You might try to open the HTML file as a text file and delete all the
<FRAMESET...> and <FRAME ...> tags; or you could copy/paste the contents of
the frames into a new document.
I know of no one-step method to get rid of them (while keeping the text),
though perhaps someone in a vba newsgroup could write a macro to do the
job.
Regards,
Klaus