GUI Password/account code update

Posted on 2006-04-02
Last Modified: 2010-05-01
I have this code and I want to be able to add the password in the text box.

First Question:

Private Sub Command1_Click()
    If(Text1.Text <> "") Then
        Shell "NET USER " & Text1.Text & " A123@45b /domain"
    End If
End Sub

Basically I want to be able to type in any generic password.
Question by:CMILLER
    LVL 37

    Accepted Solution

    Private Sub Command1_Click()
        If(Text1.Text <> "" And Text2.Text <> "") Then
            Shell "NET USER " & Text1.Text & " " & Text2.Text & " /domain"
        End If
    End Sub

    Author Comment

    mgh mgharish,

    LVL 37

    Expert Comment

    by:Harisha M G
    You are welcome :)

    Thanks for the grade !

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
    The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
    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…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    755 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

    23 Experts available now in Live!

    Get 1:1 Help Now