-
WSAndrew77
AskWoody LoungerHi Diana,
Native OpenOffice format is the “.sxw” format (short for Star Office Writer). See the attached screenshot.
-
WSAndrew77
AskWoody LoungerAugust 24, 2005 at 2:40 am in reply to: Wildcards search excluding a specified character (Word97) #968345I don’t have a copy of Word 97 handy, but here’s the wildcard (make sure “use wildcards” is checked) pattern for what you want:
“” is “match X at the end of the word
HTH.
-
WSAndrew77
AskWoody LoungerSee post 458,340 for one method to detect formatting that is inconsistent with the Style.
-
WSAndrew77
AskWoody LoungerHi Lou,
I’ve got FrameMaker 5.5.6 on my machine, and it’s got filters going back to Word DOS 3.0. If you’d like, you can send me the document privately and I can send you back a file after importing, then saving back out in .doc format (Frame’s also got an export filter). andrewsavikas_AT_gmail.com.
Cheers,
-
WSAndrew77
AskWoody LoungerA slightly simpler way is to use the VBA Environ function:
MsgBox Environ("USERNAME")
-
WSAndrew77
AskWoody LoungerNot the speediest, but it works:
Sub FindTablesAndFiguresNotInFields() Dim doc As Document Dim para As Paragraph Dim wrd As Range Set doc = ActiveDocument For Each para In doc.Paragraphs With para.Range.Find .ClearFormatting .MatchCase = True .MatchWildcards = True .Text = "[TF][ableigur]{4,5}" If .Execute Then For Each wrd In para.Range.Words If Trim(wrd) = "Table" Or _ Trim(wrd) = "Figure" Then If wrd.Fields.count = 0 Then wrd.HighlightColorIndex = wdBrightGreen End If End If Next wrd End If End With Next para End Sub
-
WSAndrew77
AskWoody LoungerWord 2003 (pro) does support validation based on an arbitrary schema (W3C XML Schema), but not based on a DTD. You’d need to convert your DTD into a schema (check out http://thaiopensource.com/relaxng/trang.html%5B/url%5D for one such conversion tool).
I’m unclear what you mean by “styles” defined in the DTD. A DTD specifies semantic rules for placement of XML elements and attributes, but doesn’t include any information about how the content should be presented.
What does your XSLT stylesheet transform your XML into? Word 2003 also allows you to apply an XSLT stylesheet when saving a document.
Before getting too deep into using Word as an XML editor, I’d strongly suggest reading “Office 2003 XML” (http://”http://www.oreilly.com/catalog/officexml/) to get a firm background in how XML works in Word.
You’re not dreaming when you ask if this is possible, but it is difficult, and requires an advanced understanding of XML and its related technologies (Schemas, DTDs, XSLT, RELAX-NG, etc.).
Good luck!
-
WSAndrew77
AskWoody LoungerIt is possible to change the reviewer associated with a particular set of changes (or an individual change if you’re really adventurous) with a fairly simple RTF hack. See post 441718, or (shameless plug alert) Hack #41 in my book.
-
WSAndrew77
AskWoody LoungerSnag-It http://www.techsmith.com/default.asp%5B/url%5D is cheap ($30-40 depending where you buy it) and is worth every penny, and is one option.
If you’re really reluctant to spend money, then I’d suggest using GhostScript/GhostView, both free. That route, you can set up your page size, etc. in Word, then print to File. Then use GhostScript to convert the resulting PostScript file into a jpeg at 72, 300, or 600 dpi.
If you want to see a sample, post a Word doc and I’ll re-post as a jpeg after converting with GhostScript.
-
WSAndrew77
AskWoody LoungerHi Novice,
Unfortunately, I don’t currently have access to a machine with Word 2000 on it. If I can find one, I’ll poke around a bit, but I don’t remember much in the way of Diagram-related objects in the Word 2000 object model.
-
WSAndrew77
AskWoody LoungerThat macro was indeed written for Word 2003, and won’t work in Word 2000.
My apologies that that wasn’t clear in the text; I do plan to fix that when the book reprints.
-
WSAndrew77
AskWoody LoungerWhile there are some formatting protection features in Word 2003 (I don’t recall offhand if they’re in XP), they’re fairly useless. In Word 2003, the options are available from Tools->Protect Document.
Again, these restrictions are *very* easy to get around. If you truly want a rigid document, you’d probably need to explore Smart Documents and Schema-based document work, but those are only available in Word 2003, and require fairly sophisticated development work.
Personally, the way I handle style enforcement is in 3 steps: First, write some code that checks a document for added/missing styles, merely for inspection/reporting. Second, write some code that cycles through a document, identifying invalid styles and offering the user a choice of replacement styles. Third, intercept the common formatting buttons (bullets, numbering, indent, bold, italic) and apply your styles with them conditionally based on the selected text. Not foolproof, but workable.
-
WSAndrew77
AskWoody LoungerNo, mine is significantly faster than Steve’s, as it uses a less expensive test for the end-of-row condition.
-
WSAndrew77
AskWoody LoungerTry checking the revision type:
Sub AcceptAllDeletions() Dim rev As Revision For Each rev In ActiveDocument.Revisions If rev.Type = wdRevisionDelete Then rev.Accept Next rev End Sub
-
WSAndrew77
AskWoody LoungerTo pick up bookmarks within hidden text, you’d probably have to un-hide the text temporarily. As for refs to page numbers, are your page numbers in the footer? You may need to wrap another For..Each loop around the one that searches for fields to search every StoryRange so it’ll pick up those page fields.
Glad to hear the basic algorithm is sound — hope you get it working to your specs.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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
-
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 hours, 14 minutes ago -
W11 24H2 – Susan Bradley
by
G Pickerell
5 hours, 9 minutes ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 hours, 10 minutes ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
9 hours, 17 minutes ago -
I installed Windows 11 24H2
by
Will Fastie
12 minutes ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
8 hours, 36 minutes ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
1 hour, 27 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
16 hours, 51 minutes ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
1 hour, 3 minutes ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
1 hour, 18 minutes ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
1 day, 9 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
1 day, 18 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
20 hours, 44 minutes ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
1 day, 2 hours ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
1 day, 13 hours ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
3 days, 5 hours ago -
50 years and counting
by
Susan Bradley
3 hours, 28 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
6 hours, 17 minutes ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
3 days, 16 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
3 days, 16 hours ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
3 days, 16 hours ago -
OneNote and MS Word 365
by
CWBillow
3 days, 18 hours ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
3 days, 18 hours ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
3 days, 18 hours ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
1 day, 10 hours ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
4 days, 6 hours ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
4 days, 6 hours ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
4 days, 15 hours ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
4 days, 3 hours ago -
MS-DEFCON 2: Seven months and counting
by
Susan Bradley
3 days, 4 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.