Solved

Script selection list (VBA/VBS rather than VB)

Posted on 2004-04-14
4
412 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
4 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

706 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now