![]() One or more that contain text, and one or more that contains graphics. If you get this, and I'm sure you do, then you will see that you would have to have your document divided up into two or more sections. ![]() Each section contains (whether you use them or not) 3 headers (first, even, primary) and 3 footers (first, even, primary). So the first big problem is there is no ready made way to say does this page (that doesn't exist) contain text or a shape.Įven if you could then you face the other problem that headers and footers are not determined by pages (which don't exist) but by sections which do. A Word document, before it is printed on the page or the screen by a print driver, really does have pages. What am I doing wrong this time? Is this another thing that looks easy but really is not.? When I run this code I get an error "Compile error: Method or Data member not found" and it's on the line that starts ".Headers." I hope I got the VBA tags correct this time. Footers(wdHeaderFooterPrimary).Range.Text = "" Headers(wdHeaderFooterPrimary).Range.Text = "" Sub Delete_HeadersAndFooters_From_Graphs()įor i = 1 To ![]() I thought I could do this by telling Word to look at each page for a shape, and if there's a shape then delete the header/footer text. I want to delete the text from the headers/footers on the pages which have graphs, while leaving them on the pages which have text. I have headers and footers on every page of the doc. On the pages which have graphs, the graph has been inserted into the page - they are objects/pictures/shapes, rather than text. ![]() I have a Word doc where some pages have text on them and some pages have graphs. I hope this is an easier question for you all! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |