+ Reply to Thread
Results 1 to 4 of 4

Entering values automatically based on another cell

  1. #1
    Registered User
    Join Date
    07-16-2008
    Location
    Indiana
    Posts
    2

    Entering values automatically based on another cell

    Hello all. First, I have a little experience with VBA and have done an Excel project in the past, but it has been a few years. I don't think I can do this with a function.

    I am basically making an attendance sheet with Excel. We are trying to save trees, the planet, etc. So this in IMPORTANT! lol

    I have 6 columns across.

    SHIFT EMPLOYEE# NAME STATUS REASON SUPV

    I have the validation working for SHIFT, which INDIRECTs the NAME and allows me shorten the NAME drop down.

    What I want to do is. using NAME, automatically enter the EMPLOYEE #. I have the EMPLOYEE # entered already in an ajoining column of the data set used for the INDIRECT for the NAME.

    Example:
    Column A
    SMITH, JOHN
    DOE, JANE

    ColumnB
    123456
    123457

    I looked through the forum for awhile, but I can't find what I am looking for. If you can help me directly or help me by pointing me to a post that already exists, thanks in advance.

    BTW, I lost my Excel for Dummies book.
    Last edited by VBA Noob; 07-16-2008 at 04:18 PM.

  2. #2
    Forum Contributor wmorrison49's Avatar
    Join Date
    09-25-2007
    Posts
    267
    It sounds like all you need is a VLOOKUP. Am I reading this right? You can post your workbook if you would like someone to take a look at it.

  3. #3
    Registered User
    Join Date
    07-16-2008
    Location
    Indiana
    Posts
    2

    Exclamation

    Actually I was wanting to use VBA so it is safe from clearing the contents. Some of the users are not as receptive to change and I feel they may sabotage any formulas. So I am trying to keep it hidden a little by using code.

  4. #4
    Forum Contributor wmorrison49's Avatar
    Join Date
    09-25-2007
    Posts
    267
    You could password protect the sheet, that would be a lot easier than writing a bunch of code.

+ 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