-
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).
![]() |
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
-
Two March KB5053606 updates? (Awaiting moderation)
by
Adam
2 hours, 55 minutes ago -
Two March KB5053606 updates? (Awaiting moderation)
by
Adam
2 hours, 56 minutes ago -
Intel® Graphics/Sound Driver updates for 7th-10th Gen Intel® Core™ Processor
by
Alex5723
3 hours, 21 minutes ago -
Is there a comprehensve way to tranfer ALL current Edge Settings into a new Edge
by
Tex265
9 hours, 33 minutes ago -
Transferring ALL info/settings from current Firefox to new computer Firefox
by
Tex265
10 hours, 56 minutes ago -
DOGE Wants to Replace SSA 60 Million Line COBOL Codebase in Months
by
EyesOnWindows
5 hours, 42 minutes ago -
KB5051989 Usb printer Post Ipp
by
licencesti
9 hours, 55 minutes ago -
Removing bypassnro
by
Susan Bradley
30 minutes ago -
Up to 30 seconds to show “Recent Topics”
by
PL1
14 hours, 16 minutes ago -
Sound changes after upgrade from W11 23H2
by
WStaylorpsepa
16 hours ago -
Windows bug blocks BIOS updates for Lenovo ThinkPad laptops
by
Alex5723
19 hours, 3 minutes ago -
O&O Software – ‘World Backup Day’ Sale
by
unbob
15 hours, 23 minutes ago -
Still version 23H2?
by
WSbxcfilm
19 hours, 51 minutes ago -
Ubuntu 25.04 (Plucky Puffin) Beta released
by
Alex5723
1 day, 1 hour ago -
How to install App Store apps on an external SSD
by
Alex5723
1 day, 2 hours ago -
Where is Windows going?
by
Susan Bradley
16 hours, 58 minutes ago -
Installing Feature Update Windows 11 24H2
by
geekdom
1 day, 20 hours ago -
Windows 11 Insider Preview build 27823 released to Canary
by
joep517
1 day, 20 hours ago -
Windows 11 Hotpatch
by
Hackmuss
1 day, 3 hours ago -
System Guard service error still won’t be fixed
by
Susan Bradley
1 day, 21 hours ago -
Operation ForumTroll: APT attack with Google Chrome zero-day exploit chain
by
Alex5723
1 day, 15 hours ago -
Troy Hunt of HaveIBeenPwned Phished
by
Lars220
6 hours, 10 minutes ago -
Microsoft Windows security auditing Code 5061
by
mpw
2 days, 9 hours ago -
Can’t display images in incoming Outlook 365 emails
by
WScopwriter
1 day, 17 hours ago -
Windows 11 Insider Preview Build 26200.5510 early builds of 25H2
by
Alex5723
1 day, 18 hours ago -
0Patch : Micropatches released for SCF File NTLM Hash Disclosure Vulnerability
by
Alex5723
1 day, 18 hours ago -
Select multiple emails and they all open up!
by
CeeJay
3 days, 10 hours ago -
How to remove an update preview
by
Gunny
1 day, 13 hours ago -
Third party add ins reminder
by
Susan Bradley
20 hours, 24 minutes ago -
OTF, which backs Tor, Let’s Encrypt and more, sues to save its funding
by
Nibbled To Death By Ducks
3 days, 4 hours ago
Recent blog posts
- Removing bypassnro
- Where is Windows going?
- System Guard service error still won’t be fixed
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
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.