-
WSwcutler
AskWoody LoungerI found part of my problem, and it sort of works. The variable name was defined with as strCurrentDocument, but the ‘str’ prefix was missing when it was used. I had to put this code into a macro called AutoOpen. But from an intranet page, I get an error that says: Add method or property is not available because this document is in another application. Does someone know what’s required to make this work from a web page?
-
WSwcutler
AskWoody LoungerThat sounds like what I want, Karen, to base a new document on the template and close the template, but it gave me a blank new document. In file|new, when you base a document on a template, you get the text that was in the template. Can you or someone tell me what’s missing that would give me everything that I’d get via file | new? This is an urgent need at the moment, and I was very excited to see this solution. I hope someone can help make it work.
-
WSwcutler
AskWoody LoungerYou’re not talking about file|new, are you? You don’t see subfolders there after the first level.
-
WSwcutler
AskWoody LoungerThis isn’t really a reply, except to say if I were KT I’d still be crying at the unformat everything options. It’s way difficult to take a now-unformatted document that was full of formatting like tables and bulleted or numbered lists and then try to figure out what the original formatting was. You have to go through page by page with a printout of the original document in front of you, and even then, I hope to never have to put a large table back together.
I’d be trying to provide a conversion toolbar with some number of macros that would fix up the major problem areas, and let the users copy in the formatting. I’d want (as a user, I’m speaking) to be able to copy in at least whole chapters, then have a macro go through the document and stop at every style that isn’t in some approved style list and have the user change the style to an approved one. Maybe a macro could correct the numbering restart? Another one could reset the tabbing? I don’t even know if what I want is possible, but if any of you provide it, I’m certainly going to save it.
-
WSwcutler
AskWoody LoungerIf you insert the page number reference via Insert Cross-reference, does it work OK, or is that already how you’re inserting them? Are the page numbers done using heading numbers as the chapter numbers, using the regular page numbering that comes with Word?
-
WSwcutler
AskWoody LoungerI’m just going to describe one way to deal with the paging, picture positioning, and page reference. I don’t understand where you mean the columns to be, so I’m not including that in my reply.
At the end of the text before the picture, insert a section break, next page.
On the new page, insert your picture. Right click the picture, format picture, on the position tab, untick float over text. With the picture not selected, insert a bookmark, hidden. You have to name it.
Insert a section break on that page, next page.
Back on the first page, where you want the page number that the picture is on, insert field, pageref; under options, select the bookmark name.
-
WSwcutler
AskWoody LoungerHere are two ideas:
1. Use the form fields. Protect the document. On exit from the second field, run a macro to update all the fields and unprotect the document. Make sure the user never reprotects the document.
2. Use ASK fields. Use REF fields wherever the values go in the document. These don’t trigger a macro, however, as far as I know, so you’ll have to get the user to print preview to update the fields, or click a button that runs an update macro, or ignore them until the document is printed. -
WSwcutler
AskWoody LoungerThanks for posting that. I just wrote LoungeAdmin about having screwed up this thread – KT had sent a reply with that reference, and then sent a link to the same note, and then when I posted my reply, the earlier replies went missing.
-
WSwcutler
AskWoody LoungerI don’t know if what we used to do is something totally inadvisable or not, so FWIW:
We used heading levels 7 – 9 for three appendix levels, that look like
Appendix A
A.1
A.1.1
We have them look like that in the TOC, and the page numbers are A-1 through A-whatever, B-1 etc. We set up the heading7 style to say Appendix A. , and the heading8 style to have the A.1. In the page numbers, when the appendices start, you have to redefine the page numbers, to tell it that the chapter number starts with style heading7.We stopped using the prefix when some posting suggested that it was just a lot of extra work, and since the format is not that important for our documents, it finally got through to me that we could stop fiddling with those things if we didn’t use them.
-
WSwcutler
AskWoody LoungerI’m no VBA expert, but I probably got these from someone else. I’m attaching the macro that replaces the default text with what was just entered, one of the macros that goes to the next field, and the safe form lock, which someone else just posted recently.
Sub DefaultTextReplace()
‘
‘ DefaultTextReplace Macro
‘ Macro created 99/04/28 by wcutler’
Dim vNewDefault As Variant
Dim vCurrentFormField As Variant‘(get the current variable name)
vCurrentFormField = ActiveDocument.Range.Bookmarks(Selection.BookmarkID).Name
‘MsgBox vCurrentFormField
vNewDefault = ActiveDocument.FormFields(vCurrentFormField).ResultActiveDocument.FormFields(vCurrentFormField).TextInput.Default = vNewDefault
End Sub
——————————–
Sub GoToOnSitePara()
‘
‘ GoToOnSitePara Macro
‘ Macro created 99/04/13 by wcutler
‘
ActiveDocument.Bookmarks(“RES_ON_SITE_IND”).Select
End Sub
——————————
Sub SafeFormLock()
‘
‘ SafeFormLock Macro
‘ Macro created 99/04/14 by wcutler
‘
If ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, _
Password:=””, _
NoReset:=True
End IfEnd Sub
-
WSwcutler
AskWoody LoungerI understand you to be asking if you can show the location in the document where the fill-in field code is going to be used, so people understand better what’s being requested, and I don’t know how to do that. What I’ve done is use form fields, with the document protected. People tab through the document from field to field, so the fields are shown in context when people are filling them in. If the tabbing doesn’t automatically go to the correct next place (I can’t remember exactly why, would it have been if there are some REF fields, which get filled in automatically, so no need to stop there), I have a macro run on exit to go to the next field. When the users finish the fields, they unprotect the document and do other changes.
The caveat is that you have to provide a button to re-protect the document, else if you go into tools|protect document, all the fields will be reset to their defaults. It’s a Word feature. I have a macro run on exit from the fields to change the default to what they just entered, but that doesn’t work for all the fields (no doubt because I’m understanding what I’m doing somewhat imperfectly).
![]() |
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
-
No HP software folders
by
fpefpe
1 hour, 16 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
1 hour, 37 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 hour, 30 minutes ago -
Copilot, under the table
by
Will Fastie
3 hours, 15 minutes ago -
The Windows experience
by
Will Fastie
7 hours, 45 minutes ago -
A tale of two operating systems
by
Susan Bradley
55 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
13 hours, 4 minutes ago -
Where’s the cache today?
by
Up2you2
1 day, 4 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
21 hours, 10 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
1 hour, 36 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 5 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
1 day, 21 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
1 day, 21 hours ago -
regarding april update and may update
by
heybengbeng
1 day, 23 hours ago -
MS Passkey
by
pmruzicka
1 day, 1 hour ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 6 hours ago -
*Some settings are managed by your organization
by
rlowe44
1 day, 17 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 5 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 1 hour ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days, 10 hours ago -
AI slop
by
Susan Bradley
1 day, 4 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 11 hours ago -
Two blank icons
by
CR2
19 hours, 59 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
21 hours, 57 minutes ago -
End of 10
by
Alex5723
3 days, 23 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
2 days, 21 hours ago -
test post
by
gtd12345
4 days, 5 hours ago -
Privacy and the Real ID
by
Susan Bradley
3 days, 19 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 21 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
4 days, 9 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.