Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2023, 12:28 PM
1Virginiagirl 1Virginiagirl is offline Unwanted frames when producing pdf Windows 10 Unwanted frames when producing pdf Office 2010
Novice
Unwanted frames when producing pdf
 
Join Date: Jun 2022
Posts: 2
1Virginiagirl is on a distinguished road
Default Unwanted frames when producing pdf


I'm having the same issue with frames: modify the Style, hit Format/Frames and "Remove Frame". Save. Update style to match selected. I can now "save as" and produce a PDF that doesn't have images in the place of the style I've modified; but if I go back to the Word document and revisit the style, the frames are there. I don't want to go through removing frames from every heading style (there are 9) every time I produce a PDF from it. Is there an option to turn these annoying frames off for the entire document or heading styles?

[Split by moderator from this related thread.]
Reply With Quote
  #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,140
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
  #3  
Old 06-12-2023, 07:00 PM
1Virginiagirl 1Virginiagirl is offline Unwanted frames when producing pdf Windows 10 Unwanted frames when producing pdf Office 2010
Novice
Unwanted frames when producing pdf
 
Join Date: Jun 2022
Posts: 2
1Virginiagirl is on a distinguished road
Default headings with frames

Unfortunately I can't. It's a work file and I can't share any part of it. I'd have to create another sample on my personal laptop.


I can say that I noticed it first looking at the PDF. The headings are numbered with a title. The numbered part looked fuzzy. When I clicked on the text part, the cursor acted like I was determining an insertion point. When I clicked on the numerical part, an image box selected. It took me awhile researching. Others had the same thing happen but didn't know what caused it. I stumbled on the frame thing. I noticed that I could modify the heading, remove the frame, update the heading to match the selection - went through this for 6 heading styles. I "saved as" a pdf and it worked - the image boxes were gone. Even though I saved the Word file after the PDF file, when I went back into the Word file and looked at the headings, the frames were back. It was just like another user on this site said - they come back - and there doesn't seem to be an option to completely turn them off.


Thanks for the macros though. They may come in handy. If you do think of a way to turn these frames off, I'm interested. Thank you.
Reply With Quote
  #4  
Old 06-12-2023, 07:00 PM
Guessed's Avatar
Guessed Guessed is offline Unwanted frames when producing pdf Windows 10 Unwanted frames when producing pdf Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

If the frames are coming back when you reopen the document then I would suspect you have set your attached template to 'refresh' the styles on open.

Have a look at your Templates and Add-ins dialog and confirm that you haven't set 'Automatically update document styles' to be turned on. You can either turn this off or modify the styles in the attached template to make sure they don't have frames on that style.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #5  
Old 06-13-2023, 08:57 AM
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,140
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

Quote:
Originally Posted by 1Virginiagirl View Post
Unfortunately I can't. It's a work file and I can't share any part of it. I'd have to create another sample on my personal laptop.

***

Thanks for the macros though. They may come in handy. If you do think of a way to turn these frames off, I'm interested. Thank you.
A macro is a way to turn them off. I suspect that Andrew is correct that the problem is the result of a setting to automatically update styles from the template.
We are not interested in the confidential information. Yes, you would be recreating the problem. You can do that on your personal laptop or on your work computer. Read the link I provided on how to do this.
Reply With Quote
Reply



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 10 02-09-2014 02:40 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 12:31 AM.


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