-
mvpjjf
AskWoody PlusIf the suggestion from JoeP517 doesn’t work, you’ll have to edit the registry entries directly. In regedit.exe, open the key
HKEY_CLASSES_ROOTWord.Document.8shell
Under that key, go to …Editcommand and …Opencommand (and maybe …Printcommand and …Newcommand). In each of those locations, edit the value with the name (Default) to use the full path to the Word 2003 copy of WINWORD.EXE — that is, the one in the OFFICE11 folder instead of OFFICE14. -
mvpjjf
AskWoody PlusJuly 17, 2011 at 6:24 pm in reply to: Visibility of Word 2007 custom properties in windows explorer #1288735Apparently the Windows program group responsible for Windows Explorer has never gotten the message that the Office team changed the file format about 5 years ago. Explorer still doesn’t have any code that look inside the XML-based docx files and retrieve custom properties from it. Peter Jamieson summed it up pretty well in his post from 2009, and nothing has changed since then.
If you’re willing to use PowerShell (which comes with Windows Vista and Windows 7, and is available for download for Windows XP), you can use a script posted on the Hey Scripting Guy blog. Essentially, the script starts Word in an invisible window, uses it to open the document and grab the custom properties, and prints them in the PowerShell window. For general use, it would have to be modified to get the path and filename of the document you want to examine (the code in the post uses a hardcoded path and filename).
-
mvpjjf
AskWoody PlusJune 22, 2011 at 8:36 pm in reply to: Check to see if a DocVariable exists before running line of VBA code #1284734First, the literal answer to your question: No, there is nothing for the .Variables collection that works like the .Bookmarks.Exists() method.
Next, let’s distinguish between a document variable (a member of the .Variables collection) and a DocVariable field that displays the value of a document variable. The document variable itself exists only in the memory space of the document, not on the document surface, so it can’t be “within a bookmark”. Your bookmark probably contains a { DocVariable varProjCost } field. The field may exist without the corresponding document variable, and vice versa.
If a particular document variable doesn’t exist, then the only thing your code can do with it that won’t cause an error is to assign its value. If you need to do anything else when you aren’t sure whether or not the variable exists, then you need to provide an error trap — like this:
Code:Dim strVal As String ‘ … On Error Resume Next strVal = ActiveDocument.Variables(“varProjCost”).Value If Err.Number = 0 Then MsgBox strVal Else MsgBox “Variable varProjCost does not exist” End If On Error GoTo 0 ‘ reset error handler ‘ …
Last, there’s no harm in assigning a value to a document variable even if the DocVariable field that would display its value has been deleted from the document. It just means that there’s no display of the value, not that an error would occur.
-
mvpjjf
AskWoody PlusI keep my Facebook privacy set to deny permission to all applications, and I want it to stay that way.
After going to ISharedWhat and logging into Facebook, I was prompted to grant it permission to access my profile. That prompt included this text:
[INDENT]By clicking “Allow”, you will turn on platform applications and your “Info accessible through your friends” settings will be reset to their defaults. Learn about your privacy settings.
[/INDENT]Absolutely not! I’ll do without ISharedWhat — and all other apps — until Facebook removes this obnoxious requirement. -
mvpjjf
AskWoody PlusMay 7, 2011 at 5:07 pm in reply to: In Office 2007 How to make a Macro for Page number in footer. #1278563This kind of problem happens because the macro recorder is dumber than a box of rocks. (More on this subject at http://www.word.mvps.org/FAQs/MacrosVBA/ModifyRecordedMacro.htm.) The code that results from the steps you listed is
Code:Sub Macro1() ‘ ‘ Macro1 Macro ‘ ‘ WordBasic.ViewFooterOnly ActiveDocument.AttachedTemplate.BuildingBlockEntries(“Bold Numbers 3”). _ Insert Where:=Selection.Range, RichText:=True ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument End Sub
But the “Bold Numbers 3” building block isn’t in the ActiveDocument.AttachedTemplate (which is probably Normal.dotm). Instead, it’s in the Building Blocks.dotx template, which is why you’re told that the “requested member… doesn’t exist”.
The next wrinkle is that Word doesn’t load the Building Blocks.dotx template until you ask to insert a building block or to open the Building Blocks Organizer, in order to start up faster. In a macro, we can force the template to load by calling the command Templates.LoadBuildingBlocks. Once it’s loaded, that template is usually given the first slot in the templates list, but you can never quite be sure. The cure for that is to have a function to run through the templates looking for one named “Building Blocks”.
Finally, it isn’t necessary—in fact, it can be disruptive—to move the cursor into the footer in order to insert something there. The macro can insert the block into the footer without ever moving the cursor.
With all that, the code you need is this (see http://www.gmayor.com/installing_macro.htm if needed):
Code:Sub Macro2() Dim templateNum As Integer templateNum = GetBuildingBlocksTemplate If templateNum = 0 Then Templates.LoadBuildingBlocks templateNum = GetBuildingBlocksTemplate End If Templates(templateNum).BuildingBlockEntries(“Bold Numbers 3”).Insert _ Where:=ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range, _ RichText:=True End Sub Function GetBuildingBlocksTemplate() As Integer Dim i As Integer For i = 1 To Templates.Count If InStr(LCase(Templates(i).FullName), “building blocks”) Then GetBuildingBlocksTemplate = i Exit Function End If Next ‘ not present — return 0 GetBuildingBlocksTemplate = 0 End Function
-
mvpjjf
AskWoody PlusMarch 21, 2011 at 6:56 pm in reply to: Word 2003 –> Word 2010: Address Field [Filename with Path] #1272845The address control you’re looking for is available in the Customize Quick Access Toolbar dialog, under either All Commands or Commands Not in the Ribbon. The command name is “Document Location”.
-
mvpjjf
AskWoody PlusClick somewhere on the ribbon or the Quick Access Toolbar and choose Customize Ribbon. In the right-hand list in the Customize dialog, you should see the Add-Ins tab listed. If it’s there but unchecked, check it. If you want the Developer tab to appear, check that one too — it’s unchecked by default.
And no, it was never necessary to display the Developer tab in order to see the Add-Ins tab.
-
mvpjjf
AskWoody PlusThanks for that confirmation. Maybe one day Microsoft will recognize that we need one.
Probably the reason a Find All isn’t in VBA is that VBA also has never had any way to deal with discontiguous selections (the kind you can make with Ctrl and the mouse), which is what Find All would produce. The KB article here explains the few things that can be done. Every version since 2002 (including 2010) has made no changes in this area.
-
mvpjjf
AskWoody PlusJust to nail it down… in Word 2002,
Selection.TypeText String(65280, "a")
and anything smaller succeeds, but
Selection.TypeText String(65281, "a")
and anything larger fails.
-
mvpjjf
AskWoody PlusTo have such a date actually in the header, you would have to make every page a separate section. This has so many drawbacks that I’d never consider it seriously.
If you’re willing to put up with a textbox anchored in the text and placed in the header area, that might be doable. You could intercept the File/Print command with a macro that does a Dialogs(wdDialogFilePrint).Display, figures out which pages are to be printed, and inserts the current date in the textbox before saving and then printing.
The system is likely to be “twitchy”
but it might work. Does this document ever get edited? What happens if that editing causes the pagination to change? (The answer to this could affect where the textbox needs to be anchored.)
-
mvpjjf
AskWoody PlusOctober 10, 2001 at 1:32 am in reply to: Print certain pages in multi-section doc (Word 2000 SR1) #545968Your first guess was correct: If there are two sections containing pages numbered 1-10 or more, and you ask to print 1-10, then you will get 20 pages, 10 from each section.
-
mvpjjf
AskWoody PlusHow about making your own “ruler”? Use the line tool in the Drawing toolbar to draw a line across the page, a bit wider than the text column. I like a line weight of about 1.5 pts. In the Draw menu at the left end of the toolbar, open the Grid dialog and set the vertical grid to 12 pt (for reading 10 pt TNR text). Then you can just drag the line down the page.
-
mvpjjf
AskWoody PlusI’ll add my congratulations. There’s nothing quite as encouraging as getting the
thing to work!
In the spirit of continuing education, I’d also like to point out that figuring out what a macro does can be very difficult when all the lines are jammed up against the left margin. For a good example plus some great suggestions, see http://www.mvps.org/word/FAQs/MacrosVBA/MaintainableCode.htm. I’d like to see your macro reposted with proper indentation.
-
mvpjjf
AskWoody PlusI think this works in Word 97 and 2000, and for all the ways of closing a document. If you can find a situation where it doesn’t work, let me know.
Sub AutoClose() With ActiveDocument .ActiveWindow.View.Type = wdNormalView .Saved = False .Save End With End Sub
-
mvpjjf
AskWoody Plus3000+ fonts????
Anything much over 1000 installed fonts makes Windows crawl on its knees
and then fall over.
Mostly I see recommendations to keep it down around 250, using a font manager if necessary.
![]() |
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
-
Formatting of “Forward”ed e-mails
by
Scott Mills
19 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
44 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
9 hours, 44 minutes ago -
AI slop
by
Susan Bradley
8 hours, 55 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
11 hours, 1 minute ago -
Two blank icons
by
CR2
17 hours, 31 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
19 hours, 55 minutes ago -
End of 10
by
Alex5723
22 hours, 35 minutes ago -
End Of 10 : Move to Linux
by
Alex5723
23 hours, 5 minutes ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
19 hours, 33 minutes ago -
test post
by
gtd12345
1 day, 4 hours ago -
Privacy and the Real ID
by
Susan Bradley
18 hours, 44 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
10 hours, 50 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 8 hours ago -
Upgrading from Win 10
by
WSjcgc50
10 hours, 19 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
13 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days ago -
The story of Windows Longhorn
by
Cybertooth
1 day, 12 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 2 hours ago -
Are manuals extinct?
by
Susan Bradley
14 hours, 3 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
2 days, 11 hours ago -
Network Issue
by
Casey H
1 day, 22 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
2 days, 23 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 2 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 2 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 4 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 4 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
3 days, 11 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
3 hours, 33 minutes 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.