![]() |
|
#2
|
|||
|
|||
|
Can you attach a sample document with the problem? Also the resulting pdf?
Attach a Sample File Demonstrating the Problem - Here's How Brief answer is that there is no automatic method of removing Frames. However, once you have removed them from the style, they should stay off. I or someone else could certainly write a macro that removes frames from heading styles, but it would be nice to have a sample document with the problem to make sure the macro matches the problem. Here is a macro that deletes frames from built-in heading styles. It may mark those styles as in use, though. Code:
Sub FramesRemoveFromHeadingStyles()
' Charles Kenyon 2023-06-12
' Remove frames from built-in heading styles - may mark styles as "in-use in document, though"
' https://www.msofficeforums.com/175552-post2.html
'
Dim iCount As Long
For iCount = 1 To 9
With ActiveDocument.Styles(iCount)
.Frame.Delete
End With
Next iCount
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Preventing Word inserting unwanted frames around text | SueN | Word | 4 | 04-05-2023 08:28 PM |
Word 2010 saving doc to PDF producing some blank pages
|
normancamp | Word | 4 | 02-03-2017 01:31 AM |
| Word producing 2 PDFs on Output | bencox | Word | 0 | 01-06-2017 06:09 AM |
| Frames, Frames, Frames: How to eliminate them but keep the text? | Dakota | Word | 8 | 02-09-2014 01:07 AM |
| Weird problem - word docs are producing temp files that won't self delete | David92595 | Word | 0 | 07-07-2011 04:07 PM |