• WSjweissmn1

    WSjweissmn1

    @wsjweissmn1

    Viewing 15 replies - 16 through 30 (of 82 total)
    Author
    Replies
    • The shapes collection in a Word document applies to the entire story (i.e. the main body or the headers and footers), and is not divided by pages. Pages don’t have a shapes collection. Shapes per se don’t have a page property either.

      What might work, and I don’t have time to test this, is to work with the Information property of the shape’s range.

      What you are going to have to do is iterate through the shapes in the document and select each one. Use the range.information(wdActiveEndPageNumber) property to determine the page that the shape is on. Cache that information. Then iterate until the page number changes. That shape is at the top of the page. To find the shape at the bottom of the page, iterate until the property changes, then back up one shape. That shape is at the bottom of a page.

      BUT there is a conceptual problem. Unless you are using hard page breaks, when you delete a shape you will probably change the page divisions. How will you handle that?

      Maybe someone else has a better solution.

      – Jessica

    • in reply to: Word 2010 default numbered list formatting #1363876

      You want to make a list style, I believe. Use the multilevel list button. Good instructions here:

      http://www.shaunakelly.com/word/numbering/numbering20072010.html

      – Jessica

    • in reply to: Recently used styles in 2010 #1363080

      Do you have the styles pane set to display Styles in Use, or All Styles, or what? The behavior of the pane in Word 2010 is less predictable (the polite way of saying it) than in previous versions. But you might want to play around with those settings, found under Manage Styles.

      – Jessica

    • in reply to: Need Macro for Parens #1359711

      Cool! Rerquires eyeballing by a human, but it does draw attention to the suspect paragraphs one by one. You could probably jigger a replacement for this line:

      For Each oPara In ActiveDocument.Paragraphs

      that worked with a section at a time, or some other range you want to check.

    • in reply to: completely reset footer in Word 2010 #1358044

      To update fields in the main body of the text, select it all and press F9. If what you want is in a footer, the easiest way to do it is to select the field and press F9. I have a macro someplace that updates all fields everywhere.

      For your second question, I pretty sure there is something else going on. There’s nothing inherent in quick parts that would do what you say. You could try inserting the same quick part in all sections.

      – Jessica

    • in reply to: Need Macro for Parens #1358018

      This is a very hard problem, mostly because it is difficult to define a mismatch unambiguously. Is a mismatch two right parens without a left paren anywhere in the intervening text? If so, what do you do about numbered lists (manually created) in this format: 1) 2) etc?

      In any case, after the first mismatch, every paren in the rest of the doc will look like a mismatch.

      If you’d be happy with a simple match check (ie when the macro encounters a left paren it looks for the next right paren and then checks for intervening left parens), that is doable. But I don’t think it would help much. You’d still have to look at each case individually, which you do just as well manually.

      Perhaps I am missing something obvious, and if there is such a macro I’d like to see the thinking behind it.

      – Jessica

    • in reply to: completely reset footer in Word 2010 #1358012

      If I understand what you are doing, you’re using a Styleref field to show the chapter number on each footer. You’re drawing the chapter number from a Heading style, I’d assume.

      Things to check:

      1) whether the chapter headings you are relying on actually ARE in the style you are referring to
      2) whether you have tracked changes in the doc, which will mess up the numbering

      To check the second possibility, save a copy of the file and accept all changes, then update the document fields. If the footers now look right, that was the problem and you just have to ignore it until you are done with tracked changes.

    • in reply to: creating formula in field for next Sunday #1351526

      I knew it was here somewhere, but searches didn’t turn it up and all the links elsewhere are to the old wopr location. Thanks for posting the direct link.

      For others following the link, the most current version of the tutorial is attached to a post on the last page of the post replies.

    • in reply to: Word 2007 insert square bracket before style numbering #1350263

      When you set up a multilevel list with the styles linked to heading numbers, you can insert fixed text before the numbers. I do that regularly to have step numbers that start with the word Step.

      The best instructions on setting up multilevel lists is here:

      http://www.shaunakelly.com/word/numbering/numbering20072010.html

      If you look at her Figure 5 (the Modify Multilevel List dialog), what you would do is in the Enter Formatting for Number box, put the cursor the the LEFT of the highlighted number that represents the numbering. Type a square bracket. It should show up before the number in that heading style.

    • in reply to: Word 2010 question #1350261

      Remember that for Word, a page is a fleeting and coincidental thing, dependent upon the printer selection and so on. If you look at the Word object model, page has essentially no place in it. PDFs by contrast are page-oriented.

    • As far as I know there is no way to do that. There may be sneaky ways to copy the dictionary files, but as for the others I think you’re out of luck.

    • in reply to: Word 2007 Template “Restart at 1” changes styles #1348906

      Thanks, Andrew. I finally fixed it (yesterday) by defining a multilevel list with my paragraph style attached to the first level of the list. There was some strange conflict between the paragraph indent settings in the paragraph style and the single-level buggy Word list style.

      In some cases (ie some documents based on the template with all this stuff defined) I have to reattach the pragraph style to the multilevel list. Mostly not.

      Word happens.

    • in reply to: Word 2007 Template “Restart at 1” changes styles #1348766

      No, I want Step 1 to look like all the others. By “outdented” I mean that the setting for hanging indent seems to disappear so the wrapped line starts at the left margin.

      All the other steps look the way I expect them to.

    • in reply to: Word 2007 Template “Restart at 1” changes styles #1348033

      I am shamelessly piggybacking on this, because I have the same symptom for a single-level numbered list. NOT an outline list. If this is a violation of the rules, oh ListWatchers, let me know and I will try again with a fresh topic.

      I have a style where the numbers say Step 1, Step 2, etc. The style is set up with the right indent so that the Step 1 is outdented and the rest of the paragraph nicely lines up with the text of the first line.

      Everything is fine unless I restart the numbering. When I do that, the STYLE IS ALTERED so that the Step x part is indented, and the rest of the paragraph is not indented. If I reapply the style, the numbering goes continuous again.

      Only happens in some documents.

      Any ideas?

    • in reply to: VBA to search for highlighted text – problem with Tables #1347192

      Something is screwy here. I tried your exact code in 2007, with a counter variable being incremented and a msgbox showing the counter replacing Do Something.

      It finds the first instance of highlighted text (not in a table but in a heading) twice. THEN it goes on. If the last highlighted text is in a table, all is well. If it is not, the code loops indefinitely. I realize this is the opposite of your experience.

      The only odd thing about the first chunk of text it finds is that it was highlighted in two separate operations. Perhaps Word stores the beginning and end of a highlighted chunk when you create the highlight.

      Also, you may be getting strange results if you click the OK button on the message box and then press F8 to step through the macro. If the F8 is caught by the Word doc, you end up extending the selection. If the F8 is caught by the macro interpreter all is well. You could avoid the problem by replacing the msgbox with something that displayed a message briefly then disappeared without user intervention.

      I hope some of this helps.

      – Jessica

    Viewing 15 replies - 16 through 30 (of 82 total)