-
WSjweissmn1
AskWoody LoungerAugust 20, 2012 at 3:22 pm in reply to: Word macro for Wildcard Find and Replace with Increment #1346310Thanks. that will certainly work.
What I had in mind and have finally found again is the VBA method ConvertNumbersToText. You can use it for a list object, a listformat object, or an entire document.
ActiveDocument.Lists(1).ConvertNumberstoText
for example. It will work from the Immediate window or from a macro.
-
WSjweissmn1
AskWoody LoungerAugust 20, 2012 at 10:40 am in reply to: Char styles not in the document Styles collection for 2007 #1346256Interesting and useful. But doesn’t solve my particular problem which has to do with char styles that show up ONLY in the Search box and are not related to the linked character styles discussed in much of the doc.
The description of 2007-specific char styles is the clearest I’ve seen.
Thanks!
-
WSjweissmn1
AskWoody LoungerUnder Word Options, Display, Printing options make sure that Print drawings created in Word is checked.
-
WSjweissmn1
AskWoody LoungerAugust 20, 2012 at 10:35 am in reply to: Word macro for Wildcard Find and Replace with Increment #1346252Another approach entirely would be to use a SEQ field with live numbering right up until the time you were done with the doc or at least done with putting in new requirements. At that point you could use the Word command that changes the numbering from live to fixed text (which exists but I don’t remember what it is called right at the moment).
-
WSjweissmn1
AskWoody LoungerAugust 8, 2012 at 7:44 am in reply to: Char styles not in the document Styles collection for 2007 #1344346Thanks. I don’t use format-to-style, and I have set the option to display only real styles in the styles pane.
What I am dealing with is char styles embedded in documents that originated in 2003 but are being edited in 2007.
The char styles are visible only when I do a search that includes a style specification.
The macro does not work to remove these styles. I can remove them only via the immediate pane, and even then there are some strange results. For example, if I remove a char style for certain built-in styles, I get a spurious error message but the style is removed anyway.
At this point I’m going to stop worrying about it, since even the most recalcitrant authors here have been forcibly moved away from using 2003.
Thanks again.
– Jessica
-
WSjweissmn1
AskWoody LoungerAugust 2, 2012 at 9:26 am in reply to: Char styles not in the document Styles collection for 2007 #1343600Not sure what I am supposed to pass to the first procedure – do I need to add a control or something?
In any case, I copied the code as is, ran it, and no char styles were deleted.
Has anybody run this code in Word 2007 and had it work?
– Jessica
-
WSjweissmn1
AskWoody LoungerJuly 31, 2012 at 7:34 am in reply to: Char styles not in the document Styles collection for 2007 #1343287Hi, Paul. I understand that the macro only creates TmpSty on purpose. However, before I ran this particular test of the macro I had a Body Text style but no Body Text Char style. After I ran the macro I had both Body Text and Body Text Char. Honest. It may have something to do with Body Text being the alphabetically-first linked style in the doc. Or it may not.
I’m going to consider this a Microsoft Word Version Change Mystery ™ and use Pam’s method.
-
WSjweissmn1
AskWoody LoungerJuly 30, 2012 at 1:01 pm in reply to: Char styles not in the document Styles collection for 2007 #1343136Ok, this is getting wierder. I created a new untouched Normal.dotx. It has no char styles in it. I ran your macro, copied and pasted.
It created, and I am NOT making this up, a style called Body Text Char.
I deleted that style using the Immediate window. I tried to search formatting with that style specified, and the style was not there.
I ran your macro again. Body Text Char was created again.
This is spooky.
-
WSjweissmn1
AskWoody LoungerJuly 30, 2012 at 12:16 pm in reply to: Char styles not in the document Styles collection for 2007 #1343131Hi again. I copied your code exactly. It still did not work; the char styles are still shown when I try to search with format matching a style, though they don’t show anywhere else in the UI, including the Organizer in the Templates and Add-ins dialog box.
Even after a Save As, the char styles still show up when I do a search including style in the formatting.
It’s slightly odd that the Styles.Add method uses the Name parameter where the parameter is now called NameLocal otherwise. And it is even odder that the Word 2007 help for the styles.add method onlytalks about HeadingStyle and not regular styles. I assume the latter is an error.
Thanks for your help.
– Jessica
Perhaps that listing is just some kind of phantom.
-
WSjweissmn1
AskWoody LoungerJuly 27, 2012 at 7:57 am in reply to: Char styles not in the document Styles collection for 2007 #1342717Good morning. I tried your code, and none of the Char styles were deleted. I tried removing the On Error line, and of course it then failed on the many styles where the oSty.Linked property was not available.
So I changed it to
If oSty.Type = wdStyleTypeLinked
which at least doesn’t cause an error and seems to be equivalent to your code.
Same result: char styles are still there. Iterating through activedocument.Styles doesn’t seem to pick them up.
Any other ideas?
Thanks,
Jessica
-
WSjweissmn1
AskWoody LoungerJuly 26, 2012 at 8:35 pm in reply to: Char styles not in the document Styles collection for 2007 #1342668Thanks. I tried something equivalent to your code and none of those linked char styles ever turned up as I iterated through activeDocument.Styles…or at least when I displayed each style.namelocal in the loop the Char styles didn’t appear, and the Char styles were not deleted.
I’ll try precisely this code when I am back at the office on Friday. I’m hoping that my code actually was’t equivalent and this will work.
– Jessica
-
WSjweissmn1
AskWoody LoungerJuly 26, 2012 at 1:03 pm in reply to: Office will not open files, says they’re encrypted or read only #1342578Have you looked at the permissions on the files? It may be that some inadvertent security setup change left her or you as not having permissions to open or change the files or the directory.
Also, does this happen when you open the files from within Word AND when you try to open them by right clicking?
– Jessica
-
WSjweissmn1
AskWoody LoungerIs there a way to get the source of this info to separate the contact names by tabs instead of commas? Otherwise I can see no solution since there is no way to tell the program which commas separate parts of a contact and which separate contacts from one another. It is fatally ambiguous.
-
WSjweissmn1
AskWoody LoungerMay 24, 2012 at 8:20 am in reply to: Selecting text in Word 2010 – why does the previous word get included? #1333906Word’s definition of a word is idiosyncratic, and varies for different purposes. Welcome to the wonderful world under the hood of Word.
-
WSjweissmn1
AskWoody LoungerMay 11, 2012 at 10:34 pm in reply to: How to set the Word Search default focus to “Browse results”? #1332324Right – that’s how I access it myself. The new find is useful if you like to see a big list that takes up a chunk of the screen. The old one is much more flexible.
![]() |
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
-
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
5 hours, 37 minutes ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
1 hour, 21 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
4 hours, 11 minutes ago -
Discover the Best AI Tools for Everything
by
Alex5723
4 hours, 20 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
5 hours, 3 minutes ago -
Rufus is available from the MSFT Store
by
PL1
2 hours, 32 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day, 5 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
11 hours, 48 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
7 hours, 59 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
1 day, 1 hour ago -
Office gets current release
by
Susan Bradley
1 day, 3 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
2 days, 17 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
2 days, 2 hours ago -
Stop the OneDrive defaults
by
CWBillow
2 days, 18 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
3 days, 4 hours ago -
X Suspends Encrypted DMs
by
Alex5723
3 days, 6 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
3 days, 7 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
3 days, 7 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
3 days, 8 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
2 days, 20 hours ago -
Enabling Secureboot
by
ITguy
3 days, 3 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
3 days, 16 hours ago -
No more rounded corners??
by
CWBillow
3 days, 12 hours ago -
Android 15 and IPV6
by
Win7and10
3 days, 1 hour ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
4 days, 4 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 days, 7 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
4 days, 1 hour ago -
Windows Update orchestration platform to update all software
by
Alex5723
4 days, 14 hours ago -
May preview updates
by
Susan Bradley
4 days, 1 hour ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
3 days, 17 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.