+ Reply to Thread
Results 1 to 4 of 4

Post userform input into cell in worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    07-16-2008
    Location
    TO
    Posts
    18

    Post userform input into cell in worksheet

    Hi,

    I need a code where when I type a certain value into a Userform textbox, that value will appear in a particular cell on the worksheet. Also, when entering the value in the userform, is it possible to use one of the drop-down lists available in the worksheet. For example, if I have a drop down list called Valve_Type, can I use that same drop-down list in the userform. If so how? Any help with these problems would be greatly appreciated. Thanks.
    Last edited by sepandb; 07-25-2008 at 10:10 AM.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    Use a Combobox. Set the ControlSource property to your cell. Set the RowSource to your named range.

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

    Here is a code example to transfer the text from a TextBox on a UserForm to a Worksheet cell. Change the names in red to match what you want to use.
    Private Sub TextBox1_AfterUpdate()
        Worksheets("Sheet1").Range("A1") = TextBox1
    EndSub
    Sincerely,
    Leith Ross

  4. #4
    Registered User
    Join Date
    07-16-2008
    Location
    TO
    Posts
    18
    thanks for the help. it works.

    Now is there a way to use a drop down list on the userform textboxes to restrict invalid entries. I have a list in my worksheet called Valve_Type. Can I use that same list to creat a drop down list in my userform? thanks.

+ 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