I don’t see any code in the document you attached…
![]() |
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 |
-
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, 9 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
-
Discover the Best AI Tools for Everything
by
Alex5723
7 hours, 41 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
2 hours, 27 minutes ago -
Rufus is available from the MSFT Store
by
PL1
18 hours, 39 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
20 hours, 49 minutes ago -
KB5061768 update for Intel vPro processor
by
drmark
3 hours, 13 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
19 hours ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
16 hours, 34 minutes ago -
Office gets current release
by
Susan Bradley
19 hours, 11 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
2 days, 9 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
1 day, 17 hours ago -
Stop the OneDrive defaults
by
CWBillow
2 days, 10 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
2 days, 20 hours ago -
X Suspends Encrypted DMs
by
Alex5723
2 days, 22 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
2 days, 22 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
2 days, 23 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
2 days, 23 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
2 days, 11 hours ago -
Enabling Secureboot
by
ITguy
2 days, 18 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
3 days, 7 hours ago -
No more rounded corners??
by
CWBillow
3 days, 3 hours ago -
Android 15 and IPV6
by
Win7and10
2 days, 17 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
3 days, 19 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
3 days, 22 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
3 days, 17 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
4 days, 6 hours ago -
May preview updates
by
Susan Bradley
3 days, 17 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
3 days, 8 hours ago -
Just got this pop-up page while browsing
by
Alex5723
3 days, 22 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
3 days, 19 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
2 days, 21 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
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.