Create a VBS file which prompts for information

Posted on 2008-11-07
Last Modified: 2012-08-13
I am wondering if anyone has some sample code or sample files on how to create a vbscript which can prompt a user to enter some information and then the vbscript could use those responses to perform some automated tasks.

Ideally, I would like to bring up a form where the user can select information using checkboxes and/or radio buttons. Then I could use some IF statements in a vbscript to perform some automated tasks based on the user's responses.

Thank you for your help!
Question by:bisselltechs
    LVL 46

    Expert Comment

    by:Wayne Taylor (webtubbs)
    Hi bisselltechs,

    You can't use Comboboxes or RadioButtons, but you can provide an InputBox, where the user can enter text....

        Dim s
        s = Inputbox("Enter something...")


    LVL 17

    Expert Comment

    by:Shanmuga Sundaram
    LVL 38

    Accepted Solution

    You can also use the MsgBox function which provides some basic button choices.

    For anything more complicated you might want to create an HTA.
    LVL 17

    Expert Comment

    by:Shanmuga Sundaram
    I forget to mention that you should use vbscript inside html
    LVL 65

    Expert Comment

    A HTA would probably suit best, but the more combination of options you need, to more complicated the logic of the page will get.....

    If you define some ideas of your options and logic, we can build a prototype for you...



    Author Closing Comment

    The two links at the bottom helped get me going in the right direction. Using those links I was able to create an HTA form that is working as intended.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
    This script will sweep a range of IP addresses (class c only, and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    760 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

    11 Experts available now in Live!

    Get 1:1 Help Now