-
WSjweissmn1
AskWoody LoungerThis 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
-
WSjweissmn1
AskWoody LoungerDecember 12, 2011 at 11:47 am in reply to: Detecting whether a built-in style has been altered #1310353Andrew, 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
-
WSjweissmn1
AskWoody LoungerDecember 8, 2011 at 12:34 pm in reply to: Set Word Manage Styles default properties programatically? #1309781Word 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
-
WSjweissmn1
AskWoody LoungerDecember 8, 2011 at 7:26 am in reply to: Set Word Manage Styles default properties programatically? #1309649Yes, 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
-
WSjweissmn1
AskWoody LoungerDecember 5, 2011 at 9:41 am in reply to: Set Word Manage Styles default properties programatically? #1309310No, 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
-
WSjweissmn1
AskWoody LoungerDecember 3, 2011 at 4:14 am in reply to: Set Word Manage Styles default properties programatically? #1309088No, 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
-
WSjweissmn1
AskWoody LoungerYou 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.
-
WSjweissmn1
AskWoody LoungerOctober 11, 2011 at 8:47 am in reply to: Word 2010: Convert to PDF with selected bookmark levels #1301487On 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.
-
WSjweissmn1
AskWoody LoungerOctober 11, 2011 at 8:13 am in reply to: Word 2010: Convert to PDF with selected bookmark levels #1301483You 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.
-
WSjweissmn1
AskWoody LoungerHere 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
-
WSjweissmn1
AskWoody LoungerSeptember 15, 2011 at 9:02 am in reply to: Set ‘do not check spelling’ for some text in document #1298385I 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.
-
WSjweissmn1
AskWoody LoungerMake sure you put Dim aField as Field.
If that doesn’t work I will get back to you in the morning.
-
WSjweissmn1
AskWoody LoungerOk, 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 -
WSjweissmn1
AskWoody LoungerHere 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 -
WSjweissmn1
AskWoody LoungerHmm. 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
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
2 hours, 42 minutes ago -
Firefox 139
by
Charlie
1 hour, 58 minutes ago -
Who knows what?
by
Will Fastie
28 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
19 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
12 hours, 35 minutes ago -
Misbehaving devices
by
Susan Bradley
2 hours, 27 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
1 day, 6 hours ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
1 hour, 36 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
1 day, 4 hours ago -
Discover the Best AI Tools for Everything
by
Alex5723
4 hours, 1 minute ago -
Edge Seems To Be Gaining Weight
by
bbearren
19 hours, 6 minutes ago -
Rufus is available from the MSFT Store
by
PL1
1 day, 3 hours ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
2 days, 5 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
5 hours, 48 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
4 hours, 31 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
2 days, 1 hour ago -
Office gets current release
by
Susan Bradley
2 days, 4 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
3 days, 18 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
3 days, 2 hours ago -
Stop the OneDrive defaults
by
CWBillow
3 days, 19 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
4 days, 5 hours ago -
X Suspends Encrypted DMs
by
Alex5723
4 days, 7 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
4 days, 7 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
4 days, 8 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
4 days, 8 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
3 days, 21 hours ago -
Enabling Secureboot
by
ITguy
4 days, 4 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
4 days, 16 hours ago -
No more rounded corners??
by
CWBillow
4 days, 12 hours ago -
Android 15 and IPV6
by
Win7and10
4 days, 2 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.