Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-12-2023, 02:21 PM
Charles Kenyon Charles Kenyon is offline Unwanted frames when producing pdf Windows 11 Unwanted frames when producing pdf Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,601
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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
Instructions for Installing Macros from Forums or Websites by Graham Mayor, MVP
Reply With Quote
 



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
Unwanted frames when producing pdf 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

Other Forums: Access Forums

All times are GMT -7. The time now is 09:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft