-
WSjweissmn1
AskWoody LoungerSeptember 24, 2013 at 6:49 pm in reply to: MS word 2010 macro How to select all shapes on a specific page #1414195The 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
-
WSjweissmn1
AskWoody LoungerYou 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
-
WSjweissmn1
AskWoody LoungerDo 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
-
WSjweissmn1
AskWoody LoungerCool! 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.
-
WSjweissmn1
AskWoody LoungerTo 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
-
WSjweissmn1
AskWoody LoungerThis 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
-
WSjweissmn1
AskWoody LoungerIf 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 numberingTo 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.
-
WSjweissmn1
AskWoody LoungerI 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.
-
WSjweissmn1
AskWoody LoungerSeptember 25, 2012 at 9:32 am in reply to: Word 2007 insert square bracket before style numbering #1350263When 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.
-
WSjweissmn1
AskWoody LoungerRemember 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.
-
WSjweissmn1
AskWoody LoungerSeptember 25, 2012 at 9:21 am in reply to: Importing customization from Word 2003 on Windows to Word for Mac 2011 #1350260As 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.
-
WSjweissmn1
AskWoody LoungerSeptember 13, 2012 at 11:23 am in reply to: Word 2007 Template “Restart at 1” changes styles #1348906Thanks, 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.
-
WSjweissmn1
AskWoody LoungerSeptember 11, 2012 at 9:09 am in reply to: Word 2007 Template “Restart at 1” changes styles #1348766No, 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.
-
WSjweissmn1
AskWoody LoungerI 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?
-
WSjweissmn1
AskWoody LoungerAugust 27, 2012 at 10:04 am in reply to: VBA to search for highlighted text – problem with Tables #1347192Something 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
![]() |
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
-
My Simple Word 2010 Macro Is Not Working (Awaiting moderation)
by
mbennett555
7 hours, 29 minutes ago -
Office gets current release
by
Susan Bradley
12 hours, 13 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
1 day, 4 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
13 hours, 16 minutes ago -
Stop the OneDrive defaults
by
CWBillow
1 day, 5 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
1 day, 15 hours ago -
X Suspends Encrypted DMs
by
Alex5723
1 day, 17 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
1 day, 17 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
1 day, 18 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
1 day, 19 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
1 day, 7 hours ago -
Enabling Secureboot
by
ITguy
1 day, 14 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
2 days, 3 hours ago -
No more rounded corners??
by
CWBillow
1 day, 22 hours ago -
Android 15 and IPV6
by
Win7and10
1 day, 12 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
2 days, 15 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
2 days, 18 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
2 days, 12 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
3 days, 1 hour ago -
May preview updates
by
Susan Bradley
2 days, 12 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
2 days, 4 hours ago -
Just got this pop-up page while browsing
by
Alex5723
2 days, 17 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
2 days, 14 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
1 day, 16 hours ago -
At last – installation of 24H2
by
Botswana12
3 days, 17 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
14 hours, 45 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
4 days, 5 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
2 days, 3 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
4 days, 18 hours ago -
Another test post
by
gtd12345
4 days, 18 hours ago
Recent blog posts
Key Links
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.