+ Reply to Thread
Results 1 to 5 of 5

User Input Box as Dropdown

  1. #1
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Exclamation User Input Box as Dropdown

    Good Morning All,
    I am currently automating a process where we pull reports off of different servers. Right now I have a user input box that asks them to enter the IP Address of the Server. I would like it to show up with a little drop down so they can select the server from the list instead of typing in the whole IP Address and also if possible in the Drop Down list I would like it to show the ServerName instead of the IP so people don't have to look up which server is which. For Example the servers are:

    IP Name
    123.456.789 ABC Server
    456.789.123 DEF Server
    789.123.456 GHI Server

    I would like the list to have the server name but when it goes to conect I need it to use the IP address.

    This is the current Input Box code I am using.

    Please Login or Register  to view this content.
    I assign variables.

    Please Login or Register  to view this content.
    I then have it check to ensure you are not already connected to that server. If the application is open it pulls the report. If it isn't it logs in using login password entered by user.
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: User Input Box as Dropdown

    Hello CJPHX,

    I would suggest using a ComboBox as it is both a text box and drop down combined. Before I could help you with this, you would need to post your workbook.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Re: User Input Box as Dropdown

    The work book is only one sheet for now. would you like me to just post the code form the macro that I am trying to do?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: User Input Box as Dropdown

    Hello CJPHX,

    I would rather see the workbook. There are many things that can effect writing code for a control. The workbook will help reduce questions and answers and insure the code is written properly.

  5. #5
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Re: User Input Box as Dropdown

    Here Is the workbook I am working in. The macro runs pulls my report and imports it into the CMS Data sheet.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1