Solved

Script selection list (VBA/VBS rather than VB)

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help in WHSCRIPT 9 47
MS Access - Capture pressed key onclick 4 28
How to make an ADE file by code? 11 80
MsgBox 4 47
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

920 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

14 Experts available now in Live!

Get 1:1 Help Now