View Single Post
 
Old 12-05-2021, 04:49 AM
stky stky is offline Windows 10 Office 2013
Advanced Beginner
 
Join Date: Apr 2021
Posts: 30
stky is on a distinguished road
Default Convert all Frames to Text

If the document contain 0 frames to skip otherwise need to convert frames. Is the code is correct.


Sub RemoveAllFramesInDoc()
Dim objFrame As Frame
Dim nFrame As Long

Application.ScreenUpdating = False

nFrame = ActiveDocument.Frames.Count


For Each objFrame In ActiveDocument.Frames
If nFrame = 0 Then
End If
objFrame.Delete
Next objFrame
Application.ScreenUpdating = True
End Sub
Reply With Quote