A family of Microsoft word processing software products for creating web, email, and print documents.
Text frames have their own collection called Frames. Try the following code:
Dim f As Frame
Dim objDoc As Document
Set objDoc = ActiveDocument
For Each f In objDoc.Frames
f.HeightRule = wdFrameAuto
f.WidthRule = wdFrameAuto
Next f