-
WSjweissmn
AskWoody LoungerOk. What you want is for Word NOT to create a numbered list if you do that.
In that case, go into the Word options, look for AutoCorrect, and look at the Autoformat As you Type tab or section. Uncheck the option to automatically create lists.
You can then do manual numbering of lists.
OR, if you want automatic numbering that follows your preferred formatting, you have to set up a list style. There is a button in the Home tab that looks like a single-level list. Click that button and create the list style as you want it. You can do this by selecting one of the standard list styles and changing it to match your needs. Then if Word lists don’t look the way you want, you can select the list (all of it) in the doc, and use that button to apply the list style you want.
-
WSjweissmn
AskWoody LoungerSeptember 24, 2010 at 4:01 am in reply to: Macro to open the Word 2010 UI to choose a docpr #1246548Yes, I put the Document Properties command on the QAT – but it only gives access to the standard properties, not the custom properties which is what I need.
I’ll go investigate the content control approach and think about the macro to a dropdown idea.
Thanks!
– Jessica
-
WSjweissmn
AskWoody LoungerSeptember 22, 2010 at 2:19 pm in reply to: Macro to open the Word 2010 UI to choose a docpr #1246089After more research, I’ve decided to use this inelegant approach:
Sub InsertADocPropertyField()
SendKeys “{d 3}”
Dialogs(wdDialogInsertField).Show
End SubSince it doesn’t have to run without a person at the keyboard, I don’t need error handling. And if the number of field names starting with D changes, I’ll still end up close enough to the right spot in the list of document properties with a lot fewer keypresses than I needed before.
Maybe the next version of Office will have a version of the toolbar button to insert a doc property that supports custom properties as well as the built-ins.
If anybody has a better idea for more elegant code, please let me know.
Thanks,
Jessica
-
WSjweissmn
AskWoody LoungerThanks. I knew there had to be something better than my brute force slogging available, but not where to look.
As you can guess, I don’t program much these days and learned years ago in a language that was highly procedural and didn’t do much smart string processing.
-
WSjweissmn
AskWoody LoungerThank you; I’ll try this out for the next long poem I work on.
I ended up doing an amateurish macro which applies the line numbers in the format required to the selection. Have to select each chapter separately, and assume that no chapter has more than 999 lines. The assumption is correct.
I couldn’t find a numeric format that displayed a space if there was no digit, rather than a 0 or nothing. Is there one that I didn’t find? If so, I could dispense with the ugly left padding case statement and padstring thing.
Sub addLineNumbers()
Dim oPrg As Paragraph
Dim padstring As String
Dim prgNum As Long ‘ the paragraph number
Dim numSpaces As Long ‘ the number of spaces leading, if there are any
padstring = ” ” ‘ single digit line numbers need two spaces left paddingFor Each oPrg In Selection.Range.Paragraphs
prgNum = prgNum + 1
numSpaces = 0
Select Case prgNum
Case 10 ‘ two-digit line numbers need one space left padding
padstring = ” ”
Case 100
padstring = “”
End SelectIf prgNum Mod 5 = 0 Then
If oPrg.Range.Characters(1) = ” ” Then
numSpaces = numSpaces + 1
While oPrg.Range.Characters(numSpaces + 1) = ” ”
numSpaces = numSpaces + 1
Wend
oPrg.Range.InsertBefore padstring & prgNum & String(numSpaces, ” “)
Else
oPrg.Range.InsertBefore padstring & prgNum & String(3, ” “)
End If
Else
oPrg.Range.InsertBefore ” ”
End IfNext
End Sub
– Jessica
-
WSjweissmn
AskWoody LoungerThanks. I always forget about the Object Browser.
Recreating the comment resets the date to the present one, of course. I’ve got the alternate method working. They have to select the new comment reference first, but it does check to make sure it is a usable one.
– Jessica
-
WSjweissmn
AskWoody LoungerThanks. I searched but didn’t find the Revisions property.
-
WSjweissmn
AskWoody LoungerGot it – it never occurred to me that Word would relate the selection to the position within the long string of characters that makes up each story. Obvious in retrospect of course.
Thanks yet again.
And my author, the test team, thank you too although they don’t know it.
– Jessica
-
WSjweissmn
AskWoody LoungerOctober 15, 2008 at 7:58 am in reply to: Word breaks table rows on hard line breaks (Word 2003) #1129219Thanks for confirming. I replace with “HardReturnXXX” in case I’m doing more than one replacement activity in a single document massaging session.
-
WSjweissmn
AskWoody LoungerThanks – of course this makes sense, but I am not sure what format the start and end positions get stored in. The Word object model is so convoluted.
Can you point me to an example of how the end position could be stored? It’s probably obvious to everybody but me.
– Jessica, still a novice.
-
WSjweissmn
AskWoody LoungerOctober 15, 2008 at 7:31 am in reply to: Word breaks table rows on hard line breaks (Word 2003) #1129214Sorry to be so confusing. I want to start a new row on the paragraph break (Enter, I guess – shows as a pilcrow) but NOT on the manual line break (shift-enter).
For the moment I am doing a text replace of all instances of SHIFT-ENTER to some unusual text, then doing the table conversion, then replacing the replacement text with the manual line break character.
Thanks,
Jessica
-
WSjweissmn
AskWoody LoungerAugust 4, 2008 at 4:44 am in reply to: Replace Refs to bookmark with Refs to doc property (Word 2003) #1119675Thanks. Who would have thought something so direct and simple would work?
The only catch is the cases where I inserted the REF fields as hyperlinks. The /h after the bookmark name doesn’t make sense for a document property.
So I need to go through and remove the /h switches first. I’ll go check to see if there are other instances of “/h” that need to stay. If not, I’ll use something similar to zap all of them, then rerun the macro you suggested.
-
WSjweissmn
AskWoody LoungerJuly 28, 2008 at 6:04 am in reply to: Detect text with character styles applied (Word 2003) #1118710Thanks, Stuart. And sorry about asking the same question in two places. My bad.
-
WSjweissmn
AskWoody LoungerJuly 28, 2008 at 5:59 am in reply to: Detect text with character styles applied (Word 2003) #1118707Right – I do want to find deviations that are NOT part of character styles; it’s okay for my authors to apply character styles, but not okay for them to do direct manual formatting.
So when I do the runthrough and check for cases where the text of a paragraph has different format than the style applied to the paragraph, I want to ignore the character styles. So once I find a chunk of text that has a format difference, I want to see if it is different because a character style is applied to it.
Unless, of course, a totally different approach would work better in Word 2003….
Thanks.
-
WSjweissmn
AskWoody LoungerJuly 25, 2008 at 4:57 am in reply to: Detect text with character styles applied (Word 2003) #1118485Hmm. I’m trying to find manual formatting in the doc. So if I find a paragraph in my main loop that looks for formatting in a paragraph that doesn’t match the official paragraph style for that paragraph, I could search for that character style in the suspect paragraph’s range. I could temporarily reset the found range to the base paragraph style, then test the paragraph again to see if it still has nonmatching font/bold. If it does, then check again for the character style…etc.
Am I barking up yet another wrong tree here?
Thanks.
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Downloads folder location
by
CWBillow
4 hours, 50 minutes ago -
Remove a User from Login screen
by
CWBillow
7 hours, 22 minutes ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
8 hours, 31 minutes ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
14 hours, 35 minutes ago -
Is it a bug or is it expected?
by
Susan Bradley
36 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
11 hours, 8 minutes ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
19 hours, 8 minutes ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
8 hours, 45 minutes ago -
Multiple Partitions?
by
CWBillow
9 hours, 24 minutes ago -
World Passkey Day 2025
by
Alex5723
1 day, 2 hours ago -
Add serial device in Windows 11
by
Theodore Dawson
1 day, 17 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
1 hour, 26 minutes ago -
Cached credentials is not a new bug
by
Susan Bradley
1 day, 22 hours ago -
Win11 24H4 Slow!
by
Bob Bible
1 day, 22 hours ago -
Microsoft hiking XBox prices starting today due to Trump’s tariffs
by
Alex5723
1 day, 19 hours ago -
Asus adds “movement sensor” to their Graphics cards
by
n0ads
2 days ago -
‘Minority Report’ coming to NYC
by
Alex5723
1 day, 21 hours ago -
Apple notifies new victims of spyware attacks across the world
by
Alex5723
2 days, 9 hours ago -
Tracking content block list GONE in Firefox 138
by
Bob99
2 days, 8 hours ago -
How do I migrate Password Managers
by
Rush2112
1 day, 16 hours ago -
Orb : how fast is my Internet connection
by
Alex5723
1 day, 18 hours ago -
Solid color background slows Windows 7 login
by
Alex5723
2 days, 21 hours ago -
Windows 11, version 24H2 might not download via Windows Server Updates Services
by
Alex5723
2 days, 19 hours ago -
Security fixes for Firefox
by
Susan Bradley
1 day, 20 hours ago -
Notice on termination of services of LG Mobile Phone Software Updates
by
Alex5723
3 days, 7 hours ago -
Update your Apple Devices Wormable Zero-Click Remote Code Execution in AirPlay..
by
Alex5723
3 days, 17 hours ago -
Amazon denies it had plans to be clear about consumer tariff costs
by
Alex5723
3 days, 8 hours ago -
Return of the brain dead FF sidebar
by
EricB
2 days, 19 hours ago -
Windows Settings Managed by your Organization
by
WSDavidO61
1 day, 22 hours ago -
Securing Laptop for Trustee Administrattor
by
PeachesP
1 day 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.