-
WSSME
AskWoody LoungerBINGO!!!!!
It’s always the small details that escape me. Thank you so much for all of your help Hans, and for your continuing patience.SME
-
WSSME
AskWoody LoungerI’m glad it worked for you but now I am really confused.
I will go back and triple check all the security settings and run a few more test. I must be missing something.
Thank you for all of your help. I hope you don’t feel as if I wasted your time. I’m glad to know the form worked for you. It must be user error on my part.Warm Regards,
SME -
WSSME
AskWoody LoungerI’m keeping my fingers crossed.
The macro buttons, 3 of them, are supposed to be right above “Client Confidential”. The buttons are 3 pictures. I also left the test button in and that should be to the right of the 3 pictures.Thank you,
Summer -
WSSME
AskWoody LoungerI took out the autotext and just put the text as you suggested. No change. Would it assist you if I attached the form? I’m not sure if the macro buttons would go with it though.
Thanks,
SME -
WSSME
AskWoody LoungerHi Hans,
You always seem to be around when I need help =).
I place the form in a shared folder and then log in to the computer using a different log in. I open the form from the shared folder (the warning comes up asking me to accept the macros and I say yes) and the macro buttons are completely gone.
Thank you,
SME -
WSSME
AskWoody LoungerHi Kim,
When I click the macro button it activates a macro that unprotects the form, performs the action and then reprotects the form. It works great on my own computer.
Thanks,
SME -
WSSME
AskWoody LoungerGood morning,
I made sure the auto text was attached to the document and then protected the document and saved it as a template. When I open the template and run the macro I get an error message that the auto text cannot be found. I unprotect the template and manually add in the macro and then reprotect the document. But when I go to resave the template I have to rename it and the auto text/macro does not follow.
Warm Regards,
Summer
-
WSSME
AskWoody LoungerAfter you said that it actually worked
.
But when I unprotect the template and then add the auto text and reprotect the template, I can’t resave the template without losing the auto text. Any Suggestions?
Warm Regards,
Summer
-
WSSME
AskWoody LoungerGood Afternoon,
Everything works perfectly, in document form. But when I save it to a template the AddTable macro/auto text gives me an error message. I think it’s because the auto text is saved to my Normal.dot and not the template. When I try to copy the auto text over to the template I get an error message “Cannot attach document to protected template” I can only assume it is referring to the normal.dot.
I tried recreating the form and the auto text, but I can’t get the auto text to save any where else but the normal.dot. I need everything to work in a template and for that template to be mobile.
Please tell me what I am doing wrong.
Warm Regards,
Summer
-
WSSME
AskWoody LoungerThank you both for your suggestions.
Hans, you were correct in your assumption that I did not have my Auto Text entry named “Add Page”.
I’m going to try and apply my new knowledge to the form and will post with an update.
Thank you!
Warm Regards,
Summer
-
WSSME
AskWoody LoungerHi Hans,
Great suggestion, but I don’t think I am implementing it properly because I am getting an error message:
Run Time Error 5941 The requested member of the collection does not exist. or
Run Time Error 5981 Cannot open macro storageMy add a page code now looks like this:
Sub add_page()
If ActiveDocument.ProtectionType wdNoProtection Then
ActiveDocument.Unprotect Password:=”summer”
End IfDim pass
Dim table_num As Integer
Dim i As IntegerWith ActiveDocument.Tables(table_num)
.Select
Selection.Fields.Update
End WithActiveDocument.AttachedTemplate.AutoTextEntries(“AddPage”).Insert _
Where:=Selection.Range, RichText:=TrueIf ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, _
NoReset:=True
End IfEnd Sub
I have saved the form as a document template. This is my first time working with Auto Text. Your guidance is appreciated.
-
WSSME
AskWoody LoungerThanks for responding Hans.
This form will be completed by members of my organization but the completed (printed) form will be forwarded to people outside the organization.
Warm Regards,
SME
-
WSSME
AskWoody LoungerOkay, I know what I did wrong: I was adding the code to the wrong area. Instead of adding the code to “This Document”, I was creating a new module and adding it there. I didn’t know you could add things to “This Document”. Boy, do I feel silly.
Thanks for all of your help.
SME
-
WSSME
AskWoody LoungerThank you for replying.
Yes, I have tried the above mentioned code and my Macro Security Settings are set to medium. If I open HansV’s example the window pops up…I just can’t get mine to do it.
I even got a book on VBA (So I wouldn’t post the “simple” questions) but I’m still getting stuck. I thought the VBA book would help me through some of the little stuff but it looks like Woody’s Lounge is still the best place for answers.SME
-
WSSME
AskWoody LoungerGood Afternoon,
I’m stuck again on the issue of having the UserForm pop up when the document is first opened. I was able to add all the fields and I can manually show the form. I compared my form to the tester form in this thread and I just can’t figure it out. Any help would be really, really great!
I’m on a time crunch (end of the day today). I even bought a “Mastering VBA” book to no avail.
Thank you,
SME
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Add shortcut to taskbar?
by
CWBillow
31 minutes ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
9 hours, 21 minutes ago -
How can I install Skype on Windows 7?
by
Help
8 hours, 3 minutes ago -
Logitech MK850 Keyboard issues
by
Rush2112
2 hours, 48 minutes ago -
We live in a simulation
by
Alex5723
23 hours, 28 minutes ago -
Netplwiz not working
by
RetiredGeek
10 hours, 3 minutes ago -
Windows 11 24H2 is broadly available
by
Alex5723
1 day, 11 hours ago -
Microsoft is killing Authenticator
by
Alex5723
19 hours, 25 minutes ago -
Downloads folder location
by
CWBillow
1 day, 18 hours ago -
Remove a User from Login screen
by
CWBillow
13 hours, 58 minutes ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
1 day, 9 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
1 day, 9 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
1 day, 14 hours ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
1 day, 8 hours ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
8 hours, 6 minutes ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
1 day, 22 hours ago -
Multiple Partitions?
by
CWBillow
1 day, 22 hours ago -
World Passkey Day 2025
by
Alex5723
2 days, 16 hours ago -
Add serial device in Windows 11
by
Theodore Dawson
3 days, 7 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
1 day, 8 hours ago -
Cached credentials is not a new bug
by
Susan Bradley
3 days, 12 hours ago -
Win11 24H4 Slow!
by
Bob Bible
3 days, 12 hours ago -
Microsoft hiking XBox prices starting today due to Trump’s tariffs
by
Alex5723
3 days, 9 hours ago -
Asus adds “movement sensor” to their Graphics cards
by
n0ads
3 days, 14 hours ago -
‘Minority Report’ coming to NYC
by
Alex5723
3 days, 10 hours ago -
Apple notifies new victims of spyware attacks across the world
by
Alex5723
3 days, 23 hours ago -
Tracking content block list GONE in Firefox 138
by
Bob99
3 days, 22 hours ago -
How do I migrate Password Managers
by
Rush2112
3 days, 6 hours ago -
Orb : how fast is my Internet connection
by
Alex5723
3 days, 8 hours ago -
Solid color background slows Windows 7 login
by
Alex5723
4 days, 10 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.