+ Reply to Thread
Results 1 to 5 of 5

Using a ListBox to enter data into specific cells help please!!!!!

  1. #1
    Registered User
    Join Date
    06-05-2014
    Posts
    3

    Using a ListBox to enter data into specific cells help please!!!!!

    I have coursework to do and I have hit a brick wall. I need a code that inputs data into certain cells when a selection is made from a ListBox.
    For example, In the ListBox I will have name of events, such as

    Girls swimming competition

    Boys swimming competition

    When I select Girls swimming competition I want the data I typed in the Textboxes to go into the cells which are part of the Girl swimming competition table on the sheet. Then when I select Boys swimming competition I want the data I typed in the Textboxes to go into the cells which are part of the boys swimming competition table on the sheet.
    Last edited by Wasim Iqbal; 06-07-2014 at 05:37 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Using a ListBox to enter data into specific cells help please!!!!!

    Post a sample workbook with an example of what you want to happen.
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

  3. #3
    Registered User
    Join Date
    06-05-2014
    Posts
    3

    Wink Re: Using a ListBox to enter data into specific cells help please!!!!!

    Quote Originally Posted by k64 View Post
    Post a sample workbook with an example of what you want to happen.
    I have managed to do it it is okay now. Thank you anyway!

  4. #4
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Using a ListBox to enter data into specific cells help please!!!!!

    Glad it worked out for you. Feel free to share what you did.

  5. #5
    Registered User
    Join Date
    06-05-2014
    Posts
    3

    Re: Using a ListBox to enter data into specific cells help please!!!!!

    Quote Originally Posted by k64 View Post
    Glad it worked out for you. Feel free to share what you did.
    If Me.ComboBoxName.Value = "Whatever" Then Worksheets("SheetName").Range("A1").Value = Me.SomeTextBoxName.Text
    End If

    I used this code to make my form enter data into certain cells based on combo box selection.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Enter Data from userform into cells starting from specific cell
    By jtemp57 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2014, 04:26 PM
  2. Replies: 3
    Last Post: 09-20-2013, 04:24 PM
  3. Enter the ListBox data to another sheet
    By Pyro Form in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-18-2012, 12:45 AM
  4. how to ingore cells or enter only specific cells as chart values?
    By evanamiesgalonski in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-03-2012, 06:55 AM
  5. how to ingore cells or enter only specific cells as chart values?
    By evanamiesgalonski in forum Excel General
    Replies: 0
    Last Post: 01-31-2012, 05:25 PM

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