Delete frames

  • Thread starter Eric van der Niet -- www.NoteTaker.nl
  • Start date
E

Eric van der Niet -- www.NoteTaker.nl

Hello,

What i want to do is delete all frames found in a certain word doc. but in
the order found, form the first line to the last etc. Not all at once, i can
do that. Is there a way in vba to do this???

---
With kind regards,

Eric van der Niet
Consultant
[email protected]
www.RealData.nl
www.NoteTaker.nl
 
C

Cindy M -WordMVP-

Hi Eric,
What i want to do is delete all frames found in a certain word doc. but in
the order found, form the first line to the last etc. Not all at once, i can
do that. Is there a way in vba to do this???
Dim lNumFrames as Long, lCounter as Long
Dim doc as Word.Document

set doc = ActiveDocument
lNumFrames = doc.Frames.count
For lCounter = 1 to lNumFrames
doc.Frames(lCounter).Delete
Next

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 :)
 
Top