+ Reply to Thread
Results 1 to 5 of 5

User form to display adjacent cell value and move to next blank cell

  1. #1
    Registered User
    Join Date
    09-20-2008
    Location
    Oklahoma
    Posts
    5

    User form to display adjacent cell value and move to next blank cell

    Hello,

    I'm looking to create a user form to quickly enter information into a spreadsheet. I'm new to Excel forms and have searched, but can't seem to find examples of what I'm looking for.

    I've tried to keep this example simple. In short, I would like to be able to call a form from any tab inside a workbook, then based on the cell I choose enter information in the empty cells below it. I think the process would work as detailed below;

    User will select a specific cell (D6)
    User will call UserFormA
    UserFormA will move to the first empty cell below specified cell (D8)
    Display Value in Cell (B8) in TxtBoxA
    If ChkBoxA is true then (D8)=1 else (D8)=0
    If ChkBoxB is true then (E8)=1 else (E8)=0
    If ChkBoxC is true then (F8)=1 else (F8)=0
    When CmdButtonA is pressed apply Values to cells D8, E8, and F8
    Move to Next Empty Cell (D9)
    Display Value in Cell (B9) in TxtBoxCurrName
    If ChkBoxA is true then (D9)=1 else (D9)=0
    If ChkBoxB is true then (E9)=1 else (E9)=0
    If ChkBoxC is true then (F9)=1 else (F9)=0
    When CmdButtonA is pressed apply Values to cells D9, E9, and F9
    Move to Next Empty Cell (D10)
    Repeat until UserFormA closed

    Thank you for taking the time to look this over.

    JJ
    Last edited by VBA Noob; 09-21-2008 at 11:44 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485
    Check this out on how to create a userform
    http://www.contextures.com/xlUserForm01.html
    Once you have a workbook with a userform, please write back if you need help with code, and maybe supply a workbook as well

  3. #3
    Registered User
    Join Date
    09-20-2008
    Location
    Oklahoma
    Posts
    5

    Red face File attached

    Dave,

    I've attached an example of what I was describing. I know it's simple, but I figured learning from a simple example was the best way to use the board.

    The code is really what I need help on.

    Thanks again for your help.

    JJ
    Attached Files Attached Files
    Last edited by Ketel; 09-21-2008 at 02:43 PM.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    This is homework so here's some suggestions

    You have merged cells, this will make your coding more difficult. Always avoid Merged Cells use Centre across selection from the Format menu.

    To display the required name use the Offset method, in his case the Column will need to be negative.

    You can see how to get the next empty cell by serching the Forum or look at the DataBaseForm here
    http://www.excel-it.com/vba_examples.htm
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    09-20-2008
    Location
    Oklahoma
    Posts
    5

    Smile Thanks for pointing me in the right direction

    Rory,

    I'll work on it more from here. I appreciate you taking the time to help with my problem. If I get stuck, I'll certainly come back and look for additional help.

    Just to assuage your concerns, this isn't homework for me. I'm working on an easy way for my girlfriend (a 2nd grade teacher) to keep track of which students are bringing their homework back to school each day to reward those who maintain a certain level or consistency.

    Thanks,
    JJ

+ 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