• WSjweissmn1

    WSjweissmn1

    @wsjweissmn1

    Viewing 15 replies - 61 through 75 (of 82 total)
    Author
    Replies
    • in reply to: VBA to set “Move object with text” #1310761

      This does seem to be specified by the ShapeRange.RelativeVerticalPosition property of the shape If you set it to wdRelativeVerticalPositionPage it stays positioned to the page. If you set it to wdRelativeVerticalPositionParagraph it moves with the text.

      I figured this out by recording macros that changed the “moves with text” box check for an existing shape, one that was set to move with the text and one that was not. The macros showed the settings for the ShapeRange property, and the only difference I could spot was in that property.

      So you loop through all the relevant shapes and set their ShapeRange.RelativeVerticalPosition to wdRelativeVerticalPositionParagraph.

      – Jessica

    • in reply to: Detecting whether a built-in style has been altered #1310353

      Andrew, no real point. I was trying to help out an acquaintance who wanted to make sure his clients were seeing the same thing he saw. He had forgotten about unchecking the “automatically update styles in the doc to match the template” box, so was frustrated.

      Then I got to wondering whether there was a way to do what he had asked (as opposed to meeting his need).

      As I suspected, there’s no way to tell…possibly because there’s really no use for that capability.

      Thanks,

      Jessica

    • in reply to: Set Word Manage Styles default properties programatically? #1309781

      Word has flaky areas? Shocking.

      I’m just going to tell my authors to disregard the Manage Styles default and be done with it. Maybe the next version of Word will fix that area…or just maybe they’ll fix multilevel list styles. I am holding my breath.

      – Jessica

    • in reply to: Set Word Manage Styles default properties programatically? #1309649

      Yes, I am referring to the one in the Manage Styles tab that includes paragraph formatting as well as font formatting.

      The link seems to work only one way in Word 2010, at least some of the time. None of the time does the link work via VBA.

      If I use, say, Selection.default.SetAsTemplateDefault to set the default font for a template, the default displayed in the Manage Styles Set Defaults tab does not change. The font for Normal style does change.

      Which gets us back to the original position. There seems to be no way to change the defaults shown in the Manage Styles tab via VBA.

      – Jessica

    • in reply to: Set Word Manage Styles default properties programatically? #1309310

      No, this is a different default. There is a default that is carried in the Normal style, which is the one that can be changed via your macro.

      However, there is a DIFFERENT place to see and set default formatting. To see it in Word 2007 or 2010, select Manage Styles on the styles panel. Click the Set Defaults tab. The defaults you can set there do not seem to be reflected in Normal style. They can be set for the template or the document.

      Either the interface is buggy, or this other default affects things like styles based on no style and the numbers for list styles.

      Thanks,

      Jessica

    • in reply to: Set Word Manage Styles default properties programatically? #1309088

      No, I’m not talking about that, with which I am familiar.

      This is the active default font formatting you can set in 2007 and up that, separately from the Normal style, is applied as the default to all text in a doc. To see it, go into the Font tab, open the actual Font window, set some characteristics, and click Default. THAT formatting is what I would like to be able to check and change programmatically.

      Thanks,

      Jessica

    • in reply to: Mingled outline numbering in Word 2007 #1304171

      You know what they tell programmers about explaining the problem to someone helping you find the solution?

      Well, I took a look at the multilevel list numbering definition stuff, and of course it can be done.

      I forgot that you can restart a numering sequence after any level, and you can show preliminary numbers from any prior level. There’s nothing to force the style levels to correspond directly to a one-dimensional hierarchy, and you can have two styles restart after the same level.

      Problem solved. The attachment shows the dialog box involved indicating the various nominal levels and a sample showing the numbering restarting at a level other than the one nominally up one in the hierarchy.

      Whew.

    • in reply to: Word 2010: Convert to PDF with selected bookmark levels #1301487

      On further research, it seems as though the fancy capabilities for selecting levels are part of PDFMaker, which is an Adobe add-in that is part of Acrobat The built-in facility in Word 2010 for PDF creation determines levels for you and does not let you select both headings and ordinary styles to become bookmarks as far as I can tell.

      So it’s a very recent version of Acrobat or a full-featured 3rd party solution.

    • in reply to: Word 2010: Convert to PDF with selected bookmark levels #1301483

      You can do this, but it is buried in the settings. I do not have 2010 available at the moment, so I am describing how it is done in 2003. There are very likely corresponding options in 2010’s PDF converter.

      Somewhere there will be a menu choice or button that gets you the Conversion Options or Settings or some such. The options you want are under Bookmarks. In 2003, open the Bookmarks Tab. You’ll see a list of headings with checkmarks and levels.

      Select the option to Convert Word Styles to Bookmarks.

      Check the headings you want to convert to bookmarks. The levels don’t look as though they can be changed, but they can. Click the number in the Level column for the heading level you want to change. A dropdown will appear. Set Heading 7 to Level 1. Then check the Picture style and make it Level 1.

      That should do it.

    • in reply to: Changing Cross Reference Appearance #1298906

      Here is a list of field codes for 2010: http://office.microsoft.com/en-us/word-help/field-codes-in-word-HA102110133.aspx?CTT=1#BM2

      Here is the Field Code reference for 2003: http://office.microsoft.com/en-us/word-help/CH006104723.aspx

      Not much changes between versions for fields, so these will probably be helpful to you.

      Finding stuff in Word’s help is an art rather than a science it seems.

      – Jessica

    • in reply to: Set ‘do not check spelling’ for some text in document #1298385

      I take it there are too many names for you to just add each one to the dictionary on first encounter? A surprisingly large number of common-in-the-US names are already there.

    • in reply to: Convert Field Codes (not results) to Text #1298242

      Make sure you put Dim aField as Field.

      If that doesn’t work I will get back to you in the morning.

    • in reply to: Convert Field Codes (not results) to Text #1298233

      Ok, try this.

      It probably won’t work for nested fields, and my ride is about to leave so I can’t do anything more with it. It also leaves field codes hidden. Turn ’em back on if you need to, or ditch the next-to-last line of the macro.
      Sub plopFieldCode()
      Dim MyString As String
      ActiveWindow.View.ShowFieldCodes = True
      For Each aField In ActiveDocument.Fields
      aField.Select
      MyString = “{ ” & Selection.Fields(1).Code.Text & ” }”
      Selection.Text = MyString
      Next aField
      ActiveWindow.View.ShowFieldCodes = False
      End Sub

    • in reply to: Convert Field Codes (not results) to Text #1298227

      Here is an inelegant macro that will pick up all field codes and copy them to another document. It doesn’t pick up the brackets on either end of the field code. You could probably do something to add them. Is this what you wanted, or did you want to have the code show in situ?

      Put this macro wherever you keep macros. Make sure the document you want to grab field codes from is the active document. Run the macro.

      Sub grabFieldCode()
      Dim MyString As String, FieldShowSetting As Boolean
      For Each aField In ActiveDocument.Fields
      aField.Select
      MyString = MyString & vbCr & Selection.Fields(1).Code.Text
      Next aField
      Documents.Add
      ActiveDocument.Content.InsertAfter MyString
      End Sub

    • in reply to: Style updating (Word 2010) #1296124

      Hmm. Is the “pgc” part in the path to the templates actually the same for all users? Or does that reflect your initials or something and actually should be different for each user?

      Just askin’

      – Jessica

    Viewing 15 replies - 61 through 75 (of 82 total)