I don’t see any code in the document you attached…
![]() |
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 |
-
VBA in Word Form (Word 2003)
Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » VBA in Word Form (Word 2003)
- This topic has 8 replies, 2 voices, and was last updated 18 years, 8 months ago.
Viewing 1 reply threadAuthorReplies-
WScreser
AskWoody LoungerAugust 29, 2006 at 8:32 pm #1026643Attempting to get a VBA script to run in a word form that adds text in a text field based on a choice in a drop down menu. I’ve attached the dot for you to reference. The script might add the text for exemplary but doesn’t recognize solidsustained or achieve or doesn’t achieve. What’s missing in the code?
Couldn’t attach code so placing in this post.
Sub Customer_Service_Rating()
‘
‘ Customer_Service_Rating Macro
‘ Macro recorded 8/23/2006 by corders
‘
If (lstDropDown1 = Exemplary) Then
Selection.GoTo Text102
Selection.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend
Selection.TypeText Text:= _
“You expertly handle difficult customer inquiries, questions, and complaints. You anticipate problems and take action to prevent them from escalating; consistently act on requests; provide solutions in a timely fashion; and follow through on customer requests. You make efforts to get customer feedback, and you consistently include customer perspective in your decision making. You are consistently clear, courteous, responsive, and professional in your communications with customers.”
Selection.GoTo (CSAddComment)
Else
If (lstDropDown1 = SolidSustained) Then
Selection.GoTo Text102
Selection.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend
Selection.TypeText Text:= _
“You are able to thoroughly address most customer inquiries, questions, complaints. You routinely act on requests and provide solutions in a timely fashion by following through on customer requests. You routinely consider customer feedback and perspective in your decision making. You are clear and courteous in your communications with customers.”
Selection.GoTo (CSAddComment)
Else
If (lstDropDown1 = Achieves) Then
Selection.GoTo Text102
Selection.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend
Selection.TypeText Text:= _
“You are able to address routine customer inquiries, questions, complaints. You usually act on requests and provide solutions in a timely fashion. You consider customer feedback and perspective in your decision making. You are usually clear and courteous in your communications with customers.”
Selection.GoTo (CSAddComment)
Else
If (lstDropDown1 = DoesNotAchieve) Then
Selection.GoTo Text102
Selection.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend
Selection.TypeText Text:= _
“You are not consistently able to address routine customer inquires, questions, and complaints, and you require ongoing assistance by management or your peers. You are inconsistent in acting on requests and/or providing solutions in a timely manner. You are inconsistent in considering customer feedback and perspective in your decision making. You are inconsistent in clarity and courtesy in your communications with customers.”
Selection.GoTo (CSAddComment)
End If
End If
End If
End IfEnd Sub
Thanks…
-
WSHansV
AskWoody Lounger -
WScreser
AskWoody LoungerAugust 30, 2006 at 11:45 am #1026731 -
WSHansV
AskWoody Lounger -
WScreser
AskWoody Lounger -
WSHansV
AskWoody LoungerAugust 30, 2006 at 12:42 pm #1026742See the attached document. I placed all form fields in a protected section (and removed the rest of the document for simplicity). One of the important points is that names are strings that must be surrounded with quotes. If you use a name without quotes, VBA thinks it is a VBA variable. And the macro must be executed when the user exits the dropdown, not when the user enters it (the user hasn’t changed the selection then).
-
WScreser
AskWoody Lounger
-
-
-
-
-
WScreser
AskWoody Lounger
Viewing 1 reply thread -

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
-
How to get into a manual setup screen in 2024 Outlook classic?
by
Tex265
30 minutes ago -
Linux : ARMO rootkit “Curing”
by
Alex5723
3 hours, 16 minutes ago -
Employee monitoring app leaks 21 million screenshots in real time
by
Alex5723
3 hours, 22 minutes ago -
Google AI is now hallucinating idioms
by
Alex5723
3 hours, 53 minutes ago -
april update
by
69800
4 hours, 25 minutes ago -
Windows 11 Insider Preview build 27842 released to Canary
by
joep517
4 hours, 48 minutes ago -
Quick Fix for Slowing File Explorer
by
Drcard:))
5 hours ago -
WuMgr not loading?
by
LHiggins
5 hours, 36 minutes ago -
Word crashes when accessing Help
by
CWBillow
8 hours, 41 minutes ago -
New Microsoft Nag — Danger! Danger! sign-in to your Microsoft Account
by
EricB
4 hours, 39 minutes ago -
Blank Inetpub folder
by
Susan Bradley
2 hours, 3 minutes ago -
Google : Extended Repair Program for Pixel 7a
by
Alex5723
15 hours, 11 minutes ago -
Updates seem to have broken Microsoft Edge
by
rebop2020
1 hour, 36 minutes ago -
Wait command?
by
CWBillow
8 hours, 27 minutes ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
21 hours, 49 minutes ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
1 day, 4 hours ago -
Windows 10 finally gets fix
by
Susan Bradley
1 day, 13 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
1 day, 14 hours ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
1 day, 9 hours ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
2 days, 3 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
2 days, 4 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
3 hours, 37 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
9 hours, 49 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
2 days, 15 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
2 days, 19 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
2 days, 19 hours ago -
Unable to eject external hard drives
by
Robertos42
1 day, 6 hours ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
17 hours, 57 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
15 hours, 51 minutes ago -
Synology limits hard drives
by
Susan Bradley
3 days, 23 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.