[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Script selection list (VBA/VBS rather than VB)

Posted on 2004-04-14
4
Medium Priority
?
454 Views
Last Modified: 2012-06-27
I have some users that just can't seem to learn how to type. Typing in a value without a typo just isn't possible.

I need to be able to present them with a selection list (like in HTML? <SELECT / <OPTION and all that?) but I need to do it from a batch script. I can re-write in vbs or js or cscript or wscript or whatever. I do not have Visual Basic. This question is really about VBA/VBS rather than VB, but there doesn't seem to be a better place to post it.

I just can't believe that with all the neat things you can do in a script on an NT system, you can't find a way to pop up a list of options and let them click or arrow up and down to their selection.
0
Comment
Question by:JamesNewton
3 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 10830418
In VBA you can put a ListBox on a Form:

Private Sub UserForm_Initialize()
    ListBox1.AddItem "Choice 1"
    ListBox1.AddItem "Choice 2"
End Sub

Private Sub CommandButton1_Click()
    MsgBox ListBox1.Text
End Sub
0
 
LVL 2

Author Comment

by:JamesNewton
ID: 11122040
http://wizapp.sourceforge.net/ Does EXACTLY what I wanted. Refund points please?
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 11441013
PAQed, with points refunded (500)

Netminder
Site Admin
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month19 days, 5 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question