Results 1 to 2 of 2

Enter text value into next availble cell in range if user selects correct answer

Threaded View

jerbaldw Enter text value into next... 10-17-2012, 04:18 PM
jerbaldw Re: Enter text value into... 10-18-2012, 10:24 AM
  1. #1
    Registered User
    Join Date
    09-06-2012
    Location
    Denver, co
    MS-Off Ver
    Excel 2010
    Posts
    4

    Enter text value into next availble cell in range if user selects correct answer

    From Sheet1, user selects value from comboboxs, if users selection is correct then on another sheet in a specific range (H1:H8) a specific text is inputed into the first availble blank cell in that range. If all cells are filled then MsgBox"Please check your work for errors". I'm having trouble with three things.

    1. How to stop loop if all cells are filled in the range.
    2. How to use the code to prompt MsgBox if that range is full
    3. How to enter the specificed TEXT values into the range on the worksheet. It just selects the cell.

    I have included some sample code of what I'm using and three (out of 7) combobox examples. I just used combobox names vs cell to keep it clear. Thanks!



    Dim wsNIGO As Worksheet
    Dim wbBook As Workbook
    
    Set wbBook = ActiveWorkbook
    Set wsNIGO = wbBook.Worksheets("NIGO INFO")
    
    If combobox1.Value = "No" Then
    wsNigo.Range("C5").Select
    Do Until ActiveCell.Value = ""
    ActiveCell.Offset(1, 0).Value="Termination Date"
    Loop
    
    If combobox2.Value = "No" Then
    wsNigo.Range("C5").Select
    Do Until ActiveCell.Value = ""
    ActiveCell.Offset(1, 0).Text="Forms"
    Loop
    
    
    If combobox3.Value = "New Bank" Then
    wsNigo.Range("C5").Select
    Do Until ActiveCell.Value = ""
    ActiveCell.Offset(1, 0).Text="Vesting"
    Loop
    
    
    
    .....

    Moderator Edit:

    Welcome to the forum, jerbaldw.

    Please notice that [CODE] tags have been added to your post. The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at the top of the page and read Rule #3.
    Thanks.
    Last edited by Cutter; 10-17-2012 at 08:01 PM. Reason: Added code tags

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